Collaboration diagram for CEGUI::SectionSpecification:
Public Member Functions | |
SectionSpecification (const String &owner, const String §ionName) | |
Constructor. | |
SectionSpecification (const String &owner, const String §ionName, const ColourRect &cols) | |
Constructor. | |
void | render (Window &srcWindow, float base_z, const ColourRect *modcols=0, const Rect *clipper=0, bool clipToDisplay=false) const |
Render the section specified by this SectionSpecification. | |
void | render (Window &srcWindow, const Rect &baseRect, float base_z, const ColourRect *modcols=0, const Rect *clipper=0, bool clipToDisplay=false) const |
Render the section specified by this SectionSpecification. | |
const String & | getOwnerWidgetLookFeel () const |
Return the name of the WidgetLookFeel object containing the target section. | |
const String & | getSectionName () const |
Return the name of the target ImagerySection. | |
const ColourRect & | getOverrideColours () const |
Return the current override colours. | |
void | setOverrideColours (const ColourRect &cols) |
Set the override colours to be used by this SectionSpecification. | |
bool | isUsingOverrideColours () const |
return whether the use of override colours is enabled on this SectionSpecification. | |
void | setUsingOverrideColours (bool setting=true) |
Enable or disable the use of override colours for this section. | |
void | setOverrideColoursPropertySource (const String &property) |
Set the name of the property where override colour values can be obtained. | |
void | setOverrideColoursPropertyIsColourRect (bool setting=true) |
Set whether the override colours property source represents a full ColourRect. | |
void | writeXMLToStream (OutStream &out_stream) const |
Writes an xml representation of this SectionSpecification to out_stream. | |
Protected Member Functions | |
void | initColourRectForOverride (const Window &wnd, ColourRect &cr) const |
Helper method to initialise a ColourRect with appropriate values according to the way the section sepcification is set up. |
This class enables sections to be easily re-used, by different states and/or layers, by allowing sections to be specified by name rather than having mutiple copies of the same thing all over the place.
|
Constructor.
|
|
Constructor.
|
|
Return the current override colours.
|
|
Return the name of the WidgetLookFeel object containing the target section.
|
|
Return the name of the target ImagerySection.
|
|
Helper method to initialise a ColourRect with appropriate values according to the way the section sepcification is set up. This will try and get values from multiple places:
|
|
return whether the use of override colours is enabled on this SectionSpecification.
|
|
Render the section specified by this SectionSpecification.
|
|
Render the section specified by this SectionSpecification.
|
|
Set the override colours to be used by this SectionSpecification.
|
|
Set whether the override colours property source represents a full ColourRect.
|
|
Set the name of the property where override colour values can be obtained.
|
|
Enable or disable the use of override colours for this section.
|
|
Writes an xml representation of this SectionSpecification to out_stream.
|