• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeplasma-addons API Reference
  • KDE Home
  • Contact Us
 

liblancelot

  • Lancelot
  • FullBorderLayout
Public Types | Public Member Functions | List of all members
Lancelot::FullBorderLayout Class Reference

#include <FullBorderLayout.h>

Inheritance diagram for Lancelot::FullBorderLayout:
Inheritance graph
[legend]

Public Types

enum  Border { TopBorder = 1, BottomBorder = 2, LeftBorder = 4, RightBorder = 8 }
 
enum  Place {
  Center = 0, Top = TopBorder, Bottom = BottomBorder, Left = LeftBorder,
  Right = RightBorder, TopLeft = TopBorder | LeftBorder, TopRight = TopBorder | RightBorder, BottomLeft = BottomBorder | LeftBorder,
  BottomRight = BottomBorder | RightBorder
}
 

Public Member Functions

 FullBorderLayout (QGraphicsLayoutItem *parent=0)
 
virtual ~FullBorderLayout ()
 
void addItem (QGraphicsLayoutItem *item)
 
void addItem (QGraphicsLayoutItem *item, Place position)
 
L_Override int count () const
 
L_Override QGraphicsLayoutItem * itemAt (int i) const
 
L_Override void removeAt (int index)
 
void setAutoSize (Border border)
 
L_Override void setGeometry (const QRectF &rect)
 
void setSize (qreal size, Border border)
 
qreal size (Border border) const
 
L_Override QSizeF sizeHint (Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const
 

Detailed Description

A modified version of Plasma::BorderLayout.

A layout which lays one item per border (left, top, bottom, right) one per corner and one item in center.

Author
Ivan Cukic

Definition at line 38 of file FullBorderLayout.h.

Member Enumeration Documentation

enum Lancelot::FullBorderLayout::Border

Borders enum.

Enumerator
TopBorder 
BottomBorder 

Top border.

LeftBorder 

Bottom border.

RightBorder 

Left border.

Definition at line 43 of file FullBorderLayout.h.

enum Lancelot::FullBorderLayout::Place

Positions supported by FullBorderLayout.

Enumerator
Center 
Top 
Bottom 
Left 
Right 
TopLeft 
TopRight 
BottomLeft 
BottomRight 

Definition at line 53 of file FullBorderLayout.h.

Constructor & Destructor Documentation

Lancelot::FullBorderLayout::FullBorderLayout ( QGraphicsLayoutItem *  parent = 0)
explicit

Creates a new Lancelot::FullBorderLayout.

Parameters
parentparent layout item

Definition at line 112 of file FullBorderLayout.cpp.

Lancelot::FullBorderLayout::~FullBorderLayout ( )
virtual

Destroys this Lancelot::FullBorderLayout.

Definition at line 117 of file FullBorderLayout.cpp.

Member Function Documentation

void Lancelot::FullBorderLayout::addItem ( QGraphicsLayoutItem *  item)

Adds item in the center.

Equal to: addItem(item, Center);

Parameters
itemitem to add

Definition at line 230 of file FullBorderLayout.cpp.

void Lancelot::FullBorderLayout::addItem ( QGraphicsLayoutItem *  item,
Place  position 
)

Adds item at the specified position.

Parameters
itemitem to add
positionposition to which to add

Definition at line 235 of file FullBorderLayout.cpp.

int Lancelot::FullBorderLayout::count ( ) const

Definition at line 241 of file FullBorderLayout.cpp.

QGraphicsLayoutItem * Lancelot::FullBorderLayout::itemAt ( int  i) const

Definition at line 252 of file FullBorderLayout.cpp.

void Lancelot::FullBorderLayout::removeAt ( int  index)

Definition at line 283 of file FullBorderLayout.cpp.

void Lancelot::FullBorderLayout::setAutoSize ( Border  border)

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

Parameters
borderborder for which the auto size is being specified

Definition at line 272 of file FullBorderLayout.cpp.

void Lancelot::FullBorderLayout::setGeometry ( const QRectF &  rect)

Definition at line 122 of file FullBorderLayout.cpp.

void Lancelot::FullBorderLayout::setSize ( qreal  size,
Border  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.

Parameters
sizesize of the border
borderborder for which the size is being specified

Definition at line 266 of file FullBorderLayout.cpp.

qreal Lancelot::FullBorderLayout::size ( Border  border) const

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.

Parameters
borderborder for which the size is requested

Definition at line 278 of file FullBorderLayout.cpp.

QSizeF Lancelot::FullBorderLayout::sizeHint ( Qt::SizeHint  which,
const QSizeF &  constraint = QSizeF() 
) const

Definition at line 203 of file FullBorderLayout.cpp.


The documentation for this class was generated from the following files:
  • FullBorderLayout.h
  • FullBorderLayout.cpp
This file is part of the KDE documentation.
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.

liblancelot

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

kdeplasma-addons API Reference

Skip menu "kdeplasma-addons API Reference"
  •     GroupingDesktop
  •   liblancelot

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal