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

libplasma

Plasma::NodeLayout::NodeCoordinate

Plasma::NodeLayout::NodeCoordinate Class Reference

#include <nodelayout.h>

List of all members.


Detailed Description

Definition at line 53 of file 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

float xr
float xa
float yr
float ya

Member Enumeration Documentation

enum Plasma::NodeLayout::NodeCoordinate::CoordinateType

Enumerator:
Relative 
Absolute 
InnerRelative 

Definition at line 62 of file nodelayout.h.


Constructor & Destructor Documentation

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

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

Definition at line 29 of file nodelayout.cpp.


Member Function Documentation

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

Definition at line 32 of file nodelayout.cpp.


Member Data Documentation

float Plasma::NodeLayout::NodeCoordinate::xr

Definition at line 69 of file nodelayout.h.

float Plasma::NodeLayout::NodeCoordinate::xa

Definition at line 69 of file nodelayout.h.

float Plasma::NodeLayout::NodeCoordinate::yr

Definition at line 70 of file nodelayout.h.

float Plasma::NodeLayout::NodeCoordinate::ya

Definition at line 70 of file nodelayout.h.


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