Re: [Plib-users] Translucent Widgets
Brought to you by:
sjbaker
From: Sebastian U. <ud...@ha...> - 2002-01-17 22:43:33
|
On Thu, 17 Jan 2002, da...@mi... (dave) wrote: > Date: Thu, 17 Jan 2002 16:05:55 -0600 > To: ud...@ha... > From: da...@mi... (dave) > Subject: Re: [Plib-users] Translucent Widgets > > It calls: > static void load_colour_scheme() within puObject.cxx. > > Maybe my C++ is a bit weak. There isn't a scope resolver. Isn't it true > that just because it's in the puObject.cxx file doesn't necessarily > mean its part of the class? Maybe I'm wrong. but my thought was to be > part of the class it would need to be: > > static void puObject::load_colour_scheme() > > wouldnt it? > > C++ has evolved a bit since I last used it. Could it be that the scope > resolver is implicit to the entire cxx file? Yes. It was all the time. The void load_colour_scheme ( float col[][4], float r, float g, float b, float a ) ; routine does nothing but filling the colour table specified with the calculated values. Hence, it can be and is used by both puSetDefaultColourScheme which modifies PUI's _global_ colour table specifying the default colours that are used when a widget is created and puObject::setColourScheme which modifies the widget's _local_ (!) colour table. - Sebastian |