Crazy Eddie's GUI System
0.8.6
|
Abstract interface for a generic 'dimension' class. More...
Inherits CEGUI::AllocatedObject< BaseDim >.
Inherited by CEGUI::AbsoluteDim, CEGUI::FontDim, CEGUI::ImageDimBase, CEGUI::OperatorDim, CEGUI::PropertyDim, CEGUI::UnifiedDim, and CEGUI::WidgetDim.
Public Member Functions | |
virtual float | getValue (const Window &wnd) const =0 |
Return a value that represents this dimension as absolute pixels. More... | |
virtual float | getValue (const Window &wnd, const Rectf &container) const =0 |
Return a value that represents this dimension as absolute pixels. More... | |
virtual BaseDim * | clone () const =0 |
Create an exact copy of the specialised object and return it as a pointer to a BaseDim object. More... | |
virtual void | writeXMLToStream (XMLSerializer &xml_stream) const |
Writes an xml representation of this BaseDim to out_stream. More... | |
virtual bool | handleFontRenderSizeChange (Window &window, const Font *font) const |
perform any processing required due to the given font having changed. | |
Protected Member Functions | |
virtual void | writeXMLElementName_impl (XMLSerializer &xml_stream) const =0 |
Implementataion method to output real xml element name. | |
virtual void | writeXMLElementAttributes_impl (XMLSerializer &xml_stream) const =0 |
Implementataion method to create the element attributes. | |
Abstract interface for a generic 'dimension' class.
|
pure virtual |
Create an exact copy of the specialised object and return it as a pointer to a BaseDim object.
Since the system needs to be able to copy objects derived from BaseDim, but only has knowledge of the BaseDim interface, this clone method is provided to prevent slicing issues.
Implemented in CEGUI::PropertyDim, CEGUI::FontDim, CEGUI::UnifiedDim, CEGUI::WidgetDim, CEGUI::ImagePropertyDim, CEGUI::ImageDim, CEGUI::AbsoluteDim, and CEGUI::OperatorDim.
|
pure virtual |
Return a value that represents this dimension as absolute pixels.
wnd | Window object that may be used by the specialised class to aid in calculating the final value. |
Implemented in CEGUI::PropertyDim, CEGUI::FontDim, CEGUI::UnifiedDim, CEGUI::WidgetDim, CEGUI::ImageDimBase, CEGUI::AbsoluteDim, and CEGUI::OperatorDim.
|
pure virtual |
Return a value that represents this dimension as absolute pixels.
wnd | Window object that may be used by the specialised class to aid in calculating the final value (typically would be used to obtain window/widget dimensions). |
container | Rect object which describes an area to be considered as the base area when calculating the final value. Basically this means that relative values are calculated from the dimensions of this Rect. |
Implemented in CEGUI::PropertyDim, CEGUI::FontDim, CEGUI::UnifiedDim, CEGUI::WidgetDim, CEGUI::ImageDimBase, CEGUI::AbsoluteDim, and CEGUI::OperatorDim.
|
virtual |
Writes an xml representation of this BaseDim to out_stream.
xml_stream | Stream where xml data should be output. |
Reimplemented in CEGUI::OperatorDim.