Crazy Eddies GUI System
0.6.2
|
Class the encapsulates imagery for a given widget state. More...
Public Member Functions | |
StateImagery () | |
Constructor. | |
StateImagery (const String &name) | |
Constructor. More... | |
void | render (Window &srcWindow, const ColourRect *modcols=0, const Rect *clipper=0) const |
Render imagery for this state. More... | |
void | render (Window &srcWindow, const Rect &baseRect, const ColourRect *modcols=0, const Rect *clipper=0) const |
Render imagery for this state. More... | |
void | addLayer (const LayerSpecification &layer) |
Add an imagery LayerSpecification to this state. More... | |
void | clearLayers () |
Removed all LayerSpecifications from this state. More... | |
const String & | getName () const |
Return the name of this state. More... | |
bool | isClippedToDisplay () const |
Return whether this state imagery should be clipped to the display rather than the target window. More... | |
void | setClippedToDisplay (bool setting) |
Set whether this state imagery should be clipped to the display rather than the target window. More... | |
void | writeXMLToStream (XMLSerializer &xml_stream) const |
Writes an xml representation of this StateImagery to out_stream. More... | |
Class the encapsulates imagery for a given widget state.
CEGUI::StateImagery::StateImagery | ( | const String & | name | ) |
Constructor.
name | Name of the state |
void CEGUI::StateImagery::addLayer | ( | const LayerSpecification & | layer | ) |
Add an imagery LayerSpecification to this state.
layer | LayerSpecification to be added to this state (will be copied) |
void CEGUI::StateImagery::clearLayers | ( | ) |
Removed all LayerSpecifications from this state.
const String & CEGUI::StateImagery::getName | ( | void | ) | const |
Return the name of this state.
Referenced by CEGUI::WidgetLookFeel::addStateSpecification().
bool CEGUI::StateImagery::isClippedToDisplay | ( | ) | const |
Return whether this state imagery should be clipped to the display rather than the target window.
Clipping to the display effectively implies that the imagery should be rendered unclipped.
/return
void CEGUI::StateImagery::render | ( | Window & | srcWindow, |
const ColourRect * | modcols = 0 , |
||
const Rect * | clipper = 0 |
||
) | const |
Render imagery for this state.
Referenced by CEGUI::FalagardMultiLineEditbox::cacheEditboxBaseImagery(), CEGUI::FalagardListbox::cacheListboxBaseImagery(), CEGUI::FalagardMultiColumnList::cacheListboxBaseImagery(), CEGUI::FalagardTabButton::render(), CEGUI::FalagardTitlebar::render(), CEGUI::FalagardItemListbox::render(), CEGUI::FalagardButton::render(), CEGUI::FalagardMenubar::render(), CEGUI::FalagardTooltip::render(), CEGUI::FalagardPopupMenu::render(), CEGUI::FalagardListHeaderSegment::render(), CEGUI::FalagardItemEntry::render(), CEGUI::FalagardScrollablePane::render(), CEGUI::FalagardMenuItem::render(), CEGUI::FalagardListHeader::render(), CEGUI::FalagardFrameWindow::render(), CEGUI::FalagardTree::render(), CEGUI::FalagardScrollbar::render(), CEGUI::FalagardTabControl::render(), CEGUI::FalagardSlider::render(), CEGUI::FalagardProgressBar::render(), CEGUI::FalagardStaticImage::render(), CEGUI::FalagardEditbox::render(), and CEGUI::FalagardStatic::render().
void CEGUI::StateImagery::render | ( | Window & | srcWindow, |
const Rect & | baseRect, | ||
const ColourRect * | modcols = 0 , |
||
const Rect * | clipper = 0 |
||
) | const |
void CEGUI::StateImagery::setClippedToDisplay | ( | bool | setting | ) |
Set whether this state imagery should be clipped to the display rather than the target window.
Clipping to the display effectively implies that the imagery should be rendered unclipped.
setting |
|
void CEGUI::StateImagery::writeXMLToStream | ( | XMLSerializer & | xml_stream | ) | const |
Writes an xml representation of this StateImagery to out_stream.
xml_stream | Stream where xml data should be output. |
References CEGUI::XMLSerializer::attribute(), CEGUI::XMLSerializer::closeTag(), and CEGUI::XMLSerializer::openTag().