Crazy Eddie's GUI System
0.8.6
|
Dimension type that represents an absolute pixel value. Implements BaseDim interface. More...
Public Member Functions | |
AbsoluteDim (float val) | |
float | getBaseValue () const |
Get the current value of the AbsoluteDim. | |
void | setBaseValue (float val) |
Set the current value of the AbsoluteDim. | |
float | getValue (const Window &wnd) const |
Return a value that represents this dimension as absolute pixels. More... | |
float | getValue (const Window &wnd, const Rectf &container) const |
Return a value that represents this dimension as absolute pixels. More... | |
BaseDim * | clone () const |
Create an exact copy of the specialised object and return it as a pointer to a BaseDim object. More... | |
Public Member Functions inherited from CEGUI::BaseDim | |
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 | |
void | writeXMLElementName_impl (XMLSerializer &xml_stream) const |
Implementataion method to output real xml element name. | |
void | writeXMLElementAttributes_impl (XMLSerializer &xml_stream) const |
Implementataion method to create the element attributes. | |
|
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.
Implements CEGUI::BaseDim.
|
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. |
Implements CEGUI::BaseDim.
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. |
Implements CEGUI::BaseDim.