Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QWSWindow Class

TheQWSWindow class encapsulates a top-level window in Qt for Embedded Linux.More...

Header:#include <QWSWindow>

Public Types

enumState { NoState, Hidden, Showing, Visible, ..., Destroyed }

Public Functions

const QString &caption() const
QWSClient *client() const
QRegiondirtyOnScreen() const
boolisFullyObscured() const
boolisOpaque() const
boolisVisible() const
const QString &name() const
uintopacity() const
const QRegion &requestedRegion() const
Statestate() const
intwinId() const
Qt::WindowFlagswindowFlags() const

Detailed Description

TheQWSWindow class encapsulates a top-level window in Qt for Embedded Linux.

When you run aQt for Embedded Linux application, it either runs as a server or connects to an existing server. As applications add and remove windows, the server process maintains information about each window. InQt for Embedded Linux, top-level windows are encapsulated asQWSWindow objects. Note that you should never construct theQWSWindow class yourself; the current top-level windows can be retrieved using theQWSServer::clientWindows() function.

With a window at hand, you can retrieve its caption, name, opacity and ID using thecaption(),name(),opacity() andwinId() functions, respectively. Use theclient() function to retrieve a pointer to the client that owns the window.

Use theisVisible() function to find out if the window is visible. You can find out if the window is completely obscured by another window or by the bounds of the screen, using theisFullyObscured() function. TheisOpaque() function returns true if the window has an alpha channel equal to 255. Finally, therequestedRegion() function returns the region of the display the window wants to draw on.

See alsoQWSServer,QWSClient, andQt for Embedded Linux Architecture.

Member Type Documentation

enum QWSWindow::State

This enum describes the state of a window. Most of the transitional states are set just before a call toQScreen::exposeRegion() and reset immediately afterwards.

ConstantValueDescription
QWSWindow::NoState0Initial state before the window is properly initialized.
QWSWindow::Hidden1The window is not visible.
QWSWindow::Showing2The window is being shown.
QWSWindow::Visible3The window is visible, and not in a transition.
QWSWindow::Hiding4The window is being hidden.
QWSWindow::Raising5The windoe is being raised.
QWSWindow::Lowering6The window is being raised.
QWSWindow::Moving7The window is being moved.
QWSWindow::ChangingGeometry8The window's geometry is being changed.
QWSWindow::Destroyed9The window is destroyed.

See alsostate() andQScreen::exposeRegion().

Member Function Documentation

constQString & QWSWindow::caption() const

Returns the window's caption.

See alsoname() andwinId().

QWSClient * QWSWindow::client() const

Returns a reference to theQWSClient object that owns this window.

See alsorequestedRegion().

QRegion QWSWindow::dirtyOnScreen() const

Returns the region that has been repainted since the previousQScreen::exposeRegion(), and needs to be copied to the screen.

This function was introduced in Qt 4.3.

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.

See alsoisVisible().

bool QWSWindow::isOpaque() const

Returns true if the window is opaque, i.e., if its alpha channel equals 255; otherwise returns false.

See alsoopacity().

bool QWSWindow::isVisible() const

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

See alsoisFullyObscured().

constQString & QWSWindow::name() const

Returns the window's name, which is taken from theobjectName() at the time ofshow().

See alsocaption() andwinId().

uint QWSWindow::opacity() const

Returns the window's alpha channel value.

See alsoisOpaque().

constQRegion & QWSWindow::requestedRegion() const

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

See alsoclient().

State QWSWindow::state() const

Returns the current state of the window.

This function was introduced in Qt 4.3.

int QWSWindow::winId() const

Returns the window's ID.

See alsoname() andcaption().

Qt::WindowFlags QWSWindow::windowFlags() const

Returns the window flags of the window. This value is only available after the first paint event.

This function was introduced in Qt 4.3.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.


[8]ページ先頭

©2009-2025 Movatter.jp