File: qwindowsstyle.html

package info (click to toggle)
qt-embedded 2.3.2-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 68,608 kB
  • ctags: 45,998
  • sloc: cpp: 276,654; ansic: 71,987; makefile: 29,074; sh: 12,305; yacc: 2,465; python: 1,863; perl: 481; lex: 480; xml: 68; lisp: 15
file content (175 lines) | stat: -rw-r--r-- 15,744 bytes parent folder | download
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QWindowsStyle Class</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">

<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>

<h1 align=center>QWindowsStyle Class Reference</h1><br clear="all">
<p>
Windows Look and Feel
<a href="#details">More...</a>
<p>
<code>#include &lt;<a href="qwindowsstyle-h.html">qwindowsstyle.h</a>&gt;</code>
<p>
Inherits <a href="qcommonstyle.html">QCommonStyle</a>.
<p>Inherited by <a href="qplatinumstyle.html">QPlatinumStyle</a>.
<p><a href="qwindowsstyle-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#bb6519"><b>QWindowsStyle</b></a>()</div>
<li><div class="fn">virtual<a href="#36557b"><b>~QWindowsStyle</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#1b2d1d"><b>drawButton</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&amp;g, boolsunken=FALSE, constQBrush*fill=0)</div>
<li><div class="fn">virtualvoid<a href="#fe5aaa"><b>drawExclusiveIndicatorMask</b></a>(QPainter*p, intx, inty, intw, inth, boolon)</div>
<li><div class="fn">virtualvoid<a href="#6ff546"><b>drawSliderMask</b></a>(QPainter*p, intx, inty, intw, inth, Orientation, booltickAbove, booltickBelow)</div>
</ul>
<h2>Protected Members</h2>
<ul>
<li><div class="fn">void<a href="#9ba04b"><b>drawWinShades</b></a>(QPainter*p, intx, inty, intw, inth, constQColor&amp;c1, constQColor&amp;c2, constQColor&amp;c3, constQColor&amp;c4, constQBrush*fill)</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
Windows Look and Feel
<p>
This class implements the look and feel known from the Windows
platform. Naturally it is also Qt's default GUI style on Windows.

<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="bb6519"></a>QWindowsStyle::QWindowsStyle()</h3>
<p>Constructs a QWindowsStyle.
<h3 class="fn"><a name="36557b"></a>QWindowsStyle::~QWindowsStyle() <code>[virtual]</code></h3>
<p>Destructs the style.
<h3 class="fn"><a href="qrect.html">QRect</a><a name="8abf54"></a>QWindowsStyle::comboButtonFocusRect(intx, inty, intw, inth) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#6bc9bd">QStyle.</a>
<h3 class="fn"><a href="qrect.html">QRect</a><a name="343938"></a>QWindowsStyle::comboButtonRect(intx, inty, intw, inth) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#71383f">QStyle.</a>
<h3 class="fn">void<a name="0067ae"></a>QWindowsStyle::drawArrow(<a href="qpainter.html">QPainter</a>*p, ArrowTypetype, booldown, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, boolenabled, const<a href="qbrush.html">QBrush</a>*fill=0)</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">void<a name="6ddbd6"></a>QWindowsStyle::drawBevelButton(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, boolsunken=FALSE, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#77c5c0">QStyle.</a>
<h3 class="fn">void<a name="1b2d1d"></a>QWindowsStyle::drawButton(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, boolsunken=FALSE, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Draws a press-sensitive shape.
<p>Reimplemented from <a href="qstyle.html#20fd59">QStyle.</a>
<h3 class="fn">void<a name="00ae0e"></a>QWindowsStyle::drawCheckMark(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, boolact, booldis) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#7df57d">QStyle.</a>
<h3 class="fn">void<a name="437825"></a>QWindowsStyle::drawComboButton(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, boolsunken=FALSE, bool=FALSE, boolenabled=TRUE, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#42f8ae">QStyle.</a>
<h3 class="fn">void<a name="ee6744"></a>QWindowsStyle::drawExclusiveIndicator(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, boolon, booldown=FALSE, boolenabled=TRUE) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#7efc7e">QStyle.</a>
<h3 class="fn">void<a name="fe5aaa"></a>QWindowsStyle::drawExclusiveIndicatorMask(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, bool) <code>[virtual]</code></h3>
<p>Draws the mask of a mark indicating the state of an exclusive choice.
<p>Reimplemented from <a href="qstyle.html#a0db5b">QStyle.</a>
<h3 class="fn">void<a name="8cfd33"></a>QWindowsStyle::drawFocusRect(<a href="qpainter.html">QPainter</a>*p, const<a href="qrect.html">QRect</a>&amp;r, const<a href="qcolorgroup.html">QColorGroup</a>&amp;, const<a href="qcolor.html">QColor</a>*bg=0, bool=FALSE) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#2cbe51">QStyle.</a>
<h3 class="fn">void<a name="49ebf7"></a>QWindowsStyle::drawIndicator(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, ints, booldown=FALSE, boolenabled=TRUE) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#6010f7">QStyle.</a>
<h3 class="fn">void<a name="c0d513"></a>QWindowsStyle::drawPanel(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, boolsunken=FALSE, intlineWidth=1, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#414a7e">QStyle.</a>
<h3 class="fn">void<a name="aa32e9"></a>QWindowsStyle::drawPopupMenuItem(<a href="qpainter.html">QPainter</a>*p, boolcheckable, intmaxpmw, inttab, QMenuItem*mi, const<a href="qpalette.html">QPalette</a>&amp;pal, boolact, boolenabled, intx, inty, intw, inth) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#c5672c">QStyle.</a>
<h3 class="fn">void<a name="50e777"></a>QWindowsStyle::drawPopupPanel(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, int=2, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#377284">QStyle.</a>
<h3 class="fn">void<a name="e99801"></a>QWindowsStyle::drawPushButton(<a href="qpushbutton.html">QPushButton</a>*btn, <a href="qpainter.html">QPainter</a>*p) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#e6ad17">QStyle.</a>
<h3 class="fn">void<a name="671aef"></a>QWindowsStyle::drawScrollBarControls(<a href="qpainter.html">QPainter</a>*p, const<a href="qscrollbar.html">QScrollBar</a>*sb, intsliderStart, uintcontrols, uintactiveControl) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#e3d23d">QStyle.</a>
<h3 class="fn">void<a name="79d326"></a>QWindowsStyle::drawSlider(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, <a href="qt.html#Orientation">Orientation</a>orient, booltickAbove, booltickBelow) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#11145c">QStyle.</a>
<h3 class="fn">void<a name="9884f4"></a>QWindowsStyle::drawSliderGroove(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, QCOORDc, <a href="qt.html#Orientation">Orientation</a>orient) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#c3fcb9">QStyle.</a>
<h3 class="fn">void<a name="6ff546"></a>QWindowsStyle::drawSliderMask(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, <a href="qt.html#Orientation">Orientation</a>orient, booltickAbove, booltickBelow) <code>[virtual]</code></h3>
<p>Draws the mask of a slider.
<p>Reimplemented from <a href="qstyle.html#ee7ad4">QStyle.</a>
<h3 class="fn">void<a name="6d7c47"></a>QWindowsStyle::drawSplitter(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&amp;g, <a href="qt.html#Orientation">Orientation</a>) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#acbd66">QStyle.</a>
<h3 class="fn">void<a name="205098"></a>QWindowsStyle::drawTab(<a href="qpainter.html">QPainter</a>*p, const<a href="qtabbar.html">QTabBar</a>*tb, <a href="qtab.html">QTab</a>*t, boolselected)</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">void<a name="49ff37"></a>QWindowsStyle::drawTabMask(<a href="qpainter.html">QPainter</a>*p, const<a href="qtabbar.html">QTabBar</a>*tb, <a href="qtab.html">QTab</a>*t, boolselected)</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">void<a name="9ba04b"></a>QWindowsStyle::drawWinShades(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolor.html">QColor</a>&amp;c1, const<a href="qcolor.html">QColor</a>&amp;c2, const<a href="qcolor.html">QColor</a>&amp;c3, const<a href="qcolor.html">QColor</a>&amp;c4, const<a href="qbrush.html">QBrush</a>*fill) <code>[protected]</code></h3>
<p>This function draws a rectangle with two pixel line width.
It is called from <a href="qpainter.html#e5134d">qDrawWinButton</a>() and <a href="qpainter.html#2d8a65">qDrawWinPanel</a>().
<p>c1..c4 and fill are used:
<p>1 1 1 1 1 2
1 3 3 3 4 2
1 3 F F 4 2
1 3 F F 4 2
1 4 4 4 4 2
2 2 2 2 2 2.
<h3 class="fn"><a href="qsize.html">QSize</a><a name="df9efb"></a>QWindowsStyle::exclusiveIndicatorSize()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#d71caa">QStyle.</a>
<h3 class="fn">int<a name="c45324"></a>QWindowsStyle::extraPopupMenuItemWidth(boolcheckable, intmaxpmw, QMenuItem*mi, const<a href="qfontmetrics.html">QFontMetrics</a>&amp;) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#92de44">QStyle.</a>
<h3 class="fn">void<a name="f52817"></a>QWindowsStyle::getButtonShift(int&amp;x, int&amp;y) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#7c4603">QStyle.</a>
<h3 class="fn"><a href="qsize.html">QSize</a><a name="3b2ff9"></a>QWindowsStyle::indicatorSize()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#cf9356">QStyle.</a>
<h3 class="fn">int<a name="108764"></a>QWindowsStyle::maximumSliderDragDistance()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#15aa83">QStyle.</a>
<h3 class="fn">void<a name="e23526"></a>QWindowsStyle::polishPopupMenu(<a href="qpopupmenu.html">QPopupMenu</a>*p) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#763b69">QStyle.</a>
<h3 class="fn">int<a name="2688d6"></a>QWindowsStyle::popupMenuItemHeight(bool, QMenuItem*mi, const<a href="qfontmetrics.html">QFontMetrics</a>&amp;fm) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#cf0842">QStyle.</a>
<h3 class="fn">void<a name="4a78cc"></a>QWindowsStyle::scrollBarMetrics(const<a href="qscrollbar.html">QScrollBar</a>*sb, int&amp;sliderMin, int&amp;sliderMax, int&amp;sliderLength, int&amp;buttonDim) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#b1809e">QStyle.</a>
<h3 class="fn">int<a name="e9d6a8"></a>QWindowsStyle::sliderLength()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#4f5f44">QStyle.</a>
<h3 class="fn">int<a name="734853"></a>QWindowsStyle::splitterWidth()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qstyle.html#e7d3e3">QStyle.</a>
<h3 class="fn">void<a name="a6e32e"></a>QWindowsStyle::tabbarMetrics(const<a href="qtabbar.html">QTabBar</a>*t, int&amp;hframe, int&amp;vframe, int&amp;overlap)</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.2"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright &copy; 1995-2001
<a href="http://www.trolltech.com">Trolltech</a>, all rights reserved.<p><address><hr><div align="center">
<table width="100%" cellspacing="0" border="0"><tr>
<td>Copyright  2001 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.2</div>
</table></div></address></body></html>