libplasma
Plasma::NodeLayout::NodeCoordinate Class Reference
#include <nodelayout.h>
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
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
Definition at line 69 of file nodelayout.h.
Definition at line 69 of file nodelayout.h.
Definition at line 70 of file nodelayout.h.
Definition at line 70 of file nodelayout.h.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference