![]() |
LeechCraft
%{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
|
A simple flow layout implementation. More...
#include "flowlayout.h"
Public Member Functions | |
FlowLayout (QWidget *, int=-1, int=-1, int=-1) | |
FlowLayout (int=-1, int=-1, int=-1) | |
virtual | ~FlowLayout () |
void | addItem (QLayoutItem *) |
int | horizontalSpacing () const |
int | verticalSpacing () const |
Qt::Orientations | expandingDirections () const |
bool | hasHeightForWidth () const |
int | heightForWidth (int) const |
int | count () const |
QLayoutItem * | itemAt (int) const |
QLayoutItem * | takeAt (int) |
QSize | minimumSize () const |
void | setGeometry (const QRect &) |
QSize | sizeHint () const |
A simple flow layout implementation.
Flow layout arranges child items in a dynamic wrappable row, much like QML's GridView.
Definition at line 47 of file flowlayout.h.
LeechCraft::Util::FlowLayout::FlowLayout | ( | QWidget * | parent, |
int | margin = -1 , |
||
int | hspace = -1 , |
||
int | vspace = -1 |
||
) |
Definition at line 37 of file flowlayout.cpp.
LeechCraft::Util::FlowLayout::FlowLayout | ( | int | margin = -1 , |
int | hspace = -1 , |
||
int | vspace = -1 |
||
) |
Definition at line 46 of file flowlayout.cpp.
|
virtual |
Definition at line 53 of file flowlayout.cpp.
References takeAt().
void LeechCraft::Util::FlowLayout::addItem | ( | QLayoutItem * | item | ) |
Definition at line 60 of file flowlayout.cpp.
int LeechCraft::Util::FlowLayout::count | ( | ) | const |
Definition at line 94 of file flowlayout.cpp.
Qt::Orientations LeechCraft::Util::FlowLayout::expandingDirections | ( | ) | const |
Definition at line 79 of file flowlayout.cpp.
bool LeechCraft::Util::FlowLayout::hasHeightForWidth | ( | ) | const |
Definition at line 84 of file flowlayout.cpp.
int LeechCraft::Util::FlowLayout::heightForWidth | ( | int | width | ) | const |
Definition at line 89 of file flowlayout.cpp.
int LeechCraft::Util::FlowLayout::horizontalSpacing | ( | ) | const |
Definition at line 65 of file flowlayout.cpp.
QLayoutItem * LeechCraft::Util::FlowLayout::itemAt | ( | int | idx | ) | const |
Definition at line 99 of file flowlayout.cpp.
QSize LeechCraft::Util::FlowLayout::minimumSize | ( | ) | const |
Definition at line 112 of file flowlayout.cpp.
Referenced by sizeHint().
void LeechCraft::Util::FlowLayout::setGeometry | ( | const QRect & | rect | ) |
Definition at line 122 of file flowlayout.cpp.
QSize LeechCraft::Util::FlowLayout::sizeHint | ( | ) | const |
Definition at line 128 of file flowlayout.cpp.
References minimumSize().
QLayoutItem * LeechCraft::Util::FlowLayout::takeAt | ( | int | idx | ) |
Definition at line 104 of file flowlayout.cpp.
Referenced by ~FlowLayout().
int LeechCraft::Util::FlowLayout::verticalSpacing | ( | ) | const |
Definition at line 72 of file flowlayout.cpp.