|  | 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.

- List of all members, including inherited members

### Public Types

- enum Transformation { None, Rot90, Rot180, Rot270 }

### Public Functions

- QTransformedScreen ( int displayId )
- ~QTransformedScreen ()
- void setTransformation ( Transformation transformation )
- Transformation transformation () const

- 52 public functions inherited from QScreen

### Additional Inherited Members

- 1 static public member inherited from QScreen

## 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.

Constant | Value | Description
--- | --- | ---
`QTransformedScreen::None` | `0` | No rotation
`QTransformedScreen::Rot90` | `1` | 90 degrees rotation
`QTransformedScreen::Rot180` | `2` | 180 degrees rotation
`QTransformedScreen::Rot270` | `3` | 270 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().