Home · Modules · Classes · Namespaces · Functions

QxtScreen Class Reference
[QxtGui module]

The QxtScreen class provides access to screen settings. More...

    #include <QxtScreen>

Public Functions


Detailed Description

The QxtScreen class provides access to screen settings.

QxtScreen provides access to screen settings.

Note: Currently supported platforms are X11 and Windows.


Member Function Documentation

QxtScreen::QxtScreen ( int screen = -1 )

Constructs a new QxtScreen for screen.

Note: The primary screen is used if screen is -1.

QxtScreen::QxtScreen ( QWidget * screen )

Constructs a new QxtScreen for screen.

QxtScreen::~QxtScreen ()

Destructs the screen object.

bool QxtScreen::apply ()

Applies the resolution and refresh rate.

Returns true if succeeds, false otherwise.

See also setResolution() and setRefreshRate().

QList<int> QxtScreen::availableColorDepths ( const QSize & resolution ) const

Returns the list of available color depths for resolution.

See also availableResolutions().

QList<int> QxtScreen::availableRefreshRates ( const QSize & resolution ) const

Returns the list of available refresh rates for resolution.

See also availableResolutions().

QList<QSize> QxtScreen::availableResolutions () const

Returns the list of available resolutions.

See also availableRefreshRates().

bool QxtScreen::cancel ()

Reverts the resolution and refresh rate.

Returns true if succeeds, false otherwise.

See also setResolution() and setRefreshRate().

int QxtScreen::colorDepth () const

Returns the current color depth.

Note: This is currently supported only on Windows.

See also setColorDepth().

void QxtScreen::refresh ()

Refreshes the screen information.

int QxtScreen::refreshRate () const

Returns the current refresh rate.

See also setRefreshRate().

QSize QxtScreen::resolution () const

Returns the current resolution.

See also setResolution().

QWidget * QxtScreen::screen () const

Returns the screen widget.

See also setScreen() and QDesktopWidget::screen().

int QxtScreen::screenNumber () const

Returns the screen number.

See also setScreenNumber().

void QxtScreen::setColorDepth ( int depth )

Sets the color depth.

Note: No changes are applied until apply() is called. Note: This is currently supported only on Windows.

See also colorDepth() and apply().

void QxtScreen::setRefreshRate ( int rate )

Sets the refresh rate.

Note: No changes are applied until apply() is called.

See also refreshRate() and apply().

void QxtScreen::setResolution ( const QSize & resolution )

Sets the resolution.

Note: No changes are applied until apply() is called.

See also resolution() and apply().

void QxtScreen::setScreen ( QWidget * screen )

Sets the screen.

See also QDesktopWidget::screenNumber().

void QxtScreen::setScreenNumber ( int screen )

Sets the screen number.

See also screenNumber().


Copyright © 2007-2011 Qxt Foundation
Qxt 0.6.2