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

QWSWindow Class Reference
[QtGui module]

The QWSWindow class provides server-specific functionality in Qtopia Core. More...

#include <QWSWindow>

Public Functions


Detailed Description

The QWSWindow class provides server-specific functionality in Qtopia Core.

When you run a Qtopia Core application, it either runs as a server or connects to an existing server. If it runs as a server, some additional functionality is provided by the QWSServer class.

This class maintains information about each window and allows operations to be performed on the windows.

You can get the window's name(), caption() and winId(), along with the client() that owns the window.

The region the window wants to draw on is returned by requestedRegion().

The visibility of the window can be determined using isVisible(). Visibility can be changed using raise(), lower(), show(), hide() and setActiveWindow().


Member Function Documentation

QWSWindow::QWSWindow ( int i, QWSClient * client )

Constructs a new top-level window, associated with the client client and giving it the id i.

QWSWindow::~QWSWindow ()

Destructor.

QWSBackingStore * QWSWindow::backingStore ()

const QString & QWSWindow::caption () const

Returns the window's caption.

QWSClient * QWSWindow::client () const

Returns the QWSClient that owns this window.

void QWSWindow::hide ()

Hides the window.

bool QWSWindow::isFullyObscured () const

Returns true if the window is completely obsured by another window or by the bounds of the screen; otherwise returns false.

bool QWSWindow::isOpaque () const

bool QWSWindow::isVisible () const

Returns true if the window is visible; otherwise returns false.

void QWSWindow::lower ()

Lowers the window below other windows.

const QString & QWSWindow::name () const

Returns the window's name.

uint QWSWindow::opacity () const

void QWSWindow::raise ()

Raises the window above all other windows except "Stay on top" windows.

const QRegion & QWSWindow::requestedRegion () const

Returns the region that the window has requested to draw onto, including any window decorations.

void QWSWindow::setActiveWindow ()

Make this the active window (i.e. sets the keyboard focus to this window).

void QWSWindow::show ()

Shows the window.

int QWSWindow::winId () const

Returns the window's Id.


Copyright © 2005 Trolltech Trademarks
Qt 4.1.0
Hosted by uCoz