Qt Simulator Manual 1.2.0

ViewScriptInterface Class Reference

Exposed as simulator. More...

 #include <ViewScriptInterface>

Public Types

enum Orientation { topUp, topDown, leftUp, rightUp }


Public Functions

ViewScriptInterface ( ViewUi * ui )
virtual ~ViewScriptInterface ()
int availableGeometryHeight () const
int availableGeometryWidth () const
int availableGeometryX () const
int availableGeometryY () const
int currentDeviceIndex () const
QString currentDeviceName () const
int deviceCount () const
QString deviceOrientation () const
QString screenOrientation () const
void setDevice ( const QString & dev )
void setDevice ( int index )
bool setDeviceOrientation ( QString newOrientation, bool rotateScreen )
void setZoom ( int z )
QStringList supportedScreenOrientations () const
int zoom () const

Detailed Description

Exposed as simulator.

Member Type Documentation

enum ViewScriptInterface::Orientation

Property Documentation

zoom : int

This property holds the device scaling.

The value can be between between 0 for real-world size and 100 for pixel equivalence.

Access functions:

int zoom () const
void setZoom ( int z )

Member Function Documentation

ViewScriptInterface::ViewScriptInterface ( ViewUi * ui )

ViewScriptInterface::~ViewScriptInterface () [virtual]

int ViewScriptInterface::availableGeometryHeight () const

int ViewScriptInterface::availableGeometryWidth () const

int ViewScriptInterface::availableGeometryX () const

int ViewScriptInterface::availableGeometryY () const

int ViewScriptInterface::currentDeviceIndex () const

Returns the index of the current device.

See also setDevice() and deviceCount().

QString ViewScriptInterface::currentDeviceName () const

Returns the name of the current device.

See also setDevice().

int ViewScriptInterface::deviceCount () const

Returns the number of available device models.

See also setDevice() and currentDeviceIndex().

QString ViewScriptInterface::deviceOrientation () const

Returns the current device orientation.

See also setDeviceOrientation().

QString ViewScriptInterface::screenOrientation () const

Returns the current screen orientation.

void ViewScriptInterface::setDevice ( const QString & dev )

Sets the current device to be the one identified by dev.

See also currentDeviceName().

void ViewScriptInterface::setDevice ( int index )

Sets the current device to the one with index.

See also deviceCount() and currentDeviceIndex().

bool ViewScriptInterface::setDeviceOrientation ( QString newOrientation, bool rotateScreen )

Rotates the current device, and - optionally - the screen. Returns true on success.

See also deviceOrientation().

QStringList ViewScriptInterface::supportedScreenOrientations () const

Returns the list of screen orientations.


Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();