Home · API Reference · Modules |
Public Types | |
enum | Option |
Public Member Functions | |
virtual | ~AbstractSurface () |
virtual void | show ()=0 |
virtual void | hide ()=0 |
virtual QSize | size () const =0 |
virtual void | setSize (const QSize &size)=0 |
virtual QPoint | relativePosition () const =0 |
virtual void | setRelativePosition (const QPoint &position)=0 |
virtual QSharedPointer < AbstractSurface > | parent () const =0 |
virtual QPoint | translateEventPosition (const QPoint &eventPosition, const QSharedPointer< AbstractSurface > &eventSurface=QSharedPointer< AbstractSurface >()) const =0 |
The AbstractSurface class provides a window abstraction for rendering the plugin.
Maliit::Plugins::AbstractSurface::~AbstractSurface | ( | ) | [virtual] |
~AbstractSurface
virtual void Maliit::Plugins::AbstractSurface::hide | ( | ) | [pure virtual] |
hides the surface and its children.
Implemented in Maliit::Server::WindowedSurface.
virtual QSharedPointer<AbstractSurface> Maliit::Plugins::AbstractSurface::parent | ( | ) | const [pure virtual] |
returns the parent of a surface
Implemented in Maliit::Server::WindowedSurface.
virtual QPoint Maliit::Plugins::AbstractSurface::relativePosition | ( | ) | const [pure virtual] |
returns the position of the surface relative to its parent
Implemented in Maliit::Server::WindowedSurface.
virtual void Maliit::Plugins::AbstractSurface::setRelativePosition | ( | const QPoint & | position | ) | [pure virtual] |
sets the surface's position relative to its parent (for a PositionOverlay surface)
position | the requested relative position |
Implemented in Maliit::Server::WindowedSurface.
virtual void Maliit::Plugins::AbstractSurface::setSize | ( | const QSize & | size | ) | [pure virtual] |
sets the size of the surface
size | the requested surface size |
Implemented in Maliit::Server::WindowedGraphicsViewSurface, and Maliit::Server::WindowedSurface.
virtual void Maliit::Plugins::AbstractSurface::show | ( | ) | [pure virtual] |
shows the surface.
Implemented in Maliit::Server::WindowedGraphicsViewSurface, and Maliit::Server::WindowedSurface.
virtual QSize Maliit::Plugins::AbstractSurface::size | ( | ) | const [pure virtual] |
returns the real size of the surface
Implemented in Maliit::Server::WindowedSurface.
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
eventPosition | the coordinates of the event |
eventSurface | the surface where the event occured (by default this) |
Implemented in Maliit::Server::WindowedSurface.
Copyright © 2011 Nokia Corporation | Maliit |