Crazy Eddie's GUI System
0.8.4
|
Class representing some kind of dimension. More...
Public Member Functions | |
Dimension (const Dimension &other) | |
Dimension & | operator= (const Dimension &other) |
Dimension (const BaseDim &dim, DimensionType type) | |
Constructor. More... | |
const BaseDim & | getBaseDimension () const |
return the BaseDim object currently used as the value for this Dimension. More... | |
void | setBaseDimension (const BaseDim &dim) |
set the current value for this Dimension. More... | |
DimensionType | getDimensionType () const |
Return a DimensionType value indicating what this Dimension represents. More... | |
void | setDimensionType (DimensionType type) |
Sets what this Dimension represents. More... | |
void | writeXMLToStream (XMLSerializer &xml_stream) const |
Writes an xml representation of this Dimension to out_stream. More... | |
bool | handleFontRenderSizeChange (Window &window, const Font *font) const |
perform any processing required due to the given font having changed. | |
Class representing some kind of dimension.
The key thing to understand about Dimension is that it contains not just a dimensional value, but also a record of what the dimension value is supposed to represent. (e.g. a co-ordinate on the x axis, or the height of something).
CEGUI::Dimension::Dimension | ( | const BaseDim & | dim, |
DimensionType | type | ||
) |
Constructor.
dim | object based on subclass of BaseDim which holds the dimensional value. |
type | DimensionType value indicating what dimension this object is to represent. |
const BaseDim& CEGUI::Dimension::getBaseDimension | ( | ) | const |
DimensionType CEGUI::Dimension::getDimensionType | ( | ) | const |
Return a DimensionType value indicating what this Dimension represents.
void CEGUI::Dimension::setBaseDimension | ( | const BaseDim & | dim | ) |
void CEGUI::Dimension::setDimensionType | ( | DimensionType | type | ) |
Sets what this Dimension represents.
type | one of the DimensionType enumerated values. |
void CEGUI::Dimension::writeXMLToStream | ( | XMLSerializer & | xml_stream | ) | const |
Writes an xml representation of this Dimension to out_stream.
xml_stream | Stream where xml data should be output. |