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

liblancelot

  • Lancelot
  • NodeLayout
  • NodeCoordinate
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Lancelot::NodeLayout::NodeCoordinate Class Reference

#include <NodeLayout.h>

Public Types

enum  CoordinateType { Relative = 0, Absolute = 1, InnerRelative = 2 }
 

Public Member Functions

 NodeCoordinate (qreal xRelative=0, qreal yRelative=0, qreal xAbsolute=0, qreal yAbsolute=0)
 

Static Public Member Functions

static NodeCoordinate simple (qreal x, qreal y, CoordinateType xType=Relative, CoordinateType yType=Relative)
 

Public Attributes

qreal xa
 
qreal xr
 
qreal ya
 
qreal yr
 

Detailed Description

Definition at line 53 of file NodeLayout.h.

Member Enumeration Documentation

enum Lancelot::NodeLayout::NodeCoordinate::CoordinateType
Enumerator
Relative 
Absolute 
InnerRelative 

Definition at line 62 of file NodeLayout.h.

Constructor & Destructor Documentation

Lancelot::NodeLayout::NodeCoordinate::NodeCoordinate ( qreal  xRelative = 0,
qreal  yRelative = 0,
qreal  xAbsolute = 0,
qreal  yAbsolute = 0 
)
explicit

Position is calculated: x = parentLeft + (xRelative * parentWidth) + xAbsolute y = parentTop + (yRelative * parentHeight) + yAbsolute.

Definition at line 33 of file NodeLayout.cpp.

Member Function Documentation

NodeLayout::NodeCoordinate Lancelot::NodeLayout::NodeCoordinate::simple ( qreal  x,
qreal  y,
CoordinateType  xType = Relative,
CoordinateType  yType = Relative 
)
static

Definition at line 36 of file NodeLayout.cpp.

Member Data Documentation

qreal Lancelot::NodeLayout::NodeCoordinate::xa

Definition at line 69 of file NodeLayout.h.

qreal Lancelot::NodeLayout::NodeCoordinate::xr

Definition at line 69 of file NodeLayout.h.

qreal Lancelot::NodeLayout::NodeCoordinate::ya

Definition at line 70 of file NodeLayout.h.

qreal Lancelot::NodeLayout::NodeCoordinate::yr

Definition at line 70 of file NodeLayout.h.


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