The AbstractSurface class provides a window abstraction for rendering the plugin.
Maliit::Plugins::AbstractSurface::~AbstractSurface |
( |
| ) |
|
|
virtual |
virtual void Maliit::Plugins::AbstractSurface::hide |
( |
| ) |
|
|
pure virtual |
hides the surface and its children.
virtual QSharedPointer<AbstractSurface> Maliit::Plugins::AbstractSurface::parent |
( |
| ) |
const |
|
pure virtual |
returns the parent of a surface
- Returns
- the surface's parent
virtual QPoint Maliit::Plugins::AbstractSurface::relativePosition |
( |
| ) |
const |
|
pure virtual |
returns the position of the surface relative to its parent
- Returns
- the surface's position relative to its parent
virtual void Maliit::Plugins::AbstractSurface::setRelativePosition |
( |
const QPoint & |
position | ) |
|
|
pure virtual |
sets the surface's position relative to its parent (for a PositionOverlay surface)
- Parameters
-
position | the requested relative position |
virtual void Maliit::Plugins::AbstractSurface::setSize |
( |
const QSize & |
size | ) |
|
|
pure virtual |
virtual void Maliit::Plugins::AbstractSurface::show |
( |
| ) |
|
|
pure virtual |
virtual QSize Maliit::Plugins::AbstractSurface::size |
( |
| ) |
const |
|
pure virtual |
returns the real size of the surface
- Returns
- the surface's real size
virtual QPoint Maliit::Plugins::AbstractSurface::translateEventPosition |
( |
const QPoint & |
eventPosition, |
|
|
const QSharedPointer< AbstractSurface > & |
eventSurface = QSharedPointer< AbstractSurface >() |
|
) |
| const |
|
pure virtual |
translates the coordinates of an event into the surfaces coordinate system
- Parameters
-
eventPosition | the coordinates of the event |
eventSurface | the surface where the event occured (by default this) |
- Returns
- the event coordinates translated to the surface coordinate system