Re: [Plib-users] Translucent Widgets
Brought to you by:
sjbaker
From: dave <da...@mi...> - 2002-01-17 23:09:31
|
Sebastian, Well that answers that one. Yes,while you were answering I figured out that I had confused puSetDefaultColourScheme with puObject::setColourScheme. I am still pondering the subject of whats going on inside widgets with "styles" though as far as blending goes. Hopefully a blend just affects them all equally once a puObject::setColour is done, and all is well. I don't know whether one would ever want the pieces implied by a style (foreground,background,mid.lo,hi,etc) to be affected uniquely though, or if it would even be possible. Thanks for the feedback. -Dave Sebastian Ude wrote: > > 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 > > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > > > > |