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 ()
- Public Member Functions inherited from Maliit::Plugins::AbstractSurface
virtual ~AbstractSurface ()

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

Additional Inherited Members

- Public Types inherited from Maliit::Plugins::AbstractSurface
enum  Option

Constructor & Destructor Documentation

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

Member Function Documentation

void Maliit::Server::WindowedSurface::applicationFocusChanged ( WId  winId)
inline
void Maliit::Server::WindowedSurface::hide ( )
inlinevirtual

hides the surface and its children.

Implements Maliit::Plugins::AbstractSurface.

QRegion Maliit::Server::WindowedSurface::inputMethodArea ( )
inline
bool Maliit::Server::WindowedSurface::isWindow ( ) const
inlineprotected
QPoint Maliit::Server::WindowedSurface::mapToGlobal ( const QPoint &  pos) const
inlineprotected
QSharedPointer<AbstractSurface> Maliit::Server::WindowedSurface::parent ( ) const
inlinevirtual

returns the parent of a surface

Returns:
the surface's parent

Implements Maliit::Plugins::AbstractSurface.

QPoint Maliit::Server::WindowedSurface::relativePosition ( ) const
inlinevirtual

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)
inlinevirtual

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)
inlinevirtual

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

shows the surface.

Implements Maliit::Plugins::AbstractSurface.

Reimplemented in Maliit::Server::WindowedGraphicsViewSurface.

QSize Maliit::Server::WindowedSurface::size ( ) const
inlinevirtual

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
inlinevirtual

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

bool Maliit::Server::WindowedSurface::mActive
protected
WindowedSurfaceFactory* Maliit::Server::WindowedSurface::mFactory
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