>
> On Jul 16, 2007, at 10:39 AM, Richard Penman wrote:
>
> > hello,
> >
> > in fluid 1.1.7 how do I make class functions public? All my
> > 'public' flags are set but the generated code is:
> >
> > class Annotate {
> >   Annotate();
> >   ...
> > };
> >
> >
> > To make it work I need to open up the generated .H file and change to:
> >
> > class Annotate {
> >   public:
> >   Annotate();
> >   ...
> > };
> >
> >
> > Am I missing something?
>
> Fluid always creates a function called _Annotate() (your class name
> plus an underscore) as the first function of the class. That function
> is always private. It serves as an interface to the real constructor
> that follows below and is always public.
>
> For all other (non-constructor) functions, you simply click the
> "public" button in the "Function/Method Properties" dialog.
>
> Matthias
>
> ----
> http://robowerk.com/
>
>


I have checked and my functions are declared as public in fluid but they are 
not exposed in the generated class. Jim Wilson has noticed the opposite problem 
(always public), so perhaps this was the fix for the original problem.

Richard
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to