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

# TQWSWindow Class Reference

The TQWSWindow class provides server-specific functionality in TQt/Embedded. More...

`#include <qwindowsystem_qws.h>`

List of all member functions.

## Public Members

- TQWSWindow ( int i, TQWSClient * client )
- ~TQWSWindow ()
- int winId () const
- const TQString & name () const
- const TQString & caption () const
- TQWSClient * client () const
- TQRegion requested () const
- TQRegion allocation () const
- bool isVisible () const
- bool isPartiallyObscured () const
- bool isFullyObscured () const
- void raise ()
- void lower ()
- void show ()
- void hide ()
- void setActiveWindow ()

## Detailed Description

The TQWSWindow class provides server-specific functionality in TQt/Embedded.

When you run a TQt/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 TQWSServer 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 requested(); the region that the window is allowed to draw on is returned by allocation().

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

See also TQt/Embedded.

## Member Function Documentation

### TQWSWindow::TQWSWindow ( int i, TQWSClient * client )

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

### TQWSWindow::~TQWSWindow ()

Destructor.

### TQRegion TQWSWindow::allocation () const

Returns the region that the window is allowed to draw onto, including any window decorations but excluding regions covered by other windows.

See also requested().

### const TQString & TQWSWindow::caption () const

Returns the window's caption.

### TQWSClient * TQWSWindow::client () const

Returns the TQWSClient that owns this window.

### void TQWSWindow::hide ()

Hides the window.

### bool TQWSWindow::isFullyObscured () const

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

### bool TQWSWindow::isPartiallyObscured () const

Returns TRUE if the window is partially obsured by another window or by the bounds of the screen; otherwise returns FALSE.

### bool TQWSWindow::isVisible () const

Returns TRUE if the window is visible; otherwise returns FALSE.

### void TQWSWindow::lower ()

Lowers the window below other windows.

### const TQString & TQWSWindow::name () const

Returns the window's name.

### void TQWSWindow::raise ()

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

### TQRegion TQWSWindow::requested () const

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

See also allocation().

### void TQWSWindow::setActiveWindow ()

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

### void TQWSWindow::show ()

Shows the window.

### int TQWSWindow::winId () const

Returns the window's Id.

This file is part of the TQt toolkit. Copyright © 1995-2007 Trolltech. All Rights Reserved.