|  | Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions |

# QWSWindow Class Reference

The QWSWindow class provides server-specific functionality in Qt/Embedded. More...

    #include <QWSWindow>

Part of the QtGui module.

- List of all members, including inherited members

### Public Functions

- QWSWindow ( int i, QWSClient * client )
- ~QWSWindow ()
- const QString & caption () const
- QWSClient * client () const
- void hide ()
- bool isFullyObscured () const
- bool isVisible () const
- void lower ()
- const QString & name () const
- void raise ()
- QRegion requestedRegion () const
- void setActiveWindow ()
- void show ()
- int winId () const

## Detailed Description

The QWSWindow class provides server-specific functionality in Qt/Embedded.

When you run a Qt/Embedded 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.

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

### void QWSWindow::raise ()

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

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