liblancelot
#include <ColumnLayout.h>
Inherited by Lancelot::EqualColumnSizer, Lancelot::GoldenColumnSizer, and Lancelot::PassagewayViewSizer.
Public Types | |
enum | SizerType { EqualSizer, GoldenSizer } |
Public Member Functions | |
virtual | ~ColumnSizer () |
virtual void | init (int count)=0 |
virtual qreal | size ()=0 |
Static Public Member Functions | |
static ColumnSizer * | create (SizerType type) |
Detailed Description
Abstract interface for implementing column size calculation depending on the column count.
Two basic implementations are provided - one that returns equal sizes for all visible columns, and one that uses the golden ratio.
Definition at line 59 of file ColumnLayout.h.
Member Enumeration Documentation
Enumerator | |
---|---|
EqualSizer |
Sizer that returns the same size for all visible columns. |
GoldenSizer |
Sizer that uses golden ratio for visible column sizes. |
Definition at line 84 of file ColumnLayout.h.
Constructor & Destructor Documentation
|
virtual |
Destroys the ColumnLayout::ColumnSizer.
Definition at line 80 of file ColumnLayout.cpp.
Member Function Documentation
|
static |
- Returns
- a new ColumnSizer with one of the default implementations
Definition at line 84 of file ColumnLayout.cpp.
|
pure virtual |
Initializes the ColumnSizer.
This function should calculate or otherwise prepare the data needed for retrieving the sizes of columns depending on the column count. It should also reset the current column counter to the first column.
- Parameters
-
count column count
|
pure virtual |
- Returns
- the size of the current column. This function should return the size of the current column and move the current column pointer to the next column.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Oct 13 2014 22:55:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.