The AbstractSurface class provides a window abstraction for rendering the plugin.
§ Option
The Option enum describes the postioning and type of a surface.
Enumerator |
---|
None | |
PositionOverlay | |
PositionCenterBottom | |
PositionLeftBottom | |
PositionRightBottom | |
TypeWidget | |
TypeWindow | |
TypeQuick1 | |
TypeQuick2 | |
§ ~AbstractSurface()
Maliit::Plugins::AbstractSurface::~AbstractSurface |
( |
| ) |
|
|
virtual |
§ hide()
virtual void Maliit::Plugins::AbstractSurface::hide |
( |
| ) |
|
|
pure virtual |
hides the surface and its children.
§ parent()
virtual QSharedPointer<AbstractSurface> Maliit::Plugins::AbstractSurface::parent |
( |
| ) |
const |
|
pure virtual |
returns the parent of a surface
- Returns
- the surface's parent
§ relativePosition()
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
§ setRelativePosition()
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 |
§ setSize()
virtual void Maliit::Plugins::AbstractSurface::setSize |
( |
const QSize & |
size | ) |
|
|
pure virtual |
§ show()
virtual void Maliit::Plugins::AbstractSurface::show |
( |
| ) |
|
|
pure virtual |
§ size()
virtual QSize Maliit::Plugins::AbstractSurface::size |
( |
| ) |
const |
|
pure virtual |
returns the real size of the surface
- Returns
- the surface's real size
§ translateEventPosition()
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