marble
#include <MarbleGraphicsGridLayout.h>
Public Member Functions | |
MarbleGraphicsGridLayout (int rows, int columns) | |
~MarbleGraphicsGridLayout () | |
void | addItem (ScreenGraphicsItem *item, int row, int column) |
Qt::Alignment | alignment () const |
Qt::Alignment | alignment (ScreenGraphicsItem *item) const |
void | setAlignment (Qt::Alignment align) |
void | setAlignment (ScreenGraphicsItem *item, Qt::Alignment) |
void | setSpacing (int spacing) |
int | spacing () const |
void | updatePositions (MarbleGraphicsItem *parent) |
Public Member Functions inherited from Marble::AbstractMarbleGraphicsLayout | |
AbstractMarbleGraphicsLayout () | |
virtual | ~AbstractMarbleGraphicsLayout () |
Detailed Description
Definition at line 27 of file MarbleGraphicsGridLayout.h.
Constructor & Destructor Documentation
Marble::MarbleGraphicsGridLayout::MarbleGraphicsGridLayout | ( | int | rows, |
int | columns | ||
) |
Definition at line 64 of file MarbleGraphicsGridLayout.cpp.
Marble::MarbleGraphicsGridLayout::~MarbleGraphicsGridLayout | ( | ) |
Definition at line 69 of file MarbleGraphicsGridLayout.cpp.
Member Function Documentation
void Marble::MarbleGraphicsGridLayout::addItem | ( | ScreenGraphicsItem * | item, |
int | row, | ||
int | column | ||
) |
Definition at line 74 of file MarbleGraphicsGridLayout.cpp.
Qt::Alignment Marble::MarbleGraphicsGridLayout::alignment | ( | ) | const |
Definition at line 184 of file MarbleGraphicsGridLayout.cpp.
Qt::Alignment Marble::MarbleGraphicsGridLayout::alignment | ( | ScreenGraphicsItem * | item | ) | const |
Definition at line 189 of file MarbleGraphicsGridLayout.cpp.
void Marble::MarbleGraphicsGridLayout::setAlignment | ( | Qt::Alignment | align | ) |
Definition at line 194 of file MarbleGraphicsGridLayout.cpp.
void Marble::MarbleGraphicsGridLayout::setAlignment | ( | ScreenGraphicsItem * | item, |
Qt::Alignment | align | ||
) |
Definition at line 199 of file MarbleGraphicsGridLayout.cpp.
void Marble::MarbleGraphicsGridLayout::setSpacing | ( | int | spacing | ) |
Set the spacing between the items inside the layout.
By default the spacing is 0.
Definition at line 209 of file MarbleGraphicsGridLayout.cpp.
int Marble::MarbleGraphicsGridLayout::spacing | ( | ) | const |
Returns the spacing between the items inside the layout.
Definition at line 204 of file MarbleGraphicsGridLayout.cpp.
|
virtual |
This updates the positions of all items in the layout.
Calling this will be done on every repainting, so you won't have to do it yourself.
Implements Marble::AbstractMarbleGraphicsLayout.
Definition at line 83 of file MarbleGraphicsGridLayout.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.