|
Crazy Eddie's GUI System
${CEGUI_VERSION}
|
Common base class used for renderable components within an ImagerySection. More...
Inherits CEGUI::AllocatedObject< FalagardComponentBase >, and CEGUI::AllocatedObject< FalagardComponentBase >.
Inherited by CEGUI::FrameComponent, CEGUI::FrameComponent, CEGUI::ImageryComponent, CEGUI::ImageryComponent, CEGUI::TextComponent, CEGUI::TextComponent, and FalagardComponentBase_wrapper.
Collaboration diagram for CEGUI::FalagardComponentBase:Public Member Functions | |
| void | render (Window &srcWindow, const CEGUI::ColourRect *modColours=0, const Rectf *clipper=0, bool clipToDisplay=false) const |
| Render this component. More correctly, the component is cached for rendering. More... | |
| void | render (Window &srcWindow, const Rectf &baseRect, const CEGUI::ColourRect *modColours=0, const Rectf *clipper=0, bool clipToDisplay=false) const |
| Render this component. More correctly, the component is cached for rendering. More... | |
| const ComponentArea & | getComponentArea () const |
| Return the ComponentArea of this component. More... | |
| void | setComponentArea (const ComponentArea &area) |
| Set the conponent's ComponentArea. More... | |
| const ColourRect & | getColours () const |
| Return the ColourRect used by this component. More... | |
| void | setColours (const ColourRect &cols) |
| Set the colours to be used by this component. More... | |
| const String & | getColoursPropertySource () const |
| Returns the name of the property from which the colour values will be obtained, if set. More... | |
| void | setColoursPropertySource (const String &property) |
| Set the name of the property where colour values will be obtained, if set. More... | |
| virtual bool | handleFontRenderSizeChange (Window &window, const Font *font) const |
| perform any processing required due to the given font having changed. | |
| void | render (Window &srcWindow, const CEGUI::ColourRect *modColours=0, const Rectf *clipper=0, bool clipToDisplay=false) const |
| Render this component. More correctly, the component is cached for rendering. More... | |
| void | render (Window &srcWindow, const Rectf &baseRect, const CEGUI::ColourRect *modColours=0, const Rectf *clipper=0, bool clipToDisplay=false) const |
| Render this component. More correctly, the component is cached for rendering. More... | |
| const ComponentArea & | getComponentArea () const |
| Return the ComponentArea of this component. More... | |
| void | setComponentArea (const ComponentArea &area) |
| Set the conponent's ComponentArea. More... | |
| const ColourRect & | getColours () const |
| Return the ColourRect used by this component. More... | |
| void | setColours (const ColourRect &cols) |
| Set the colours to be used by this component. More... | |
| const String & | getColoursPropertySource () const |
| Returns the name of the property from which the colour values will be obtained, if set. More... | |
| void | setColoursPropertySource (const String &property) |
| Set the name of the property where colour values will be obtained, if set. More... | |
| virtual bool | handleFontRenderSizeChange (Window &window, const Font *font) const |
| perform any processing required due to the given font having changed. | |
Protected Member Functions | |
| void | initColoursRect (const Window &wnd, const ColourRect *modCols, ColourRect &cr) const |
| Helper function to initialise a ColourRect with appropriate values according to the way the component is set up. More... | |
| virtual void | render_impl (Window &srcWindow, Rectf &destRect, const CEGUI::ColourRect *modColours, const Rectf *clipper, bool clipToDisplay) const =0 |
| Function to do main render caching work. | |
| bool | writeColoursXML (XMLSerializer &xml_stream) const |
| Writes xml for the colours to a OutStream. Will prefer property colours before explicit. More... | |
| void | initColoursRect (const Window &wnd, const ColourRect *modCols, ColourRect &cr) const |
| Helper function to initialise a ColourRect with appropriate values according to the way the component is set up. More... | |
| virtual void | render_impl (Window &srcWindow, Rectf &destRect, const CEGUI::ColourRect *modColours, const Rectf *clipper, bool clipToDisplay) const =0 |
| Function to do main render caching work. | |
| bool | writeColoursXML (XMLSerializer &xml_stream) const |
| Writes xml for the colours to a OutStream. Will prefer property colours before explicit. More... | |
Protected Attributes | |
| ComponentArea | d_area |
| Destination area for this component. | |
| ColourRect | d_colours |
| base colours to be applied when rendering the image component. | |
| String | d_colourPropertyName |
| name of property to fetch colours from. | |
Common base class used for renderable components within an ImagerySection.
| const ColourRect & CEGUI::FalagardComponentBase::getColours | ( | ) | const |
Return the ColourRect used by this component.
| const ColourRect& CEGUI::FalagardComponentBase::getColours | ( | ) | const |
Return the ColourRect used by this component.
| const String& CEGUI::FalagardComponentBase::getColoursPropertySource | ( | ) | const |
Returns the name of the property from which the colour values will be obtained, if set.
| const String & CEGUI::FalagardComponentBase::getColoursPropertySource | ( | ) | const |
Returns the name of the property from which the colour values will be obtained, if set.
| const ComponentArea & CEGUI::FalagardComponentBase::getComponentArea | ( | ) | const |
Return the ComponentArea of this component.
| const ComponentArea& CEGUI::FalagardComponentBase::getComponentArea | ( | ) | const |
Return the ComponentArea of this component.
|
protected |
Helper function to initialise a ColourRect with appropriate values according to the way the component is set up.
This will try and get values from multiple places:
References CEGUI::PropertySet::getProperty().
Referenced by CEGUI::ImageryComponent::render_impl().
|
protected |
Helper function to initialise a ColourRect with appropriate values according to the way the component is set up.
This will try and get values from multiple places:
| void CEGUI::FalagardComponentBase::render | ( | Window & | srcWindow, |
| const CEGUI::ColourRect * | modColours = 0, |
||
| const Rectf * | clipper = 0, |
||
| bool | clipToDisplay = false |
||
| ) | const |
Render this component. More correctly, the component is cached for rendering.
| srcWindow | Window to use as the base for translating the component's ComponentArea into pixel values. |
| modColours | ColourRect describing colours that are to be modulated with the component's stored colour values to calculate a set of 'final' colour values to be used. May be 0. |
| void CEGUI::FalagardComponentBase::render | ( | Window & | srcWindow, |
| const CEGUI::ColourRect * | modColours = 0, |
||
| const Rectf * | clipper = 0, |
||
| bool | clipToDisplay = false |
||
| ) | const |
Render this component. More correctly, the component is cached for rendering.
| srcWindow | Window to use as the base for translating the component's ComponentArea into pixel values. |
| modColours | ColourRect describing colours that are to be modulated with the component's stored colour values to calculate a set of 'final' colour values to be used. May be 0. |
| void CEGUI::FalagardComponentBase::render | ( | Window & | srcWindow, |
| const Rectf & | baseRect, | ||
| const CEGUI::ColourRect * | modColours = 0, |
||
| const Rectf * | clipper = 0, |
||
| bool | clipToDisplay = false |
||
| ) | const |
Render this component. More correctly, the component is cached for rendering.
| srcWindow | Window to use as the base for translating the component's ComponentArea into pixel values. |
| baseRect | Rect to use as the base for translating the component's ComponentArea into pixel values. |
| modColours | ColourRect describing colours that are to be modulated with the component's stored colour values to calculate a set of 'final' colour values to be used. May be 0. |
| void CEGUI::FalagardComponentBase::render | ( | Window & | srcWindow, |
| const Rectf & | baseRect, | ||
| const CEGUI::ColourRect * | modColours = 0, |
||
| const Rectf * | clipper = 0, |
||
| bool | clipToDisplay = false |
||
| ) | const |
Render this component. More correctly, the component is cached for rendering.
| srcWindow | Window to use as the base for translating the component's ComponentArea into pixel values. |
| baseRect | Rect to use as the base for translating the component's ComponentArea into pixel values. |
| modColours | ColourRect describing colours that are to be modulated with the component's stored colour values to calculate a set of 'final' colour values to be used. May be 0. |
| void CEGUI::FalagardComponentBase::setColours | ( | const ColourRect & | cols | ) |
Set the colours to be used by this component.
| cols | ColourRect object describing the colours to be used by this component. |
| void CEGUI::FalagardComponentBase::setColours | ( | const ColourRect & | cols | ) |
Set the colours to be used by this component.
| cols | ColourRect object describing the colours to be used by this component. |
Referenced by CEGUI::Falagard_xmlHandler::elementEndLocal().
| void CEGUI::FalagardComponentBase::setColoursPropertySource | ( | const String & | property | ) |
Set the name of the property where colour values will be obtained, if set.
| property | String containing the name of the property. |
| void CEGUI::FalagardComponentBase::setColoursPropertySource | ( | const String & | property | ) |
Set the name of the property where colour values will be obtained, if set.
| property | String containing the name of the property. |
Referenced by CEGUI::Falagard_xmlHandler::elementEndLocal().
| void CEGUI::FalagardComponentBase::setComponentArea | ( | const ComponentArea & | area | ) |
Set the conponent's ComponentArea.
| area | ComponentArea object describing a new target area for the component. |
Referenced by CEGUI::Falagard_xmlHandler::elementEndLocal().
| void CEGUI::FalagardComponentBase::setComponentArea | ( | const ComponentArea & | area | ) |
Set the conponent's ComponentArea.
| area | ComponentArea object describing a new target area for the component. |
|
protected |
Writes xml for the colours to a OutStream. Will prefer property colours before explicit.
|
protected |
Writes xml for the colours to a OutStream. Will prefer property colours before explicit.
References CEGUI::XMLSerializer::attribute(), CEGUI::XMLSerializer::closeTag(), and CEGUI::XMLSerializer::openTag().
Referenced by CEGUI::ImageryComponent::writeXMLToStream().