QWSWindow Class ReferenceThe QWSWindow class encapsulates a top-level window in Qt for Embedded Linux. More... #include <QWSWindow> Public Types
Public Functions
Detailed DescriptionThe QWSWindow class encapsulates a top-level window in Qt for Embedded Linux. When you run a Qt 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. In Qt for Embedded Linux, top-level windows are encapsulated as QWSWindow objects. Note that you should never construct the QWSWindow class yourself; the current top-level windows can be retrieved using the QWSServer::clientWindows() function. With a window at hand, you can retrieve its caption, name, opacity and ID using the caption(), name(), opacity() and winId() functions, respectively. Use the client() function to retrieve a pointer to the client that owns the window. Use the isVisible() 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 the isFullyObscured() function. The isOpaque() function returns true if the window has an alpha channel equal to 255. Finally, the requestedRegion() function returns the region of the display the window wants to draw on. See also QWSServer, QWSClient, and Qt for Embedded Linux Architecture. Member Type Documentationenum QWSWindow::StateThis enum describes the state of a window. Most of the transitional states are set just before a call to QScreen::exposeRegion() and reset immediately afterwards.
See also state() and QScreen::exposeRegion(). Member Function Documentationconst QString & QWSWindow::caption () constReturns the window's caption. QWSClient * QWSWindow::client () constReturns a reference to the QWSClient object that owns this window. See also requestedRegion(). QRegion QWSWindow::dirtyOnScreen () constReturns the region that has been repainted since the previous QScreen::exposeRegion(), and needs to be copied to the screen. This function was introduced in Qt 4.3. bool QWSWindow::isFullyObscured () constReturns true if the window is completely obsured by another window or by the bounds of the screen; otherwise returns false. See also isVisible(). bool QWSWindow::isOpaque () constReturns true if the window is opaque, i.e., if its alpha channel equals 255; otherwise returns false. See also opacity(). bool QWSWindow::isVisible () constReturns true if the window is visible; otherwise returns false. See also isFullyObscured(). const QString & QWSWindow::name () constReturns the window's name, which is taken from the objectName() at the time of show(). See also caption() and winId(). uint QWSWindow::opacity () constReturns the window's alpha channel value. See also isOpaque(). const QRegion & QWSWindow::requestedRegion () constReturns the region that the window has requested to draw onto, including any window decorations. See also client(). State QWSWindow::state () constReturns the current state of the window. This function was introduced in Qt 4.3. int QWSWindow::winId () constReturns the window's ID. See also name() and caption(). Qt::WindowFlags QWSWindow::windowFlags () constReturns the window flags of the window. This value is only available after the first paint event. This function was introduced in Qt 4.3. X
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |