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

libplasma

Plasma::FreeLayout

Plasma::FreeLayout Class Reference

#include <freelayout.h>

Inheritance diagram for Plasma::FreeLayout:

Inheritance graph
[legend]

List of all members.


Detailed Description

The FreeLayout class is a layout for use in desktop-like workspaces where items can be moved around freely and applets and widgets are allowed to determine their own size.

Whenever this layout is updated, all child items are resized to their sizeHint() and left in their existing positions.

Definition at line 40 of file freelayout.h.


Public Member Functions

 FreeLayout (LayoutItem *parent=0)
 ~FreeLayout ()
virtual void addItem (LayoutItem *l)
virtual void removeItem (LayoutItem *l)
virtual int indexOf (LayoutItem *l) const
virtual LayoutItem * itemAt (int i) const
virtual LayoutItem * takeAt (int i)
virtual Qt::Orientations expandingDirections () const
virtual QRectF geometry () const
virtual int count () const
virtual QSizeF sizeHint () const

Protected Member Functions

void relayout ()

Constructor & Destructor Documentation

Plasma::FreeLayout::FreeLayout ( LayoutItem *  parent = 0  )  [explicit]

Creates a new free layout.

Definition at line 36 of file freelayout.cpp.

Plasma::FreeLayout::~FreeLayout (  ) 

Definition at line 42 of file freelayout.cpp.


Member Function Documentation

void Plasma::FreeLayout::addItem ( LayoutItem *  l  )  [virtual]

Adds a Item to this Layout.

Parameters:
l Pointer to the Item to be added.

Implements Plasma::Layout.

Definition at line 52 of file freelayout.cpp.

void Plasma::FreeLayout::removeItem ( LayoutItem *  l  )  [virtual]

Removes a Item from this Layout.

Parameters:
l Pointer to the Item to be removed.

Implements Plasma::Layout.

Definition at line 62 of file freelayout.cpp.

int Plasma::FreeLayout::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 72 of file freelayout.cpp.

LayoutItem * Plasma::FreeLayout::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 77 of file freelayout.cpp.

LayoutItem * Plasma::FreeLayout::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 87 of file freelayout.cpp.

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

Returns a bitmask with the directions that this Item can be expanded.

Implements Plasma::LayoutItem.

Definition at line 47 of file freelayout.cpp.

QRectF Plasma::FreeLayout::geometry (  )  const [virtual]

Returns the current geometry for this layout.

Reimplemented from Plasma::Layout.

Definition at line 102 of file freelayout.cpp.

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

Returns the number of elements of this Layout.

Implements Plasma::Layout.

Definition at line 82 of file freelayout.cpp.

QSizeF Plasma::FreeLayout::sizeHint (  )  const [virtual]

Returns the most appropriate size of this Item to hold whatever contents it has.

Implements Plasma::LayoutItem.

Definition at line 111 of file freelayout.cpp.

void Plasma::FreeLayout::relayout (  )  [protected, virtual]

Triggers a layout, usually after a change in geometry.

Implements Plasma::Layout.

Definition at line 92 of file freelayout.cpp.


The documentation for this class was generated from the following files:
  • freelayout.h
  • freelayout.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
  • 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