libplasma
Plasma::BorderLayout Class Reference
#include <borderlayout.h>

Detailed Description
A layout which lays one item per border (left, top, bottom, right) and one item in center.Similar to java.awt.BorderLayout from the Java's standard library
Definition at line 37 of file borderlayout.h.
Public Member Functions | |
| BorderLayout (LayoutItem *parent=0) | |
| virtual | ~BorderLayout () |
| virtual Qt::Orientations | expandingDirections () const |
| QSizeF | sizeHint () const |
| void | addItem (Plasma::LayoutItem *item) |
| void | addItem (Plasma::LayoutItem *item, Position position) |
| void | removeItem (Plasma::LayoutItem *item) |
| virtual int | count () const |
| virtual int | indexOf (LayoutItem *item) const |
| virtual LayoutItem * | itemAt (int i) const |
| virtual LayoutItem * | takeAt (int i) |
| void | setSize (qreal size, Position border) |
| void | setAutoSize (Position border) |
| qreal | size (Position border) |
Protected Member Functions | |
| void | relayout () |
Constructor & Destructor Documentation
| Plasma::BorderLayout::BorderLayout | ( | LayoutItem * | parent = 0 |
) | [explicit] |
Definition at line 49 of file borderlayout.cpp.
| Plasma::BorderLayout::~BorderLayout | ( | ) | [virtual] |
Definition at line 57 of file borderlayout.cpp.
Member Function Documentation
| Qt::Orientations Plasma::BorderLayout::expandingDirections | ( | ) | const [virtual] |
Returns a bitmask with the directions that this Item can be expanded.
Implements Plasma::LayoutItem.
Definition at line 62 of file borderlayout.cpp.
| QSizeF Plasma::BorderLayout::sizeHint | ( | ) | const [virtual] |
Returns the most appropriate size of this Item to hold whatever contents it has.
Implements Plasma::LayoutItem.
Definition at line 116 of file borderlayout.cpp.
| void Plasma::BorderLayout::addItem | ( | Plasma::LayoutItem * | item | ) | [virtual] |
Adds item in the center.
Equal to: addItem(item, Plasma::CenterPositioned);
Implements Plasma::Layout.
Definition at line 145 of file borderlayout.cpp.
| void Plasma::BorderLayout::addItem | ( | Plasma::LayoutItem * | item, | |
| Position | position | |||
| ) |
| void Plasma::BorderLayout::removeItem | ( | Plasma::LayoutItem * | l | ) | [virtual] |
Removes a Item from this Layout.
- Parameters:
-
l Pointer to the Item to be removed.
Implements Plasma::Layout.
Definition at line 158 of file borderlayout.cpp.
| int Plasma::BorderLayout::count | ( | ) | const [virtual] |
Returns the number of elements of this Layout.
Implements Plasma::Layout.
Definition at line 171 of file borderlayout.cpp.
| int Plasma::BorderLayout::indexOf | ( | LayoutItem * | l | ) | const [virtual] |
Returns the index of a Item in this Layout.
- Parameters:
-
l Pointer to an Item to be queryed.
Implements Plasma::Layout.
Definition at line 182 of file borderlayout.cpp.
| LayoutItem * Plasma::BorderLayout::itemAt | ( | int | i | ) | const [virtual] |
Returns a Pointer to an Item in this Layout.
- Parameters:
-
i Index of the desired Item.
Implements Plasma::Layout.
Definition at line 196 of file borderlayout.cpp.
| Plasma::LayoutItem * Plasma::BorderLayout::takeAt | ( | int | i | ) | [virtual] |
Takes the Pointer of an Item in this Layout.
- Parameters:
-
i Index of the desired Item.
Implements Plasma::Layout.
Definition at line 212 of file borderlayout.cpp.
| void Plasma::BorderLayout::setSize | ( | qreal | size, | |
| Position | border | |||
| ) |
Deactivates the automatic sizing of a border widget, and sets it to the specified size.
For left and right widgets, it sets the width; while for top and bottom ones, it sets the height.
Definition at line 219 of file borderlayout.cpp.
| void Plasma::BorderLayout::setAutoSize | ( | Position | border | ) |
Activates the automatic sizing of a border widget, according to it's sizeHint().
Definition at line 225 of file borderlayout.cpp.
| qreal Plasma::BorderLayout::size | ( | Position | border | ) |
Returns the size of the specified border widget.
If automatic sizing for that border widget is activated, it will return a value less than zero.
Definition at line 231 of file borderlayout.cpp.
| void Plasma::BorderLayout::relayout | ( | ) | [protected, virtual] |
Triggers a layout, usually after a change in geometry.
Implements Plasma::Layout.
Definition at line 67 of file borderlayout.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference