Home · API Reference · Modules |
Public Member Functions | |
WindowedSurface (WindowedSurfaceFactory *factory, AbstractSurface::Options options, const QSharedPointer< WindowedSurface > &parent, QWidget *toplevel) | |
~WindowedSurface () | |
void | show () |
void | hide () |
QSize | size () const |
void | setSize (const QSize &size) |
QPoint | relativePosition () const |
void | setRelativePosition (const QPoint &position) |
QSharedPointer< AbstractSurface > | parent () const |
QPoint | translateEventPosition (const QPoint &eventPosition, const QSharedPointer< AbstractSurface > &eventSurface=QSharedPointer< AbstractSurface >()) const |
void | setActive (bool active) |
void | applicationFocusChanged (WId winId) |
QRegion | inputMethodArea () |
Protected Member Functions | |
bool | isWindow () const |
QPoint | mapToGlobal (const QPoint &pos) const |
Protected Attributes | |
WindowedSurfaceFactory * | mFactory |
Options | mOptions |
QSharedPointer< WindowedSurface > | mParent |
QScopedPointer< QWidget > | mToplevel |
bool | mActive |
bool | mVisible |
QPoint | mRelativePosition |
Maliit::Server::WindowedSurface::WindowedSurface | ( | WindowedSurfaceFactory * | factory, |
AbstractSurface::Options | options, | ||
const QSharedPointer< WindowedSurface > & | parent, | ||
QWidget * | toplevel | ||
) | [inline] |
Maliit::Server::WindowedSurface::~WindowedSurface | ( | ) | [inline] |
void Maliit::Server::WindowedSurface::applicationFocusChanged | ( | WId | winId | ) | [inline] |
void Maliit::Server::WindowedSurface::hide | ( | ) | [inline, virtual] |
hides the surface and its children.
Implements Maliit::Plugins::AbstractSurface.
QRegion Maliit::Server::WindowedSurface::inputMethodArea | ( | ) | [inline] |
bool Maliit::Server::WindowedSurface::isWindow | ( | ) | const [inline, protected] |
QPoint Maliit::Server::WindowedSurface::mapToGlobal | ( | const QPoint & | pos | ) | const [inline, protected] |
QSharedPointer<AbstractSurface> Maliit::Server::WindowedSurface::parent | ( | ) | const [inline, virtual] |
returns the parent of a surface
Implements Maliit::Plugins::AbstractSurface.
QPoint Maliit::Server::WindowedSurface::relativePosition | ( | ) | const [inline, virtual] |
returns the position of the surface relative to its parent
Implements Maliit::Plugins::AbstractSurface.
void Maliit::Server::WindowedSurface::setActive | ( | bool | active | ) | [inline] |
void Maliit::Server::WindowedSurface::setRelativePosition | ( | const QPoint & | position | ) | [inline, virtual] |
sets the surface's position relative to its parent (for a PositionOverlay surface)
position | the requested relative position |
Implements Maliit::Plugins::AbstractSurface.
void Maliit::Server::WindowedSurface::setSize | ( | const QSize & | size | ) | [inline, virtual] |
sets the size of the surface
size | the requested surface size |
Implements Maliit::Plugins::AbstractSurface.
Reimplemented in Maliit::Server::WindowedGraphicsViewSurface.
void Maliit::Server::WindowedSurface::show | ( | ) | [inline, virtual] |
shows the surface.
Implements Maliit::Plugins::AbstractSurface.
Reimplemented in Maliit::Server::WindowedGraphicsViewSurface.
QSize Maliit::Server::WindowedSurface::size | ( | ) | const [inline, virtual] |
returns the real size of the surface
Implements Maliit::Plugins::AbstractSurface.
QPoint Maliit::Server::WindowedSurface::translateEventPosition | ( | const QPoint & | eventPosition, |
const QSharedPointer< AbstractSurface > & | eventSurface = QSharedPointer< AbstractSurface >() |
||
) | const [inline, 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) |
Implements Maliit::Plugins::AbstractSurface.
bool Maliit::Server::WindowedSurface::mActive [protected] |
Options Maliit::Server::WindowedSurface::mOptions [protected] |
QSharedPointer<WindowedSurface> Maliit::Server::WindowedSurface::mParent [protected] |
QPoint Maliit::Server::WindowedSurface::mRelativePosition [protected] |
QScopedPointer<QWidget> Maliit::Server::WindowedSurface::mToplevel [protected] |
bool Maliit::Server::WindowedSurface::mVisible [protected] |
Copyright © 2011 Nokia Corporation | Maliit |