
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQWSWindow class encapsulates a top-level window in Qt for Embedded Linux.More...
| Header: | #include <QWSWindow> |
| enum | State { NoState, Hidden, Showing, Visible, ..., Destroyed } |
| const QString & | caption() const |
| QWSClient * | client() const |
| QRegion | dirtyOnScreen() const |
| bool | isFullyObscured() const |
| bool | isOpaque() const |
| bool | isVisible() const |
| const QString & | name() const |
| uint | opacity() const |
| const QRegion & | requestedRegion() const |
| State | state() const |
| int | winId() const |
| Qt::WindowFlags | windowFlags() const |
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.
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.
| Constant | Value | Description |
|---|---|---|
QWSWindow::NoState | 0 | Initial state before the window is properly initialized. |
QWSWindow::Hidden | 1 | The window is not visible. |
QWSWindow::Showing | 2 | The window is being shown. |
QWSWindow::Visible | 3 | The window is visible, and not in a transition. |
QWSWindow::Hiding | 4 | The window is being hidden. |
QWSWindow::Raising | 5 | The windoe is being raised. |
QWSWindow::Lowering | 6 | The window is being raised. |
QWSWindow::Moving | 7 | The window is being moved. |
QWSWindow::ChangingGeometry | 8 | The window's geometry is being changed. |
QWSWindow::Destroyed | 9 | The window is destroyed. |
See alsostate() andQScreen::exposeRegion().
Returns the window's caption.
Returns a reference to theQWSClient object that owns this window.
See alsorequestedRegion().
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.
Returns true if the window is completely obsured by another window or by the bounds of the screen; otherwise returns false.
See alsoisVisible().
Returns true if the window is opaque, i.e., if its alpha channel equals 255; otherwise returns false.
See alsoopacity().
Returns true if the window is visible; otherwise returns false.
See alsoisFullyObscured().
Returns the window's name, which is taken from theobjectName() at the time ofshow().
Returns the window's alpha channel value.
See alsoisOpaque().
Returns the region that the window has requested to draw onto, including any window decorations.
See alsoclient().
Returns the current state of the window.
This function was introduced in Qt 4.3.
Returns the window's ID.
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.