Home · API Reference · Modules
Signals | Public Member Functions
Maliit::Plugins::AbstractSurfaceFactory Class Reference
Inheritance diagram for Maliit::Plugins::AbstractSurfaceFactory:
Inheritance graph
[legend]

List of all members.

Signals

void screenSizeChanged (const QSize &newSize)

Public Member Functions

 AbstractSurfaceFactory ()
virtual ~AbstractSurfaceFactory ()
virtual QSize screenSize () const =0
virtual bool supported (AbstractSurface::Options options) const =0
virtual QSharedPointer
< AbstractSurface
create (AbstractSurface::Options options, const QSharedPointer< AbstractSurface > &parent=QSharedPointer< AbstractSurface >())=0

Detailed Description

The AbstractSurfaceFactory class is used to create AbstractSurface instances.


Constructor & Destructor Documentation

Maliit::Plugins::AbstractSurfaceFactory::AbstractSurfaceFactory ( )
Maliit::Plugins::AbstractSurfaceFactory::~AbstractSurfaceFactory ( )
virtual

~AbstractSurfaceFactory


Member Function Documentation

virtual QSharedPointer<AbstractSurface> Maliit::Plugins::AbstractSurfaceFactory::create ( AbstractSurface::Options  options,
const QSharedPointer< AbstractSurface > &  parent = QSharedPointer< AbstractSurface >() 
)
pure virtual

creates a new AbstractSurface instance with options and parent

Parameters:
optionsthe options the surface should have
parentthe parent of the new surface
Returns:
a new AbstarctSurface
virtual QSize Maliit::Plugins::AbstractSurfaceFactory::screenSize ( ) const
pure virtual

returns the available screen size in current screen orientation

Returns:
the size in current screen orientation

Implemented in Maliit::Server::WindowedSurfaceFactory.

void Maliit::Plugins::AbstractSurfaceFactory::screenSizeChanged ( const QSize &  newSize)
signal

signaled when the screen size changed

Parameters:
newSizethe new screen size
virtual bool Maliit::Plugins::AbstractSurfaceFactory::supported ( AbstractSurface::Options  options) const
pure virtual

returns if a surface with options can be created

Parameters:
optionsthe options the surface should have
Returns:
true if such a surface can be created

Copyright © 2011 Nokia Corporation
Maliit