返回介绍

QWSWindow Class

发布于 2019-10-04 15:04:14 字数 3854 浏览 1065 评论 0 收藏 0

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

#include <qwindowsystem_qws.h>

List of all member functions.

Public Members

  • QWSWindow ( inti, QWSClient*client )
  • ~QWSWindow ()
  • int winId () const
  • const QString & name () const
  • const QString & caption () const
  • QWSClient * client () const
  • QRegion requested () const
  • QRegion allocation () const
  • bool isVisible () const
  • bool isPartiallyObscured () const
  • bool isFullyObscured () const
  • void raise ()
  • void lower ()
  • void show ()
  • void hide ()
  • void setActiveWindow ()

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 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 Qt/Embedded.


Member Function Documentation

QWSWindow::QWSWindow ( inti, QWSClient*client )

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

QWSWindow::~QWSWindow ()

Destructor.

QRegion QWSWindow::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().

constQString& QWSWindow::caption () const

Returns this 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 is the window is completely obsured by another window or by the bounds of the screen; otherwise returns FALSE.

bool QWSWindow::isPartiallyObscured () const

Returns TRUE is the window is partially 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.

constQString& QWSWindow::name () const

Returns the name of this window.

void QWSWindow::raise ()

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

QRegion QWSWindow::requested () const

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

See also allocation().

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 Id of this window.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文