1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
'\" t
.TH QWSWindow 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
.\"
.ad l
.nh
.SH NAME
QWSWindow \- Server-specific functionality in Qt/Embedded
.SH SYNOPSIS
\fC#include <qwindowsystem_qws.h>\fR
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBQWSWindow\fR ( int i, QWSClient * client )"
.br
.ti -1c
.BI "\fB~QWSWindow\fR ()"
.br
.ti -1c
.BI "int \fBwinId\fR () const"
.br
.ti -1c
.BI "const QString & \fBname\fR () const"
.br
.ti -1c
.BI "const QString & \fBcaption\fR () const"
.br
.ti -1c
.BI "QWSClient * \fBclient\fR () const"
.br
.ti -1c
.BI "QRegion \fBrequested\fR () const"
.br
.ti -1c
.BI "QRegion \fBallocation\fR () const"
.br
.ti -1c
.BI "bool \fBisVisible\fR () const"
.br
.ti -1c
.BI "bool \fBisPartiallyObscured\fR () const"
.br
.ti -1c
.BI "bool \fBisFullyObscured\fR () const"
.br
.ti -1c
.BI "void \fBraise\fR ()"
.br
.ti -1c
.BI "void \fBlower\fR ()"
.br
.ti -1c
.BI "void \fBshow\fR ()"
.br
.ti -1c
.BI "void \fBhide\fR ()"
.br
.ti -1c
.BI "void \fBsetActiveWindow\fR ()"
.br
.in -1c
.SH DESCRIPTION
The QWSWindow class provides server-specific functionality in Qt/Embedded.
.PP
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.
.PP
This class maintains information about each window and allows operations to be performed on the windows.
.PP
You can get the window's name(), caption() and winId(), along with the client() that owns the window.
.PP
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().
.PP
The visibility of the window can be determined using isVisible(), isPartiallyObscured() and isFullyObscured(). Visibility can be changed using raise(), lower(), show(), hide() and setActiveWindow().
.PP
See also Qt/Embedded.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QWSWindow::QWSWindow ( int i, QWSClient * client )"
Constructs a new top-level window, associated with the client \fIclient\fR and giving it the id \fIi\fR.
.SH "QWSWindow::~QWSWindow ()"
Destructor.
.SH "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.
.PP
See also requested().
.SH "const QString & QWSWindow::caption () const"
Returns the window's caption.
.SH "QWSClient * QWSWindow::client () const"
Returns the QWSClient that owns this window.
.SH "void QWSWindow::hide ()"
Hides the window.
.SH "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.
.SH "bool QWSWindow::isPartiallyObscured () const"
Returns TRUE if the window is partially obsured by another window or by the bounds of the screen; otherwise returns FALSE.
.SH "bool QWSWindow::isVisible () const"
Returns TRUE if the window is visible; otherwise returns FALSE.
.SH "void QWSWindow::lower ()"
Lowers the window below other windows.
.SH "const QString & QWSWindow::name () const"
Returns the window's name.
.SH "void QWSWindow::raise ()"
Raises the window above all other windows except "Stay on top" windows.
.SH "QRegion QWSWindow::requested () const"
Returns the region that the window has requested to draw onto, including any window decorations.
.PP
See also allocation().
.SH "void QWSWindow::setActiveWindow ()"
Make this the active window (i.e. sets the keyboard focus to this window).
.SH "void QWSWindow::show ()"
Shows the window.
.SH "int QWSWindow::winId () const"
Returns the window's Id.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qwswindow.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
license file included in the distribution for a complete license
statement.
.SH AUTHOR
Generated automatically from the source code.
.SH BUGS
If you find a bug in Qt, please report it as described in
.BR http://doc.trolltech.com/bughowto.html .
Good bug reports help us to help you. Thank you.
.P
The definitive TQt documentation is provided in HTML format; it is
located at $QTDIR/doc/html and can be read using TQt Assistant or with
a web browser. This man page is provided as a convenience for those
users who prefer man pages, although this format is not officially
supported by Trolltech.
.P
If you find errors in this manual page, please report them to
.BR qt-bugs@trolltech.com .
Please include the name of the manual page (tqwswindow.3qt) and the Qt
version (3.3.8).
|