This class holds 16 pieces of scalable images which represent every possible position in a layout.
More...
List of all members.
Detailed Description
This class holds 16 pieces of scalable images which represent every possible position in a layout.
All 16 pieces are fetched from MTheme with different suffixes. For example if you use imageId 'bg' this class will fetch the following images corresponding to M::Position:
This class is mainly meant to be used with the style system, so that the imageId can be given from css, and the M::Position from application code. A working example is the background of any widget. MWidgetStyle::backgroundTiles defines the id and the margins while MWidgetController::setLayoutPosition can be used for defining which tile is the one to be rendered. Some layout policies have this functionality to automatically set the correct position for each widget, e.g. MLinearLayoutPolicy::setNotifyWidgetsOfLayoutPositionEnabled.
- See also:
- M::Position
Constructor & Destructor Documentation
MBackgroundTiles::MBackgroundTiles |
( |
|
) |
|
MBackgroundTiles::MBackgroundTiles |
( |
const QString & |
imageId, |
|
|
int |
left, |
|
|
int |
right, |
|
|
int |
top, |
|
|
int |
bottom | |
|
) |
| | |
MBackgroundTiles::~MBackgroundTiles |
( |
|
) |
[virtual] |
Member Function Documentation
bool MBackgroundTiles::isValid |
( |
|
) |
const |
Member Data Documentation