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/


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

Reply via email to