Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

QTransformedScreen Class Reference
[QtGui module]

The QTransformedScreen class implements a screen driver for a transformed screen. More...

 #include <QTransformedScreen>

Inherits QScreen.

Public Types

Public Functions

Additional Inherited Members


Detailed Description

The QTransformedScreen class implements a screen driver for a transformed screen.

Note that this class is only available in Qtopia Core. Custom screen drivers can be added by subclassing the QScreenDriverPlugin class, using the QScreenDriverFactory class to dynamically load the driver into the application, but there should only be one screen object per application.

Use the QScreen::isTransformed() function to determine if a screen is transformed. The QTransformedScreen class itself provides means of rotating the screen with its setTransformation() function; the transformation() function returns the currently set rotation in terms of the Transformation enum (which describes the various available rotation settings). Alternatively, QTransformedScreen provides an implementation of the QScreen::transformOrientation() function, returning the current rotation as an integer value.

See also QScreen, QScreenDriverPlugin, and Running Applications.


Member Type Documentation

enum QTransformedScreen::Transformation

This enum describes the various rotations a transformed screen can have.

ConstantValueDescription
QTransformedScreen::None0No rotation
QTransformedScreen::Rot90190 degrees rotation
QTransformedScreen::Rot1802180 degrees rotation
QTransformedScreen::Rot2703270 degrees rotation


Member Function Documentation

QTransformedScreen::QTransformedScreen ( int displayId )

Constructs a QTransformedScreen object. The displayId argument identifies the Qtopia Core server to connect to.

QTransformedScreen::~QTransformedScreen ()

Destroys the QTransformedScreen object.

void QTransformedScreen::setTransformation ( Transformation transformation )

Rotates this screen object according to the specified transformation.

See also transformation().

Transformation QTransformedScreen::transformation () const

Returns the currently set rotation.

See also setTransformation() and QScreen::transformOrientation().


Copyright © 2006 Trolltech Trademarks
Qt 4.2.1