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

libplasma

Plasma::FlowLayout

Plasma::FlowLayout Class Reference

#include <flowlayout.h>

Inheritance diagram for Plasma::FlowLayout:

Inheritance graph
[legend]

List of all members.


Detailed Description

A layout which lays items out left-to-right , top-to-bottom.

This is similar to the layout of items in a QListView.

Definition at line 34 of file flowlayout.h.


Public Member Functions

 FlowLayout (LayoutItem *parent)
virtual ~FlowLayout ()
virtual int count () const
virtual void addItem (LayoutItem *item)
virtual void removeItem (LayoutItem *item)
virtual int indexOf (LayoutItem *item) const
virtual LayoutItem * itemAt (int i) const
virtual LayoutItem * takeAt (int i)
virtual QSizeF sizeHint () const
virtual Qt::Orientations expandingDirections () const
virtual void setColumnWidth (const qreal width)
virtual qreal columnWidth () const

Protected Member Functions

void relayout ()

Constructor & Destructor Documentation

FlowLayout::FlowLayout ( LayoutItem *  parent  )  [explicit]

Construct a new flow layout with the specified parent.

Definition at line 43 of file flowlayout.cpp.

FlowLayout::~FlowLayout (  )  [virtual]

Definition at line 48 of file flowlayout.cpp.


Member Function Documentation

int FlowLayout::count (  )  const [virtual]

Returns the number of elements of this Layout.

Implements Plasma::Layout.

Definition at line 53 of file flowlayout.cpp.

void FlowLayout::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 58 of file flowlayout.cpp.

void FlowLayout::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 73 of file flowlayout.cpp.

int FlowLayout::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 88 of file flowlayout.cpp.

LayoutItem * FlowLayout::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 96 of file flowlayout.cpp.

LayoutItem * FlowLayout::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 118 of file flowlayout.cpp.

QSizeF FlowLayout::sizeHint (  )  const [virtual]

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

Implements Plasma::LayoutItem.

Definition at line 105 of file flowlayout.cpp.

Qt::Orientations FlowLayout::expandingDirections (  )  const [virtual]

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

Implements Plasma::LayoutItem.

Definition at line 226 of file flowlayout.cpp.

void FlowLayout::setColumnWidth ( const qreal  width  )  [virtual]

Definition at line 236 of file flowlayout.cpp.

qreal FlowLayout::columnWidth (  )  const [virtual]

Definition at line 231 of file flowlayout.cpp.

void FlowLayout::relayout (  )  [protected, virtual]

Triggers a layout, usually after a change in geometry.

Implements Plasma::Layout.

Definition at line 138 of file flowlayout.cpp.


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