Home · API Reference · Modules
Public Member Functions | Protected Member Functions | Protected Attributes
Maliit::Server::WindowedSurface Class Reference
Inheritance diagram for Maliit::Server::WindowedSurface:
Inheritance graph
[legend]

List of all members.

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< AbstractSurfaceparent () 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

WindowedSurfaceFactorymFactory
Options mOptions
QSharedPointer< WindowedSurfacemParent
QScopedPointer< QWidget > mToplevel
bool mActive
bool mVisible
QPoint mRelativePosition

Constructor & Destructor Documentation

Maliit::Server::WindowedSurface::WindowedSurface ( WindowedSurfaceFactory factory,
AbstractSurface::Options  options,
const QSharedPointer< WindowedSurface > &  parent,
QWidget *  toplevel 
) [inline]

Member Function Documentation

void Maliit::Server::WindowedSurface::hide ( ) [inline, virtual]

hides the surface and its children.

Implements Maliit::Plugins::AbstractSurface.

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

Returns:
the surface's parent

Implements Maliit::Plugins::AbstractSurface.

QPoint Maliit::Server::WindowedSurface::relativePosition ( ) const [inline, virtual]

returns the position of the surface relative to its parent

Returns:
the surface's position 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)

Parameters:
positionthe requested relative position

Implements Maliit::Plugins::AbstractSurface.

void Maliit::Server::WindowedSurface::setSize ( const QSize &  size) [inline, virtual]

sets the size of the surface

Parameters:
sizethe 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

Returns:
the surface's real size

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

Parameters:
eventPositionthe coordinates of the event
eventSurfacethe surface where the event occured (by default this)
Returns:
the event coordinates translated to the surface coordinate system

Implements Maliit::Plugins::AbstractSurface.


Member Data Documentation

QScopedPointer<QWidget> Maliit::Server::WindowedSurface::mToplevel [protected]

Copyright © 2011 Nokia Corporation
Maliit