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 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459
|
<!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 - QStyle 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>QStyle Class Reference</h1><br clear="all">
<p>
Encapsulates common Look and Feel of a GUI.
<a href="#details">More...</a>
<p>
<code>#include <<a href="qstyle-h.html">qstyle.h</a>></code>
<p>
Inherits <a href="qobject.html">QObject</a>.
<p>Inherited by <a href="qcommonstyle.html">QCommonStyle</a>.
<p><a href="qstyle-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn">virtual<a href="#13c7eb"><b>~QStyle</b></a>()</div>
<li><div class="fn">GUIStyle<a href="#548ab3"><b>guiStyle</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#6bd45e"><b>polish</b></a>(QWidget*)</div>
<li><div class="fn">virtualvoid<a href="#3e54cc"><b>unPolish</b></a>(QWidget*)</div>
<li><div class="fn">virtualvoid<a href="#9954ee"><b>polish</b></a>(QApplication*)</div>
<li><div class="fn">virtualvoid<a href="#9c16ea"><b>unPolish</b></a>(QApplication*)</div>
<li><div class="fn">virtualvoid<a href="#07b10b"><b>polish</b></a>(QPalette&)</div>
<li><div class="fn">virtualQRect<a href="#237ff3"><b>itemRect</b></a>(QPainter*p, intx, inty, intw, inth, intflags, boolenabled, constQPixmap*pixmap, constQString&text, intlen=-1)</div>
<li><div class="fn">virtualvoid<a href="#521ea5"><b>drawItem</b></a>(QPainter*p, intx, inty, intw, inth, intflags, constQColorGroup&g, boolenabled, constQPixmap*pixmap, constQString&text, intlen=-1, constQColor*penColor=0)</div>
<li><div class="fn">virtualvoid<a href="#cf53b2"><b>drawSeparator</b></a>(QPainter*p, intx1, inty1, intx2, inty2, constQColorGroup&g, boolsunken=TRUE, intlineWidth=1, intmidLineWidth=0)</div>
<li><div class="fn">virtualvoid<a href="#f74d28"><b>drawRect</b></a>(QPainter*p, intx, inty, intw, inth, constQColor&, intlineWidth=1, constQBrush*fill=0)</div>
<li><div class="fn">virtualvoid<a href="#1d5617"><b>drawRectStrong</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&, boolsunken=FALSE, intlineWidth=1, intmidLineWidth=0, constQBrush*fill=0)</div>
<li><div class="fn">virtualvoid<a href="#20fd59"><b>drawButton</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&g, boolsunken=FALSE, constQBrush*fill=0)</div>
<li><div class="fn">virtualQRect<a href="#fb7a47"><b>buttonRect</b></a>(intx, inty, intw, inth)</div>
<li><div class="fn">virtualvoid<a href="#35bd6f"><b>drawButtonMask</b></a>(QPainter*p, intx, inty, intw, inth)</div>
<li><div class="fn">virtualvoid<a href="#77c5c0"><b>drawBevelButton</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&g, boolsunken=FALSE, constQBrush*fill=0)</div>
<li><div class="fn">QRect<a href="#f8359e"><b>bevelButtonRect</b></a>(intx, inty, intw, inth)</div>
<li><div class="fn">virtualvoid<a href="#fc3ce6"><b>drawToolButton</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&g, boolsunken=FALSE, constQBrush*fill=0)</div>
<li><div class="fn">void<a href="#efd043"><b>drawToolButton</b></a>(QToolButton*btn, QPainter*p)</div>
<li><div class="fn">QRect<a href="#957773"><b>toolButtonRect</b></a>(intx, inty, intw, inth)</div>
<li><div class="fn">virtualvoid<a href="#414a7e"><b>drawPanel</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&, boolsunken=FALSE, intlineWidth=1, constQBrush*fill=0)</div>
<li><div class="fn">virtualvoid<a href="#377284"><b>drawPopupPanel</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&, intlineWidth=2, constQBrush*fill=0)</div>
<li><div class="fn">virtualvoid<a href="#d93c44"><b>drawArrow</b></a>(QPainter*p, Qt::ArrowTypetype, booldown, intx, inty, intw, inth, constQColorGroup&g, boolenabled, constQBrush*fill=0)</div>
<li><div class="fn">virtualQSize<a href="#d71caa"><b>exclusiveIndicatorSize</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#7efc7e"><b>drawExclusiveIndicator</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&g, boolon, booldown=FALSE, boolenabled=TRUE)</div>
<li><div class="fn">virtualvoid<a href="#a0db5b"><b>drawExclusiveIndicatorMask</b></a>(QPainter*p, intx, inty, intw, inth, boolon)</div>
<li><div class="fn">virtualQSize<a href="#cf9356"><b>indicatorSize</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#6010f7"><b>drawIndicator</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&g, intstate, booldown=FALSE, boolenabled=TRUE)</div>
<li><div class="fn">virtualvoid<a href="#5f3080"><b>drawIndicatorMask</b></a>(QPainter*p, intx, inty, intw, inth, intstate)</div>
<li><div class="fn">virtualvoid<a href="#2cbe51"><b>drawFocusRect</b></a>(QPainter*, constQRect&, constQColorGroup&, constQColor*bg=0, bool=FALSE)</div>
<li><div class="fn">virtualvoid<a href="#42f8ae"><b>drawComboButton</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&g, boolsunken=FALSE, booleditable=FALSE, boolenabled=TRUE, constQBrush*fill=0)</div>
<li><div class="fn">virtualQRect<a href="#71383f"><b>comboButtonRect</b></a>(intx, inty, intw, inth)</div>
<li><div class="fn">virtualQRect<a href="#6bc9bd"><b>comboButtonFocusRect</b></a>(intx, inty, intw, inth)</div>
<li><div class="fn">virtualvoid<a href="#46f535"><b>drawComboButtonMask</b></a>(QPainter*p, intx, inty, intw, inth)</div>
<li><div class="fn">virtualvoid<a href="#e6ad17"><b>drawPushButton</b></a>(QPushButton*btn, QPainter*p)</div>
<li><div class="fn">virtualvoid<a href="#1fa16e"><b>drawPushButtonLabel</b></a>(QPushButton*btn, QPainter*p)</div>
<li><div class="fn">QRect<a href="#8d1b8f"><b>pushButtonContentsRect</b></a>(QPushButton*btn)</div>
<li><div class="fn">int<a href="#dc5a1d"><b>menuButtonIndicatorWidth</b></a>(inth)</div>
<li><div class="fn">virtualvoid<a href="#7c4603"><b>getButtonShift</b></a>(int&x, int&y)</div>
<li><div class="fn">virtualint<a href="#5fd38b"><b>defaultFrameWidth</b></a>()const</div>
<li><div class="fn">virtualvoid<b>tabbarMetrics</b>(constQTabBar*, int&, int&, int&)</div>
<li><div class="fn">virtualvoid<b>drawTab</b>(QPainter*, constQTabBar*, QTab*, boolselected)</div>
<li><div class="fn">virtualvoid<b>drawTabMask</b>(QPainter*, constQTabBar*, QTab*, boolselected)</div>
<li><div class="fn">enum<a href="#ScrollControl"><b>ScrollControl</b></a>{AddLine=0x1, SubLine=0x2, AddPage=0x4, SubPage=0x8, First=0x10, Last=0x20, Slider=0x40, NoScroll=0x80}</div>
<li><div class="fn">virtualvoid<a href="#b1809e"><b>scrollBarMetrics</b></a>(constQScrollBar*, int&, int&, int&, int&)</div>
<li><div class="fn">virtualvoid<a href="#e3d23d"><b>drawScrollBarControls</b></a>(QPainter*, constQScrollBar*, intsliderStart, uintcontrols, uintactiveControl)</div>
<li><div class="fn">virtualScrollControl<a href="#2dbd74"><b>scrollBarPointOver</b></a>(constQScrollBar*, intsliderStart, constQPoint&)</div>
<li><div class="fn">virtualint<a href="#4f5f44"><b>sliderLength</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#11145c"><b>drawSlider</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&g, Orientation, booltickAbove, booltickBelow)</div>
<li><div class="fn">virtualvoid<a href="#ee7ad4"><b>drawSliderMask</b></a>(QPainter*p, intx, inty, intw, inth, Orientation, booltickAbove, booltickBelow)</div>
<li><div class="fn">virtualvoid<a href="#c3fcb9"><b>drawSliderGroove</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&g, QCOORDc, Orientation)</div>
<li><div class="fn">virtualvoid<a href="#dc005d"><b>drawSliderGrooveMask</b></a>(QPainter*p, intx, inty, intw, inth, QCOORDc, Orientation)</div>
<li><div class="fn">virtualint<a href="#15aa83"><b>maximumSliderDragDistance</b></a>()const</div>
<li><div class="fn">virtualint<a href="#e7d3e3"><b>splitterWidth</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#acbd66"><b>drawSplitter</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&g, Orientation)</div>
<li><div class="fn">virtualvoid<a href="#7df57d"><b>drawCheckMark</b></a>(QPainter*p, intx, inty, intw, inth, constQColorGroup&g, boolact, booldis)</div>
<li><div class="fn">virtualvoid<a href="#763b69"><b>polishPopupMenu</b></a>(QPopupMenu*)</div>
<li><div class="fn">virtualint<a href="#92de44"><b>extraPopupMenuItemWidth</b></a>(boolcheckable, intmaxpmw, QMenuItem*mi, constQFontMetrics&fm)</div>
<li><div class="fn">virtualint<a href="#bd9952"><b>popupSubmenuIndicatorWidth</b></a>(constQFontMetrics&fm)</div>
<li><div class="fn">virtualint<a href="#cf0842"><b>popupMenuItemHeight</b></a>(boolcheckable, QMenuItem*mi, constQFontMetrics&fm)</div>
<li><div class="fn">virtualvoid<a href="#c5672c"><b>drawPopupMenuItem</b></a>(QPainter*p, boolcheckable, intmaxpmw, inttab, QMenuItem*mi, constQPalette&pal, boolact, boolenabled, intx, inty, intw, inth)</div>
<li><div class="fn">void<b>drawMenuBarItem</b>(QPainter*p, intx, inty, intw, inth, QMenuItem*mi, QColorGroup&g, boolenabled, boolactive)</div>
<li><div class="fn">QSize<a href="#bea247"><b>scrollBarExtent</b></a>()</div>
<li><div class="fn">int<a href="#88b333"><b>buttonDefaultIndicatorWidth</b></a>()const</div>
<li><div class="fn">int<a href="#18e1db"><b>buttonMargin</b></a>()const</div>
<li><div class="fn">int<a href="#20d2c4"><b>toolBarHandleExtent</b></a>()const</div>
<li><div class="fn">inttoolBarHandleExtend()const<em>(obsolete)</em></div>
<li><div class="fn">int<a href="#edd7f1"><b>sliderThickness</b></a>()const</div>
<li><div class="fn">void<a href="#e7983d"><b>drawToolBarHandle</b></a>(QPainter*p, constQRect&r, Qt::Orientationorientation, boolhighlight, constQColorGroup&cg, booldrawBorder=FALSE)</div>
</ul>
<h2>Protected Members</h2>
<ul>
<li><div class="fn">void<a href="#384552"><b>setScrollBarExtent</b></a>(intw, inth=-1)</div>
<li><div class="fn">void<a href="#e6cd52"><b>setButtonDefaultIndicatorWidth</b></a>(intw)</div>
<li><div class="fn">void<a href="#a5130e"><b>setButtonMargin</b></a>(intw)</div>
<li><div class="fn">void<a href="#2b4706"><b>setSliderThickness</b></a>(intt)</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
Encapsulates common Look and Feel of a GUI.
<p>
While it is not possible to fully enumerate the look of graphic elements
and the feel of widgets in a GUI, a large number of elements are common
to many widgets. The QStyle class allows the look of these elements to
be modified across all widgets that use the QStyle methods. It also
provides two feel options - Motif and Windows.
<p>In previous versions of Qt, the look and feel option for widgets
was specified by a single value - the GUIStyle. Starting with
Qt 2.0, this notion has been expanded to allow the look to be
specified by virtual drawing functions.
<p>Derived classes may reimplement some or all of the drawing functions
to modify the look of all widgets which utilize those functions.
<p>Examples:
<a href="themes-main-cpp.html#QStyle">themes/main.cpp</a>
<hr><h2>Member Type Documentation</h2>
<h3 class="fn"><a name="ScrollControl">QStyle::ScrollControl</a></h3>
This enum type defines :<ul>
<li> <code>AddLine</code> - control to scroll one line down, usually an arrow button
<li> <code>SubLine</code> - control to scroll one line up, usually an arrow button
<li> <code>AddPage</code> - control to scroll one page down
<li> <code>SubPage</code> - control to scroll one page up
<li> <code>First</code> - control to scroll to top of the range
<li> <code>Last</code> - control to scroll to bottom of the range
<li> <code>Slider</code> - the slider control
<li> <code>NoScroll</code> - null value, indicates none of the visible controls
</ul>
<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="13c7eb"></a>QStyle::~QStyle() <code>[virtual]</code></h3>
<p>Destructs the style.
<h3 class="fn"><a href="qrect.html">QRect</a><a name="f8359e"></a>QStyle::bevelButtonRect(intx, inty, intw, inth)</h3>
<p>Returns the rectangle available for contents in a bevel
button. Usually this is the entire rectangle minus the border, but
it may also be smaller when you think about rounded buttons.
<p>See also <a href="#77c5c0">drawBevelButton</a>().
<h3 class="fn">int<a name="88b333"></a>QStyle::buttonDefaultIndicatorWidth()const</h3>
<p>Returns the width of the default-button indicator frame.
<p>In this version of the Qt library, subclasses must call
<a href="#e6cd52">setButtonDefaultIndicatorWidth</a>() to change the frame width. In a
future version of Qt, this function will become virtual.
<h3 class="fn">int<a name="18e1db"></a>QStyle::buttonMargin()const</h3>
<p>Returns the amount of whitespace between pushbutton labels and
the frame in this style.
<h3 class="fn"><a href="qrect.html">QRect</a><a name="fb7a47"></a>QStyle::buttonRect(intx, inty, intw, inth) <code>[virtual]</code></h3>
<p>Returns the rectangle available for contents in a push
button. Usually this is the entire rectangle minus the border, but
it may also be smaller when you think about rounded buttons.
<p>See also <a href="#20fd59">drawButton</a>().
<p>Reimplemented in <a href="qplatinumstyle.html#0291a2">QPlatinumStyle</a>.
<h3 class="fn"><a href="qrect.html">QRect</a><a name="6bc9bd"></a>QStyle::comboButtonFocusRect(intx, inty, intw, inth) <code>[virtual]</code></h3>
<p>Returns the rectangle used to draw the the focus rectangle in a combo box.
<p>Reimplemented in <a href="qwindowsstyle.html#8abf54">QWindowsStyle</a>, <a href="qsgistyle.html#8cb48f">QSGIStyle</a>, <a href="qmotifplusstyle.html#df2f03">QMotifPlusStyle</a>, <a href="qmotifstyle.html#60f462">QMotifStyle</a>, <a href="qplatinumstyle.html#9b35a3">QPlatinumStyle</a> and <a href="qcommonstyle.html#dd74b5">QCommonStyle</a>.
<h3 class="fn"><a href="qrect.html">QRect</a><a name="71383f"></a>QStyle::comboButtonRect(intx, inty, intw, inth) <code>[virtual]</code></h3>
<p>Returns the rectangle available for contents in a combo box
button. Usually this is the entire rectangle without the nifty menu
indicator, but it may also be smaller when you think about rounded
buttons.
<p>Reimplemented in <a href="qmotifplusstyle.html#083398">QMotifPlusStyle</a>, <a href="qwindowsstyle.html#343938">QWindowsStyle</a>, <a href="qmotifstyle.html#d63df0">QMotifStyle</a>, <a href="qsgistyle.html#1325df">QSGIStyle</a>, <a href="qplatinumstyle.html#cd3311">QPlatinumStyle</a>, <a href="qinterlacestyle.html#33258a">QInterlaceStyle</a> and <a href="qcommonstyle.html#977c0a">QCommonStyle</a>.
<h3 class="fn">int<a name="5fd38b"></a>QStyle::defaultFrameWidth()const <code>[virtual]</code></h3>
<p>The default frame width, usually 2.
<p>Reimplemented in <a href="qmotifplusstyle.html#2bed8f">QMotifPlusStyle</a>, <a href="qsgistyle.html#355aa3">QSGIStyle</a>, <a href="qcdestyle.html#1bf325">QCDEStyle</a> and <a href="qcommonstyle.html#2b293c">QCommonStyle</a>.
<h3 class="fn">void<a name="d93c44"></a>QStyle::drawArrow(<a href="qpainter.html">QPainter</a>*p, Qt::ArrowTypetype, booldown, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, boolenabled, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Draws an arrow to indicate direction. Used for example in scrollbars and spin-boxes.
<h3 class="fn">void<a name="77c5c0"></a>QStyle::drawBevelButton(<a href="qpainter.html">QPainter</a>*, int, int, int, int, const<a href="qcolorgroup.html">QColorGroup</a>&, bool=FALSE, const<a href="qbrush.html">QBrush</a>*=0) <code>[virtual]</code></h3>
<p>Draws a press-sensitive shape in the style of a bevel button.
<p>See also <a href="#f8359e">bevelButtonRect</a>().
<p>Reimplemented in <a href="qinterlacestyle.html#24558a">QInterlaceStyle</a>, <a href="qmotifstyle.html#bd0508">QMotifStyle</a>, <a href="qwindowsstyle.html#6ddbd6">QWindowsStyle</a>, <a href="qplatinumstyle.html#3ac512">QPlatinumStyle</a>, <a href="qsgistyle.html#d7f948">QSGIStyle</a> and <a href="qmotifplusstyle.html#e48ac0">QMotifPlusStyle</a>.
<h3 class="fn">void<a name="20fd59"></a>QStyle::drawButton(<a href="qpainter.html">QPainter</a>*, int, int, int, int, const<a href="qcolorgroup.html">QColorGroup</a>&, bool=FALSE, const<a href="qbrush.html">QBrush</a>*=0) <code>[virtual]</code></h3>
<p>Draws a press-sensitive shape in the style of a full featured push button
<p>See also <a href="#fb7a47">buttonRect</a>().
<p>Reimplemented in <a href="qmotifstyle.html#f7b459">QMotifStyle</a>, <a href="qwindowsstyle.html#1b2d1d">QWindowsStyle</a>, <a href="qinterlacestyle.html#684dc2">QInterlaceStyle</a>, <a href="qsgistyle.html#cd7432">QSGIStyle</a>, <a href="qmotifplusstyle.html#65ee4e">QMotifPlusStyle</a> and <a href="qplatinumstyle.html#f6b1ba">QPlatinumStyle</a>.
<h3 class="fn">void<a name="35bd6f"></a>QStyle::drawButtonMask(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth) <code>[virtual]</code></h3>
<p>Draw the mask of a pushbutton. Useful if a rounded pushbuttons needs
to be transparent because the style uses a fancy background pixmap.
<p>See also drawButtonMask().
<h3 class="fn">void<a name="7df57d"></a>QStyle::drawCheckMark(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, boolact, booldis) <code>[virtual]</code></h3>
<p>Draws a checkmark suitable for checkboxes and checkable menu items.
<p>Reimplemented in <a href="qwindowsstyle.html#00ae0e">QWindowsStyle</a>, <a href="qmotifstyle.html#46fa56">QMotifStyle</a>, <a href="qplatinumstyle.html#8d51f1">QPlatinumStyle</a> and <a href="qsgistyle.html#82fd36">QSGIStyle</a>.
<h3 class="fn">void<a name="42f8ae"></a>QStyle::drawComboButton(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, boolsunken=FALSE, booleditable=FALSE, boolenabled=TRUE, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Draws a press-sensitive shape in the style of a combo box or menu button.
<p>Reimplemented in <a href="qcommonstyle.html#a3dff7">QCommonStyle</a>, <a href="qsgistyle.html#5b1f90">QSGIStyle</a>, <a href="qmotifstyle.html#ef6042">QMotifStyle</a>, <a href="qplatinumstyle.html#ce3dff">QPlatinumStyle</a>, <a href="qmotifplusstyle.html#dd3a44">QMotifPlusStyle</a>, <a href="qinterlacestyle.html#c77fe3">QInterlaceStyle</a> and <a href="qwindowsstyle.html#437825">QWindowsStyle</a>.
<h3 class="fn">void<a name="46f535"></a>QStyle::drawComboButtonMask(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth) <code>[virtual]</code></h3>
<p>Draw the mask of a combo box button. Useful if a rounded buttons
needs to be transparent because the style uses a fancy background
pixmap.
<p>Reimplemented in <a href="qcommonstyle.html#c837fd">QCommonStyle</a>.
<h3 class="fn">void<a name="7efc7e"></a>QStyle::drawExclusiveIndicator(<a href="qpainter.html">QPainter</a>*, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&, boolon, booldown=FALSE, boolenabled=TRUE) <code>[virtual]</code></h3>
<p>Draws a mark indicating the state of an exclusive choice.
<p>Reimplemented in <a href="qplatinumstyle.html#8b81df">QPlatinumStyle</a>, <a href="qmotifstyle.html#3cdd16">QMotifStyle</a>, <a href="qinterlacestyle.html#f5e6d0">QInterlaceStyle</a>, <a href="qmotifplusstyle.html#f4c010">QMotifPlusStyle</a>, <a href="qsgistyle.html#25b878">QSGIStyle</a>, <a href="qcdestyle.html#2b9f13">QCDEStyle</a> and <a href="qwindowsstyle.html#ee6744">QWindowsStyle</a>.
<h3 class="fn">void<a name="a0db5b"></a>QStyle::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 in <a href="qsgistyle.html#b7a62f">QSGIStyle</a>, <a href="qwindowsstyle.html#fe5aaa">QWindowsStyle</a>, <a href="qinterlacestyle.html#f4f3c8">QInterlaceStyle</a> and <a href="qmotifstyle.html#accf58">QMotifStyle</a>.
<h3 class="fn">void<a name="2cbe51"></a>QStyle::drawFocusRect(<a href="qpainter.html">QPainter</a>*p, const<a href="qrect.html">QRect</a>&r, const<a href="qcolorgroup.html">QColorGroup</a>&g, const<a href="qcolor.html">QColor</a>*=0, boolatBorder=FALSE) <code>[virtual]</code></h3>
<p>Draws a mark indicating keyboard focus is on <em>r. atBorder</em>
indicates whether the focus rectangle is at the border of an item
(for example an item in a listbox). Certain styles (Motif style as
the most prominent example) might have to shrink the rectangle a bit
in that case to ensure that the focus rectangle is visible at all.
<p>Reimplemented in <a href="qwindowsstyle.html#8cfd33">QWindowsStyle</a>, <a href="qinterlacestyle.html#5f34c7">QInterlaceStyle</a> and <a href="qmotifstyle.html#4ad9ac">QMotifStyle</a>.
<h3 class="fn">void<a name="6010f7"></a>QStyle::drawIndicator(<a href="qpainter.html">QPainter</a>*, int, int, int, int, const<a href="qcolorgroup.html">QColorGroup</a>&, intstate, bool=FALSE, bool=TRUE) <code>[virtual]</code></h3>
<p>Draws a mark indicating the state of a choice.
<p>Reimplemented in <a href="qsgistyle.html#0322ed">QSGIStyle</a>, <a href="qinterlacestyle.html#427cca">QInterlaceStyle</a>, <a href="qmotifplusstyle.html#4f9382">QMotifPlusStyle</a>, <a href="qwindowsstyle.html#49ebf7">QWindowsStyle</a>, <a href="qcdestyle.html#ae908d">QCDEStyle</a>, <a href="qmotifstyle.html#5b78ba">QMotifStyle</a> and <a href="qplatinumstyle.html#ecd304">QPlatinumStyle</a>.
<h3 class="fn">void<a name="5f3080"></a>QStyle::drawIndicatorMask(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, int) <code>[virtual]</code></h3>
<p>Draws the mask of a mark indicating the state of a choice.
<p>Reimplemented in <a href="qplatinumstyle.html#93c9cf">QPlatinumStyle</a>, <a href="qsgistyle.html#c4ed6f">QSGIStyle</a> and <a href="qinterlacestyle.html#15d628">QInterlaceStyle</a>.
<h3 class="fn">void<a name="521ea5"></a>QStyle::drawItem(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, intflags, const<a href="qcolorgroup.html">QColorGroup</a>&g, boolenabled, const<a href="qpixmap.html">QPixmap</a>*pixmap, const<a href="qstring.html">QString</a>&text, intlen=-1, const<a href="qcolor.html">QColor</a>*penColor=0) <code>[virtual]</code></h3>
<p>Draw text or a pixmap in an area.
<h3 class="fn">void<a name="414a7e"></a>QStyle::drawPanel(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, boolsunken=FALSE, intlineWidth=1, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Draws a panel to separate parts of the visual interface.
<p>Reimplemented in <a href="qmotifplusstyle.html#79acb9">QMotifPlusStyle</a>, <a href="qsgistyle.html#d1d52e">QSGIStyle</a>, <a href="qinterlacestyle.html#ddfeeb">QInterlaceStyle</a> and <a href="qwindowsstyle.html#c0d513">QWindowsStyle</a>.
<h3 class="fn">void<a name="c5672c"></a>QStyle::drawPopupMenuItem(<a href="qpainter.html">QPainter</a>*p, boolcheckable, intmaxpmw, inttab, QMenuItem*mi, const<a href="qpalette.html">QPalette</a>&pal, boolact, boolenabled, intx, inty, intw, inth) <code>[virtual]</code></h3>
<p>Draws the menu item <em>mi</em> using the painter <em>p.</em> The painter is
preset to the right font. <em>maxpmw</em> is the
maximum width of all iconsets within a check column. <em>tab</em>
specifies the minimum number of pixels necessary to draw all labels
of the menu without their accelerators (which are separated by a tab
character in the label text). <em>pal</em> is the palette, <em>act</em> and <em>enabled</em> define whether the item is active (i.e. highlighted) or
enabled, respectively. Finally, <em>x, y, w</em> and <em>h</em> determine
the geometry of the entire item.
<p>Note that <em>mi</em> can be 0 in the case of multicolumn popup menus. In that case,
drawPopupMenuItem() simply draws the appropriate item background.
<p>Reimplemented in <a href="qsgistyle.html#883ae2">QSGIStyle</a>, <a href="qwindowsstyle.html#aa32e9">QWindowsStyle</a>, <a href="qplatinumstyle.html#f7d43a">QPlatinumStyle</a>, <a href="qmotifstyle.html#dd9548">QMotifStyle</a> and <a href="qmotifplusstyle.html#97a234">QMotifPlusStyle</a>.
<h3 class="fn">void<a name="377284"></a>QStyle::drawPopupPanel(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&cg, intlineWidth=2, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Draws a panel suitable as frame for popup windows.
<p>Reimplemented in <a href="qwindowsstyle.html#50e777">QWindowsStyle</a>, <a href="qsgistyle.html#573d64">QSGIStyle</a> and <a href="qplatinumstyle.html#25105f">QPlatinumStyle</a>.
<h3 class="fn">void<a name="e6ad17"></a>QStyle::drawPushButton(<a href="qpushbutton.html">QPushButton</a>*, <a href="qpainter.html">QPainter</a>*) <code>[virtual]</code></h3>
<p>Draws a pushbutton. This function will normally call <a href="#20fd59">drawButton</a>()
with arguments according to the current state of the pushbutton.
<p>See also <a href="#1fa16e">drawPushButtonLabel</a>() and <a href="qpushbutton.html#aaf8ea">QPushButton::drawButton</a>().
<p>Reimplemented in <a href="qwindowsstyle.html#e99801">QWindowsStyle</a>, <a href="qplatinumstyle.html#157b6b">QPlatinumStyle</a>, <a href="qmotifplusstyle.html#85d4f6">QMotifPlusStyle</a>, <a href="qsgistyle.html#56a70a">QSGIStyle</a>, <a href="qinterlacestyle.html#871b05">QInterlaceStyle</a> and <a href="qmotifstyle.html#14f77c">QMotifStyle</a>.
<h3 class="fn">void<a name="1fa16e"></a>QStyle::drawPushButtonLabel(<a href="qpushbutton.html">QPushButton</a>*, <a href="qpainter.html">QPainter</a>*) <code>[virtual]</code></h3>
<p>Draws the label of a pushbutton. This function will normally call
<a href="#521ea5">drawItem</a>() with arguments according to the current state of the
pushbutton.
<p>In reimplementations of this function, you will find
<a href="#8d1b8f">pushButtonContentsRect</a>() useful.
<p>See also <a href="#e6ad17">drawPushButton</a>() and <a href="qpushbutton.html#50dbbe">QPushButton::drawButtonLabel</a>().
<p>Reimplemented in <a href="qplatinumstyle.html#486429">QPlatinumStyle</a>, <a href="qinterlacestyle.html#3da717">QInterlaceStyle</a> and <a href="qcommonstyle.html#a9befe">QCommonStyle</a>.
<h3 class="fn">void<a name="f74d28"></a>QStyle::drawRect(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolor.html">QColor</a>&c, intlineWidth=1, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Draws a simple rectangle to separate parts of the visual interface.
<h3 class="fn">void<a name="1d5617"></a>QStyle::drawRectStrong(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, boolsunken=FALSE, intlineWidth=1, intmidLineWidth=0, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Draws an emphasized rectangle to strongly separate parts of the visual interface.
<h3 class="fn">void<a name="e3d23d"></a>QStyle::drawScrollBarControls(<a href="qpainter.html">QPainter</a>*, const<a href="qscrollbar.html">QScrollBar</a>*, intsliderStart, uintcontrols, uintactiveControl) <code>[virtual]</code></h3>
<p>Draws the given scrollbar. Used internally by QScrollbar.
<p>The controls are either ADD_LINE, SUB_LINE, ADD_PAGE, SUB_PAGE,
FIRST, LAST, SLIDER or NONE
<p>Controls is a combination of these, activeControl is the control
currently pressed down.
<p>Reimplemented in <a href="qinterlacestyle.html#629ecc">QInterlaceStyle</a>, <a href="qmotifplusstyle.html#a639c1">QMotifPlusStyle</a>, <a href="qmotifstyle.html#a64e97">QMotifStyle</a>, <a href="qsgistyle.html#961016">QSGIStyle</a>, <a href="qplatinumstyle.html#eaa05a">QPlatinumStyle</a> and <a href="qwindowsstyle.html#671aef">QWindowsStyle</a>.
<h3 class="fn">void<a name="cf53b2"></a>QStyle::drawSeparator(<a href="qpainter.html">QPainter</a>*p, intx1, inty1, intx2, inty2, const<a href="qcolorgroup.html">QColorGroup</a>&g, boolsunken=TRUE, intlineWidth=1, intmidLineWidth=0) <code>[virtual]</code></h3>
<p>Draws a line to separate parts of the visual interface.
<p>Reimplemented in <a href="qsgistyle.html#28a824">QSGIStyle</a>.
<h3 class="fn">void<a name="11145c"></a>QStyle::drawSlider(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, <a href="qt.html#Orientation">Orientation</a>, booltickAbove, booltickBelow) <code>[virtual]</code></h3>
<p>Draws a slider.
<p>Reimplemented in <a href="qwindowsstyle.html#79d326">QWindowsStyle</a>, <a href="qsgistyle.html#bb3ec7">QSGIStyle</a>, <a href="qmotifplusstyle.html#454011">QMotifPlusStyle</a>, <a href="qmotifstyle.html#f452a7">QMotifStyle</a>, <a href="qinterlacestyle.html#1458f2">QInterlaceStyle</a> and <a href="qplatinumstyle.html#59e413">QPlatinumStyle</a>.
<h3 class="fn">void<a name="c3fcb9"></a>QStyle::drawSliderGroove(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, QCOORDc, <a href="qt.html#Orientation">Orientation</a>) <code>[virtual]</code></h3>
<p>Draws a slider groove.
<p>Reimplemented in <a href="qsgistyle.html#cfc4ba">QSGIStyle</a>, <a href="qmotifstyle.html#1326cb">QMotifStyle</a>, <a href="qwindowsstyle.html#9884f4">QWindowsStyle</a>, <a href="qmotifplusstyle.html#1051b2">QMotifPlusStyle</a>, <a href="qinterlacestyle.html#9bad38">QInterlaceStyle</a> and <a href="qplatinumstyle.html#da9eba">QPlatinumStyle</a>.
<h3 class="fn">void<a name="dc005d"></a>QStyle::drawSliderGrooveMask(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, QCOORDc, <a href="qt.html#Orientation">Orientation</a>) <code>[virtual]</code></h3>
<p>Draws the mask of a slider groove.
<p>Reimplemented in <a href="qcommonstyle.html#f802ae">QCommonStyle</a>, <a href="qsgistyle.html#bad987">QSGIStyle</a> and <a href="qinterlacestyle.html#86465c">QInterlaceStyle</a>.
<h3 class="fn">void<a name="ee7ad4"></a>QStyle::drawSliderMask(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, <a href="qt.html#Orientation">Orientation</a>, bool, bool) <code>[virtual]</code></h3>
<p>Draws the mask of a slider.
<p>Reimplemented in <a href="qcommonstyle.html#bc73f0">QCommonStyle</a>, <a href="qinterlacestyle.html#a24424">QInterlaceStyle</a>, <a href="qsgistyle.html#29d4b1">QSGIStyle</a>, <a href="qwindowsstyle.html#6ff546">QWindowsStyle</a> and <a href="qplatinumstyle.html#8d7531">QPlatinumStyle</a>.
<h3 class="fn">void<a name="acbd66"></a>QStyle::drawSplitter(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, <a href="qt.html#Orientation">Orientation</a>orient) <code>[virtual]</code></h3>
<p>Draws a splitter handle in the rectangle described by <em>x, y, w, h</em> using painter <em>p</em> and color group <em>g.</em> The orientation
is <em>orient.</em>
<p>See also <a href="#e7d3e3">splitterWidth</a>().
<p>Reimplemented in <a href="qinterlacestyle.html#653dda">QInterlaceStyle</a>, <a href="qwindowsstyle.html#6d7c47">QWindowsStyle</a>, <a href="qsgistyle.html#2a08db">QSGIStyle</a> and <a href="qmotifstyle.html#f915c3">QMotifStyle</a>.
<h3 class="fn">void<a name="e7983d"></a>QStyle::drawToolBarHandle(<a href="qpainter.html">QPainter</a>*p, const<a href="qrect.html">QRect</a>&r, <a href="qt.html#Orientation">Qt::Orientation</a>orientation, boolhighlight, const<a href="qcolorgroup.html">QColorGroup</a>&cg, booldrawBorder=FALSE)</h3>
<p>Draws the handle for the toolbar using the painter <em>p</em> with the toolbar coordinates
<em>r. orientation</em> gives the orientation of the toolbar, and the handle is drawn
<em>highlighted</em> if <em>highlight</em> is TRUE, else not. <em>cg</em> is the <a href="qcolorgroup.html">QColorGroup</a> of the toolbar and
if <em>drawBorder</em> is TRUE a border around the handle may be drawn.
<p>WARNING: Because of binary compatibility this method is NOT virtual, so reimplementing
it in Qt 2.x doesn't make sense. In the next major release this method will become virtual!.
<h3 class="fn">void<a name="fc3ce6"></a>QStyle::drawToolButton(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, const<a href="qcolorgroup.html">QColorGroup</a>&g, boolsunken=FALSE, const<a href="qbrush.html">QBrush</a>*fill=0) <code>[virtual]</code></h3>
<p>Draws a press-sensitive shape in the style of a toolbar button
<p>The default implementation calls <a href="#77c5c0">drawBevelButton</a>()
<p>See also <a href="#77c5c0">drawBevelButton</a>().
<h3 class="fn">void<a name="efd043"></a>QStyle::drawToolButton(<a href="qtoolbutton.html">QToolButton</a>*, <a href="qpainter.html">QPainter</a>*)</h3>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
<p>Draws a toolbutton. This function will normally call <a href="#fc3ce6">drawToolButton</a>()
with arguments according to the current state of the toolbutton.
<p>See also <a href="qtoolbutton.html#ac94fd">QToolButton::drawButton</a>().
<h3 class="fn"><a href="qsize.html">QSize</a><a name="d71caa"></a>QStyle::exclusiveIndicatorSize()const <code>[virtual]</code></h3>
<p>Returns the size of the mark used to indicate exclusive choice.
<p>Reimplemented in <a href="qinterlacestyle.html#6ddb9a">QInterlaceStyle</a>, <a href="qplatinumstyle.html#311a26">QPlatinumStyle</a>, <a href="qmotifstyle.html#802388">QMotifStyle</a>, <a href="qsgistyle.html#21cc43">QSGIStyle</a>, <a href="qmotifplusstyle.html#2bd898">QMotifPlusStyle</a> and <a href="qwindowsstyle.html#df9efb">QWindowsStyle</a>.
<h3 class="fn">int<a name="92de44"></a>QStyle::extraPopupMenuItemWidth(boolcheckable, intmaxpmw, QMenuItem*mi, const<a href="qfontmetrics.html">QFontMetrics</a>&fm) <code>[virtual]</code></h3>
<p>Returns the extra width of a menu item <em>mi,</em> that means all extra
pixels besides the space the menu item text requires. <em>checkable</em>
defines, whether the menu has a check column. <em>maxpmw</em> is the
maximum width of all iconsets within a check column and <em>fm</em>
defines the font metrics used to draw the label. This is
particularly useful to calculate a suitable size for a submenu
indicator or the column separation, including the tab column used to
indicate item accelerators.
<p>Reimplemented in <a href="qplatinumstyle.html#a33d3d">QPlatinumStyle</a>, <a href="qmotifstyle.html#181253">QMotifStyle</a> and <a href="qwindowsstyle.html#c45324">QWindowsStyle</a>.
<h3 class="fn">void<a name="7c4603"></a>QStyle::getButtonShift(int&x, int&y) <code>[virtual]</code></h3>
<p>Some GUI styles shift the contents of a button when the button is down.
The default implementation returns 0 for both x and y.
<p>Reimplemented in <a href="qwindowsstyle.html#f52817">QWindowsStyle</a>, <a href="qplatinumstyle.html#c6734d">QPlatinumStyle</a>, <a href="qcommonstyle.html#5bff1e">QCommonStyle</a> and <a href="qmotifplusstyle.html#3fed38">QMotifPlusStyle</a>.
<h3 class="fn">GUIStyle<a name="548ab3"></a>QStyle::guiStyle()const</h3>
<p>Returns an indicator to the additional "feel" component of a
style. Current supported values are Qt::WindowsStyle and Qt::MotifStyle.
<h3 class="fn"><a href="qsize.html">QSize</a><a name="cf9356"></a>QStyle::indicatorSize()const <code>[virtual]</code></h3>
<p>Returns the size of the mark used to indicate choice.
<p>Reimplemented in <a href="qwindowsstyle.html#3b2ff9">QWindowsStyle</a>, <a href="qmotifstyle.html#a8c659">QMotifStyle</a>, <a href="qinterlacestyle.html#bb5f6f">QInterlaceStyle</a>, <a href="qplatinumstyle.html#267616">QPlatinumStyle</a>, <a href="qmotifplusstyle.html#9c0a4b">QMotifPlusStyle</a> and <a href="qsgistyle.html#79e872">QSGIStyle</a>.
<h3 class="fn"><a href="qrect.html">QRect</a><a name="237ff3"></a>QStyle::itemRect(<a href="qpainter.html">QPainter</a>*p, intx, inty, intw, inth, intflags, boolenabled, const<a href="qpixmap.html">QPixmap</a>*pixmap, const<a href="qstring.html">QString</a>&text, intlen=-1) <code>[virtual]</code></h3>
<p>Returns the appropriate area within a rectangle in which to
draw text or a pixmap.
<h3 class="fn">int<a name="15aa83"></a>QStyle::maximumSliderDragDistance()const <code>[virtual]</code></h3>
<p>Some feels require the scrollbar or other sliders to jump back to
the original position when the mouse pointer is too far away while
dragging.
<p>This behavior can be customized with this function. The default is -1
(no jump back) while Windows requires 20 (weird jump back).
<p>Reimplemented in <a href="qwindowsstyle.html#108764">QWindowsStyle</a>, <a href="qplatinumstyle.html#25d830">QPlatinumStyle</a> and <a href="qcommonstyle.html#a09106">QCommonStyle</a>.
<h3 class="fn">int<a name="dc5a1d"></a>QStyle::menuButtonIndicatorWidth(inth)</h3>
<p>Returns the width of the menu button indicator for a given button
height <em>h.</em>
<h3 class="fn">void<a name="9954ee"></a>QStyle::polish(<a href="qapplication.html">QApplication</a>*) <code>[virtual]</code></h3>
<p>Late initialization of the <a href="qapplication.html">QApplication</a> object.
<p>See also <a href="#3e54cc">unPolish</a>(<a href="qapplication.html">QApplication</a>*).
<h3 class="fn">void<a name="07b10b"></a>QStyle::polish(<a href="qpalette.html">QPalette</a>&) <code>[virtual]</code></h3>
<p>The style may have certain requirements for color palettes. In this
function it has the chance to change the palette according to these
requirements.
<p>See also <a href="qpalette.html">QPalette</a> and <a href="qapplication.html#63c60d">QApplication::setPalette</a>().
<h3 class="fn">void<a name="6bd45e"></a>QStyle::polish(<a href="qwidget.html">QWidget</a>*) <code>[virtual]</code></h3>
<p>Initializes the appearance of a widget.
<p>This function is called for every widget, after it has been fully
created just <em>before</em> it is shown the very first time.
<p>Reasonable actions in this function might be to set the
<a href="qwidget.html#fb9fc2"></a> of the widget
and the background pixmap, for example. Unreasonable use
would be setting the geometry!
<p>The <a href="qobject.html#beb5d8">QWidget::inherits</a>() function may provide enough information to
allow class-specific customizations. But be careful not to hard-code
things too much, as new QStyle sub-classes will be expected to work
reasonably with all current <em>and future</em> widgets.
<p>See also <a href="#3e54cc">unPolish</a>(<a href="qwidget.html">QWidget</a>*).
<p>Reimplemented in <a href="qmotifplusstyle.html#4d068e">QMotifPlusStyle</a>, <a href="qsgistyle.html#572c78">QSGIStyle</a>, <a href="qinterlacestyle.html#91e5e6">QInterlaceStyle</a> and <a href="qmotifstyle.html#205f05">QMotifStyle</a>.
<h3 class="fn">void<a name="763b69"></a>QStyle::polishPopupMenu(<a href="qpopupmenu.html">QPopupMenu</a>*p) <code>[virtual]</code></h3>
<p>Polishes the popup menu <em>p</em> according to the GUI style. This is usually means
setting the mouse tracking ( <a href="qwidget.html#36406c">QPopupMenu::setMouseTracking</a>() ) and whether
the menu is checkable by default ( <a href="qpopupmenu.html#672d77">QPopupMenu::setCheckable</a>() ).
<p>Reimplemented in <a href="qmotifplusstyle.html#6fd10b">QMotifPlusStyle</a>, <a href="qmotifstyle.html#4265a0">QMotifStyle</a>, <a href="qplatinumstyle.html#345d46">QPlatinumStyle</a> and <a href="qwindowsstyle.html#e23526">QWindowsStyle</a>.
<h3 class="fn">int<a name="cf0842"></a>QStyle::popupMenuItemHeight(boolcheckable, QMenuItem*mi, const<a href="qfontmetrics.html">QFontMetrics</a>&fm) <code>[virtual]</code></h3>
<p>Returns the height of the menu item <em>mi. checkable</em> defines,
whether the menu has a check column, <em>fm</em> defines the font metrics
used to draw the label.
<p>Reimplemented in <a href="qplatinumstyle.html#2193d4">QPlatinumStyle</a>, <a href="qmotifstyle.html#232ef1">QMotifStyle</a>, <a href="qwindowsstyle.html#2688d6">QWindowsStyle</a> and <a href="qsgistyle.html#24c549">QSGIStyle</a>.
<h3 class="fn">int<a name="bd9952"></a>QStyle::popupSubmenuIndicatorWidth(const<a href="qfontmetrics.html">QFontMetrics</a>&fm) <code>[virtual]</code></h3>
<p>Returns the width of the arrow indicating popup submenus.
<em>fm</em> defines the font metrics used to draw the popup menu.
<p>Reimplemented in <a href="qcommonstyle.html#f68484">QCommonStyle</a>.
<h3 class="fn"><a href="qrect.html">QRect</a><a name="8d1b8f"></a>QStyle::pushButtonContentsRect(<a href="qpushbutton.html">QPushButton</a>*btn)</h3>
<p>Auxiliary function to return the contents rectangle of a push button
<em>btn.</em> The contents rectangle is the space available for the button
label.
<p>The result depends on the look (<a href="#fb7a47">buttonRect</a>() ), whether the
button needs space for a default indicator
(<a href="#88b333">buttonDefaultIndicatorWidth</a>()) and whether it is pushed down and
needs to be shifted (<a href="#7c4603">getButtonShift</a>()).
<h3 class="fn"><a href="qsize.html">QSize</a><a name="bea247"></a>QStyle::scrollBarExtent()</h3>
<p>Returns a <a href="qsize.html">QSize</a> containing the width of a vertical scrollbar and
the height of a horizontal scrollbar in this style.
<p>In this version of the Qt library, subclasses must call
<a href="#384552">setScrollBarExtent</a>() to change the extent of scrollbars. In a future
version of Qt, this function will become virtual.
<h3 class="fn">void<a name="b1809e"></a>QStyle::scrollBarMetrics(const<a href="qscrollbar.html">QScrollBar</a>*, int&, int&, int&, int&) <code>[virtual]</code></h3>
<p>Returns the metrics of the passed scrollbar: sliderMin, sliderMax,
sliderLength and buttonDim.
<p>Reimplemented in <a href="qmotifplusstyle.html#7b8d75">QMotifPlusStyle</a>, <a href="qsgistyle.html#f6af3f">QSGIStyle</a>, <a href="qplatinumstyle.html#0dd233">QPlatinumStyle</a>, <a href="qwindowsstyle.html#4a78cc">QWindowsStyle</a>, <a href="qinterlacestyle.html#b1cb7b">QInterlaceStyle</a> and <a href="qmotifstyle.html#f36cca">QMotifStyle</a>.
<h3 class="fn">QStyle::ScrollControl<a name="2dbd74"></a>QStyle::scrollBarPointOver(constQScrollBar*sb, intsliderStart, constQPoint&p)</h3>
<p>Returns the scrollbar control under the passed point.
<h3 class="fn">void<a name="e6cd52"></a>QStyle::setButtonDefaultIndicatorWidth(intw) <code>[protected]</code></h3>
<p>Sets the width of the default-button indicator frame.
<p>In a future version of the Qt library, this function will be removed
and subclasses will be able to reimplement <a href="#88b333">buttonDefaultIndicatorWidth</a>().
<h3 class="fn">void<a name="a5130e"></a>QStyle::setButtonMargin(intm) <code>[protected]</code></h3>
<p>Sets the button margin.
<p>In a future version of the Qt library, this function may be removed
and subclasses will be able to reimplement <a href="#18e1db">buttonMargin</a>().
<h3 class="fn">void<a name="384552"></a>QStyle::setScrollBarExtent(intwidth, intheight=-1) <code>[protected]</code></h3>
<p>Sets the width of a vertical scrollbar in this style to <em>width</em> and
the height of a horizontal scrollbar to <em>height.</em> If <em>height</em> is
negative, <em>width</em> will be used for both extents. By default both
extents are 16 pixels.
<p>In a future version of the Qt library, this function will be removed
and subclasses will be able to reimplement <a href="#bea247">scrollBarExtent</a>().
<h3 class="fn">void<a name="2b4706"></a>QStyle::setSliderThickness(intt) <code>[protected]</code></h3>
<p>Sets the slider thickness.
<p>In a future version of the Qt library, this function may be removed
and subclasses will be able to reimplement <a href="#edd7f1">sliderThickness</a>().
<h3 class="fn">int<a name="4f5f44"></a>QStyle::sliderLength()const <code>[virtual]</code></h3>
<p>The length of a slider.
<p>Reimplemented in <a href="qwindowsstyle.html#e9d6a8">QWindowsStyle</a>, <a href="qplatinumstyle.html#ee2d56">QPlatinumStyle</a> and <a href="qmotifstyle.html#718777">QMotifStyle</a>.
<h3 class="fn">int<a name="edd7f1"></a>QStyle::sliderThickness()const</h3>
<p>Returns the thickness of a slider in this style. The thickness is
dimension perpendicular to the slider motion (e.g. the height for
a horizontal slider).
<h3 class="fn">int<a name="e7d3e3"></a>QStyle::splitterWidth()const <code>[virtual]</code></h3>
<p>Returns the width of a splitter handle.
<p>See also <a href="#acbd66">drawSplitter</a>().
<p>Reimplemented in <a href="qmotifstyle.html#4cda25">QMotifStyle</a>, <a href="qinterlacestyle.html#972930">QInterlaceStyle</a>, <a href="qwindowsstyle.html#734853">QWindowsStyle</a> and <a href="qsgistyle.html#04da27">QSGIStyle</a>.
<h3 class="fn">int<a name="3ea874"></a>QStyle::toolBarHandleExtend()const</h3>
<p><b>This function is obsolete.</b> It is provided to keep old source working, and will probably be removed in a future version of Qt. We strongly advise against using it in new code.<p>
<h3 class="fn">int<a name="20d2c4"></a>QStyle::toolBarHandleExtent()const</h3>
<p>Returns the extent (height or width depending on the orientation) which a toolbar
handle has.
<p>WARNING: Because of binary compatibility this method is NOT virtual, so reimplementing
it in Qt 2.x doesn't make sense. In the next major release this method will become virtual!.
<h3 class="fn"><a href="qrect.html">QRect</a><a name="957773"></a>QStyle::toolButtonRect(intx, inty, intw, inth)</h3>
<p>Returns the rectangle available for contents in a tool
button. Usually this is the entire rectangle minus the border, but
it may also be smaller when you think about rounded buttons.
<p>The default implementation returns <a href="#f8359e">bevelButtonRect</a>()
<p>See also <a href="#fc3ce6">drawToolButton</a>().
<h3 class="fn">void<a name="9c16ea"></a>QStyle::unPolish(<a href="qapplication.html">QApplication</a>*) <code>[virtual]</code></h3>
<p>Redo the application polish
<p>See also <a href="#07b10b">polish</a>(<a href="qapplication.html">QApplication</a>*).
<h3 class="fn">void<a name="3e54cc"></a>QStyle::unPolish(<a href="qwidget.html">QWidget</a>*) <code>[virtual]</code></h3>
<p>Undoes the initialization of a widget's appearance.
<p>This function is the counterpart to polish. Is is called for every
polished widget when the style is dynamically changed. The former
style has to un-polish its settings before the new style can polish
them again.
<p>See also <a href="#07b10b">polish</a>(<a href="qwidget.html">QWidget</a>*).
<p>Reimplemented in <a href="qmotifplusstyle.html#f3e9cf">QMotifPlusStyle</a>, <a href="qinterlacestyle.html#30dd20">QInterlaceStyle</a> and <a href="qsgistyle.html#f23090">QSGIStyle</a>.
<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 © 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>
|