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

liblancelot

  • Lancelot
  • ColumnLayout
  • ColumnSizer
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Lancelot::ColumnLayout::ColumnSizer Class Referenceabstract

#include <ColumnLayout.h>

Inherited by Lancelot::EqualColumnSizer, Lancelot::GoldenColumnSizer, and Lancelot::PassagewayViewSizer.

Public Types

enum  SizerType { EqualSizer, GoldenSizer }
 

Public Member Functions

virtual ~ColumnSizer ()
 
virtual void init (int count)=0
 
virtual qreal size ()=0
 

Static Public Member Functions

static ColumnSizer * create (SizerType type)
 

Detailed Description

Abstract interface for implementing column size calculation depending on the column count.

Two basic implementations are provided - one that returns equal sizes for all visible columns, and one that uses the golden ratio.

Definition at line 59 of file ColumnLayout.h.

Member Enumeration Documentation

enum Lancelot::ColumnLayout::ColumnSizer::SizerType
Enumerator
EqualSizer 

Sizer that returns the same size for all visible columns.

GoldenSizer 

Sizer that uses golden ratio for visible column sizes.

Definition at line 84 of file ColumnLayout.h.

Constructor & Destructor Documentation

Lancelot::ColumnLayout::ColumnSizer::~ColumnSizer ( )
virtual

Destroys the ColumnLayout::ColumnSizer.

Definition at line 80 of file ColumnLayout.cpp.

Member Function Documentation

ColumnLayout::ColumnSizer * Lancelot::ColumnLayout::ColumnSizer::create ( SizerType  type)
static
Returns
a new ColumnSizer with one of the default implementations

Definition at line 84 of file ColumnLayout.cpp.

virtual void Lancelot::ColumnLayout::ColumnSizer::init ( int  count)
pure virtual

Initializes the ColumnSizer.

This function should calculate or otherwise prepare the data needed for retrieving the sizes of columns depending on the column count. It should also reset the current column counter to the first column.

Parameters
countcolumn count
virtual qreal Lancelot::ColumnLayout::ColumnSizer::size ( )
pure virtual
Returns
the size of the current column. This function should return the size of the current column and move the current column pointer to the next column.

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