|
Crazy Eddie's GUI System 0.8.7
Unofficial reformatted copy of the 0.8.7 docs
|
Dimension type that represents some dimension of an Image. Implements BaseDim interface. More...
#include <Dimensions.h>
Public Member Functions | |
| ImageDimBase (DimensionType dim) | |
| Constructor. | |
| DimensionType | getSourceDimension () const |
| Gets the source dimension type for this WidgetDim. | |
| void | setSourceDimension (DimensionType dim) |
| Sets the source dimension type for this ImageDim. | |
| float | getValue (const Window &wnd) const |
| Return a value that represents this dimension as absolute pixels. | |
| float | getValue (const Window &wnd, const Rectf &container) const |
| Return a value that represents this dimension as absolute pixels. | |
Public Member Functions inherited from CEGUI::BaseDim | |
| virtual BaseDim * | clone () const =0 |
| Create an exact copy of the specialised object and return it as a pointer to a BaseDim object. | |
| virtual void | writeXMLToStream (XMLSerializer &xml_stream) const |
| Writes an xml representation of this BaseDim to out_stream. | |
| virtual bool | handleFontRenderSizeChange (Window &window, const Font *font) const |
| perform any processing required due to the given font having changed. | |
Protected Member Functions | |
| virtual const Image * | getSourceImage (const Window &wnd) const =0 |
| return the image instance to access | |
| void | writeXMLElementAttributes_impl (XMLSerializer &xml_stream) const |
| Implementataion method to create the element attributes. | |
Protected Member Functions inherited from CEGUI::BaseDim | |
| virtual void | writeXMLElementName_impl (XMLSerializer &xml_stream) const =0 |
| Implementataion method to output real xml element name. | |
Protected Attributes | |
| DimensionType | d_what |
| the dimension of the image that we are to represent. | |
| CEGUI::ImageDimBase::ImageDimBase | ( | DimensionType | dim | ) |
| DimensionType CEGUI::ImageDimBase::getSourceDimension | ( | ) | const |
|
protectedpure virtual |
return the image instance to access
Implemented in CEGUI::ImageDim, and CEGUI::ImagePropertyDim.
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.
| void CEGUI::ImageDimBase::setSourceDimension | ( | DimensionType | dim | ) |
|
protectedvirtual |
Implementataion method to create the element attributes.
Implements CEGUI::BaseDim.
Reimplemented in CEGUI::ImagePropertyDim.