Dimension type that represents some dimension of an Image. Implements BaseDim interface.
More...
Dimension type that represents some dimension of an Image. Implements BaseDim interface.
Constructor.
- Parameters
-
dim | DimensionType value indicating which dimension of an Image that this ImageDim is to represent. |
Gets the source dimension type for this WidgetDim.
- Returns
- DimensionType value indicating which dimension of the described image that this WidgetDim is to represent.
float CEGUI::ImageDimBase::getValue |
( |
const Window & |
wnd | ) |
const |
|
virtual |
Return a value that represents this dimension as absolute pixels.
- Parameters
-
wnd | Window object that may be used by the specialised class to aid in calculating the final value. |
- Returns
- float value which represents, in pixels, the same value as this BaseDim.
Implements CEGUI::BaseDim.
float CEGUI::ImageDimBase::getValue |
( |
const Window & |
wnd, |
|
|
const Rectf & |
container |
|
) |
| const |
|
virtual |
Return a value that represents this dimension as absolute pixels.
- Parameters
-
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. |
- Returns
- float value which represents, in pixels, the same value as this BaseDim.
Implements CEGUI::BaseDim.
void CEGUI::ImageDimBase::setSourceDimension |
( |
DimensionType |
dim | ) |
|
Sets the source dimension type for this ImageDim.
- Parameters
-
dim | DimensionType value indicating which dimension of the described image that this ImageDim is to represent. |