• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libplasma

Plasma::BorderLayout

Plasma::BorderLayout Class Reference

#include <borderlayout.h>

Inheritance diagram for Plasma::BorderLayout:

Inheritance graph
[legend]

List of all members.


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 39 of file borderlayout.h.


Public Member Functions

void addItem (Plasma::LayoutItem *item, Position position)
void addItem (Plasma::LayoutItem *item)
 BorderLayout (LayoutItem *parent=0)
virtual int count () const
virtual Qt::Orientations expandingDirections () const
virtual int indexOf (LayoutItem *item) const
virtual LayoutItem * itemAt (int i) const
void removeItem (Plasma::LayoutItem *item)
void setAutoSize (Position border)
void setSize (qreal size, Position border)
qreal size (Position border)
QSizeF sizeHint () const
virtual LayoutItem * takeAt (int i)
virtual ~BorderLayout ()

Protected Member Functions

void relayout ()
void releaseManagedItems ()

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

void Plasma::BorderLayout::addItem ( Plasma::LayoutItem *  item,
Position  position 
)

Adds item at the specified position.

Definition at line 160 of file borderlayout.cpp.

void Plasma::BorderLayout::addItem ( Plasma::LayoutItem *  item  ) 

Adds item in the center.

Equal to: addItem(item, Plasma::CenterPositioned);

Definition at line 155 of file borderlayout.cpp.

int Plasma::BorderLayout::count (  )  const [virtual]

Definition at line 181 of file borderlayout.cpp.

Qt::Orientations Plasma::BorderLayout::expandingDirections (  )  const [virtual]

Definition at line 63 of file borderlayout.cpp.

int Plasma::BorderLayout::indexOf ( LayoutItem *  item  )  const [virtual]

Definition at line 192 of file borderlayout.cpp.

LayoutItem * Plasma::BorderLayout::itemAt ( int  i  )  const [virtual]

Definition at line 206 of file borderlayout.cpp.

void Plasma::BorderLayout::relayout (  )  [protected]

Definition at line 68 of file borderlayout.cpp.

void Plasma::BorderLayout::releaseManagedItems (  )  [protected]

Definition at line 117 of file borderlayout.cpp.

void Plasma::BorderLayout::removeItem ( Plasma::LayoutItem *  item  ) 

void Plasma::BorderLayout::setAutoSize ( Position  border  ) 

Activates the automatic sizing of a border widget, according to it's sizeHint().

Definition at line 235 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 229 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 241 of file borderlayout.cpp.

QSizeF Plasma::BorderLayout::sizeHint (  )  const

Definition at line 126 of file borderlayout.cpp.

Plasma::LayoutItem * Plasma::BorderLayout::takeAt ( int  i  )  [virtual]

Definition at line 222 of file borderlayout.cpp.


The documentation for this class was generated from the following files:
  • borderlayout.h
  • borderlayout.cpp

libplasma

Skip menu "libplasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal