<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US"> <head> <title>kdefx: KStyle Class Reference (kdefx)</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org" r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org" r (n 0 s 0 v 0 l 0))' /> <meta name="trademark" content="KDE e.V." /> <meta name="description" content="K Desktop Environment Homepage, KDE.org" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="all" /> <link rel="shortcut icon" href="../../favicon.ico" /> <link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" /> </head> <body> <div id="nav_header_top" align="right"> <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a> <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a> <span class="doNotDisplay">::</span> <div id="nav_header_title" align="left">KDE API Reference</div> </div> <div id="nav_header_bottom" align="right"> <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span> <div id="nav_header_bottom_right" style="text-align: left;"> / <a href="../..">API Reference</a> / <a href=".">kdefx</a> </div> </div> <table id="main" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" class="menuheader" height="0"></td> <td id="contentcolumn" valign="top" rowspan="2" > <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;"> <a name="content"></a> <!-- Generated by Doxygen 1.7.4 --> </div> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#related">Related Functions</a> </div> <div class="headertitle"> <div class="title">KStyle Class Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="KStyle" --><!-- doxytag: inherits="QCommonStyle" --> <p>Simplifies and extends the <a class="elRef" href="qstyle.html">QStyle</a> API to make style coding easier. <a href="classKStyle.html#details">More...</a></p> <p><code>#include <<a class="el" href="kstyle_8h_source.html">kstyle.h</a>></code></p> <div class="dynheader"> Inheritance diagram for KStyle:</div> <div class="dyncontent"> <div class="center"> <img src="classKStyle.png" usemap="#KStyle_map" alt=""/> <map id="KStyle_map" name="KStyle_map"> <area href="qcommonstyle.html" alt="QCommonStyle" shape="rect" coords="0,0,98,24"/> </map> </div></div> <p><a href="classKStyle-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#ab81588f76fa9d3ce2580580b6d8ad012">KStyleOption</a> { <a class="el" href="classKStyle.html#ab81588f76fa9d3ce2580580b6d8ad012ab3cd0f578dfb45db8b6f087c3c5dee26">Default</a> = 0x00000000, <a class="el" href="classKStyle.html#ab81588f76fa9d3ce2580580b6d8ad012ab8c579823752995cc5f2dc1d03615d4e">AllowMenuTransparency</a> = 0x00000001, <a class="el" href="classKStyle.html#ab81588f76fa9d3ce2580580b6d8ad012a8b07de6327205073161b627d1b9a4bb7">FilledFrameWorkaround</a> = 0x00000002 }</td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#a1491c11b07d6620064344e6c0f24dabc">KStyleScrollBarType</a> { <a class="el" href="classKStyle.html#a1491c11b07d6620064344e6c0f24dabcabc38616f470472cafe8760fe1cda95b9">WindowsStyleScrollBar</a> = 0x00000000, <a class="el" href="classKStyle.html#a1491c11b07d6620064344e6c0f24dabcac757b7ff183cb1dbe5df8ada1a748305">PlatinumStyleScrollBar</a> = 0x00000001, <a class="el" href="classKStyle.html#a1491c11b07d6620064344e6c0f24dabca77de4026300d0cf169dde03ea3467988">ThreeButtonScrollBar</a> = 0x00000002, <a class="el" href="classKStyle.html#a1491c11b07d6620064344e6c0f24dabcaf2794ef60c79bbaf60dd2d3b638a10e7">NextStyleScrollBar</a> = 0x00000004 }</td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#a87fa120f2cf779ed876f7b34ec8dfb3f">KStylePrimitive</a> { <br/>   <b>KPE_DockWindowHandle</b>, <b>KPE_ToolBarHandle</b>, <b>KPE_GeneralHandle</b>, <b>KPE_SliderGroove</b>, <br/>   <b>KPE_SliderHandle</b>, <b>KPE_ListViewExpander</b>, <b>KPE_ListViewBranch</b> <br/> }</td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><b>KStylePixelMetric</b> { <br/>   <b>KPM_MenuItemSeparatorHeight</b> = 0x00000001, <b>KPM_MenuItemHMargin</b> = 0x00000002, <b>KPM_MenuItemVMargin</b> = 0x00000004, <b>KPM_MenuItemHFrame</b> = 0x00000008, <br/>   <b>KPM_MenuItemVFrame</b> = 0x00000010, <b>KPM_MenuItemCheckMarkHMargin</b> = 0x00000020, <b>KPM_MenuItemArrowHMargin</b> = 0x00000040, <b>KPM_MenuItemTabSpacing</b> = 0x00000080, <br/>   <b>KPM_ListViewBranchThickness</b> = 0x00000100 <br/> }</td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef uint </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#a7481c3894356c94ac96b1532eeb29019">KStyleFlags</a></td></tr> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#a014e2422a8cc97890295dc9dde6d4418">KStyle</a> (<a class="el" href="classKStyle.html#a7481c3894356c94ac96b1532eeb29019">KStyleFlags</a> flags=KStyle::Default, <a class="el" href="classKStyle.html#a1491c11b07d6620064344e6c0f24dabc">KStyleScrollBarType</a> sbtype=KStyle::WindowsStyleScrollBar)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#a42765cdbf8b7825670e6dc37dfc7ded4">~KStyle</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#a14526a7d0d84f272b951600981ff3e67">setScrollBarType</a> (<a class="el" href="classKStyle.html#a1491c11b07d6620064344e6c0f24dabc">KStyleScrollBarType</a> sbtype)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKStyle.html#a7481c3894356c94ac96b1532eeb29019">KStyleFlags</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#ae83de72c7ad13331a22669da1d02e0bf">styleFlags</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#ac993c3f8b07178c6338953501a00e995">renderMenuBlendPixmap</a> (<a class="el" href="classKPixmap.html">KPixmap</a> &pix, const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> &cg, const <a class="elRef" href="qpopupmenu.html">QPopupMenu</a> *popup) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#aa41afb7b2a3a080009eff6d6576aa481">drawKStylePrimitive</a> (<a class="el" href="classKStyle.html#a87fa120f2cf779ed876f7b34ec8dfb3f">KStylePrimitive</a> kpe, <a class="elRef" href="qpainter.html">QPainter</a> *p, const <a class="elRef" href="qwidget.html">QWidget</a> *widget, const <a class="elRef" href="qrect.html">QRect</a> &r, const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> &cg, SFlags flags=Style_Default, const <a class="elRef" href="qstyleoption.html">QStyleOption</a> &=QStyleOption::Default) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7217f567cfb043197c2fb3d52fdd4cc9"></a><!-- doxytag: member="KStyle::kPixelMetric" ref="a7217f567cfb043197c2fb3d52fdd4cc9" args="(KStylePixelMetric kpm, const QWidget *widget=0) const " --> int </td><td class="memItemRight" valign="bottom"><b>kPixelMetric</b> (KStylePixelMetric kpm, const <a class="elRef" href="qwidget.html">QWidget</a> *widget=0) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3bf767fcfbd55899e12e1b5bb49f0726"></a><!-- doxytag: member="KStyle::polish" ref="a3bf767fcfbd55899e12e1b5bb49f0726" args="(QWidget *widget)" --> void </td><td class="memItemRight" valign="bottom"><b>polish</b> (<a class="elRef" href="qwidget.html">QWidget</a> *widget)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae879611d629fc7800f39264154a8ea11"></a><!-- doxytag: member="KStyle::unPolish" ref="ae879611d629fc7800f39264154a8ea11" args="(QWidget *widget)" --> void </td><td class="memItemRight" valign="bottom"><b>unPolish</b> (<a class="elRef" href="qwidget.html">QWidget</a> *widget)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a90d9b8e9e76e87338efe19c947c640a1"></a><!-- doxytag: member="KStyle::polishPopupMenu" ref="a90d9b8e9e76e87338efe19c947c640a1" args="(QPopupMenu *)" --> void </td><td class="memItemRight" valign="bottom"><b>polishPopupMenu</b> (<a class="elRef" href="qpopupmenu.html">QPopupMenu</a> *)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac08e08c82f0488da0f2b89ab6a1e0117"></a><!-- doxytag: member="KStyle::drawPrimitive" ref="ac08e08c82f0488da0f2b89ab6a1e0117" args="(PrimitiveElement pe, QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, const QStyleOption &=QStyleOption::Default) const " --> void </td><td class="memItemRight" valign="bottom"><b>drawPrimitive</b> (PrimitiveElement pe, <a class="elRef" href="qpainter.html">QPainter</a> *p, const <a class="elRef" href="qrect.html">QRect</a> &r, const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> &cg, SFlags flags=Style_Default, const <a class="elRef" href="qstyleoption.html">QStyleOption</a> &=QStyleOption::Default) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1d9f7f37d66de9fda375f14f4402d3f9"></a><!-- doxytag: member="KStyle::drawControl" ref="a1d9f7f37d66de9fda375f14f4402d3f9" args="(ControlElement element, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, const QStyleOption &=QStyleOption::Default) const " --> void </td><td class="memItemRight" valign="bottom"><b>drawControl</b> (ControlElement element, <a class="elRef" href="qpainter.html">QPainter</a> *p, const <a class="elRef" href="qwidget.html">QWidget</a> *widget, const <a class="elRef" href="qrect.html">QRect</a> &r, const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> &cg, SFlags flags=Style_Default, const <a class="elRef" href="qstyleoption.html">QStyleOption</a> &=QStyleOption::Default) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a950aca989efa090019c61255b8590f50"></a><!-- doxytag: member="KStyle::drawComplexControl" ref="a950aca989efa090019c61255b8590f50" args="(ComplexControl control, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, SCFlags controls=SC_All, SCFlags active=SC_None, const QStyleOption &=QStyleOption::Default) const " --> void </td><td class="memItemRight" valign="bottom"><b>drawComplexControl</b> (ComplexControl control, <a class="elRef" href="qpainter.html">QPainter</a> *p, const <a class="elRef" href="qwidget.html">QWidget</a> *widget, const <a class="elRef" href="qrect.html">QRect</a> &r, const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> &cg, SFlags flags=Style_Default, SCFlags controls=SC_All, SCFlags active=SC_None, const <a class="elRef" href="qstyleoption.html">QStyleOption</a> &=QStyleOption::Default) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a77b100ffa087058a58b63d1c0d1c399c"></a><!-- doxytag: member="KStyle::querySubControl" ref="a77b100ffa087058a58b63d1c0d1c399c" args="(ComplexControl control, const QWidget *widget, const QPoint &pos, const QStyleOption &=QStyleOption::Default) const " --> SubControl </td><td class="memItemRight" valign="bottom"><b>querySubControl</b> (ComplexControl control, const <a class="elRef" href="qwidget.html">QWidget</a> *widget, const <a class="elRef" href="qpoint.html">QPoint</a> &pos, const <a class="elRef" href="qstyleoption.html">QStyleOption</a> &=QStyleOption::Default) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1de6817d5b8efa15948622bcbe769a68"></a><!-- doxytag: member="KStyle::querySubControlMetrics" ref="a1de6817d5b8efa15948622bcbe769a68" args="(ComplexControl control, const QWidget *widget, SubControl sc, const QStyleOption &=QStyleOption::Default) const " --> <a class="elRef" href="qrect.html">QRect</a> </td><td class="memItemRight" valign="bottom"><b>querySubControlMetrics</b> (ComplexControl control, const <a class="elRef" href="qwidget.html">QWidget</a> *widget, SubControl sc, const <a class="elRef" href="qstyleoption.html">QStyleOption</a> &=QStyleOption::Default) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a979d754ee3ea8bbc381d5be5a782838e"></a><!-- doxytag: member="KStyle::pixelMetric" ref="a979d754ee3ea8bbc381d5be5a782838e" args="(PixelMetric m, const QWidget *widget=0) const " --> int </td><td class="memItemRight" valign="bottom"><b>pixelMetric</b> (PixelMetric m, const <a class="elRef" href="qwidget.html">QWidget</a> *widget=0) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ec2232885a32a8ac31789e073370764"></a><!-- doxytag: member="KStyle::subRect" ref="a2ec2232885a32a8ac31789e073370764" args="(SubRect r, const QWidget *widget) const " --> <a class="elRef" href="qrect.html">QRect</a> </td><td class="memItemRight" valign="bottom"><b>subRect</b> (SubRect r, const <a class="elRef" href="qwidget.html">QWidget</a> *widget) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6807c52bddcb87b857ff318d48957fb4"></a><!-- doxytag: member="KStyle::stylePixmap" ref="a6807c52bddcb87b857ff318d48957fb4" args="(StylePixmap stylepixmap, const QWidget *widget=0, const QStyleOption &=QStyleOption::Default) const " --> <a class="elRef" href="qpixmap.html">QPixmap</a> </td><td class="memItemRight" valign="bottom"><b>stylePixmap</b> (StylePixmap stylepixmap, const <a class="elRef" href="qwidget.html">QWidget</a> *widget=0, const <a class="elRef" href="qstyleoption.html">QStyleOption</a> &=QStyleOption::Default) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afed3244e76d098af446a52ae459a00ab"></a><!-- doxytag: member="KStyle::styleHint" ref="afed3244e76d098af446a52ae459a00ab" args="(StyleHint sh, const QWidget *w=0, const QStyleOption &opt=QStyleOption::Default, QStyleHintReturn *shr=0) const " --> int </td><td class="memItemRight" valign="bottom"><b>styleHint</b> (StyleHint sh, const <a class="elRef" href="qwidget.html">QWidget</a> *w=0, const <a class="elRef" href="qstyleoption.html">QStyleOption</a> &opt=QStyleOption::Default, QStyleHintReturn *shr=0) const </td></tr> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#a8ae2e27402def601cdc042de4f333cac">defaultStyle</a> ()</td></tr> <tr><td colspan="2"><h2><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad55c42d0296fbbe7f7e7563705058d10"></a><!-- doxytag: member="KStyle::eventFilter" ref="ad55c42d0296fbbe7f7e7563705058d10" args="(QObject *object, QEvent *event)" --> bool </td><td class="memItemRight" valign="bottom"><b>eventFilter</b> (<a class="elRef" href="qobject.html">QObject</a> *object, <a class="elRef" href="qevent.html">QEvent</a> *event)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ead3ee9027b84af164b32b46790e247"></a><!-- doxytag: member="KStyle::virtual_hook" ref="a9ead3ee9027b84af164b32b46790e247" args="(int id, void *data)" --> virtual void </td><td class="memItemRight" valign="bottom"><b>virtual_hook</b> (int id, void *data)</td></tr> <tr><td colspan="2"><h2><a name="related"></a> Related Functions</h2></td></tr> <tr><td class="ititle" colspan="2"><p>(Note that these are not member functions.) </p> </td></tr> <tr><td class="memItemLeft" align="right" valign="top">KDEFX_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#aa4ba5d36676a3ed02fb362d48a138f39">kDrawNextButton</a> (<a class="elRef" href="qpainter.html">QPainter</a> *p, const <a class="elRef" href="qrect.html">QRect</a> &r, const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> &g, bool sunken=false, const <a class="elRef" href="qbrush.html">QBrush</a> *fill=0)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">KDEFX_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#a53a6d809ac8fec3ee6b4d3ee19691835">kDrawNextButton</a> (<a class="elRef" href="qpainter.html">QPainter</a> *p, int x, int y, int w, int h, const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> &g, bool sunken=false, const <a class="elRef" href="qbrush.html">QBrush</a> *fill=0)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">KDEFX_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#a4d1ee35bef88bb3b8258861c2bcb4ef6">kDrawBeButton</a> (<a class="elRef" href="qpainter.html">QPainter</a> *p, <a class="elRef" href="qrect.html">QRect</a> &r, const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> &g, bool sunken=false, const <a class="elRef" href="qbrush.html">QBrush</a> *fill=0)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">KDEFX_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#aac8b3789693eb00e458dd94c03611f1d">kDrawBeButton</a> (<a class="elRef" href="qpainter.html">QPainter</a> *p, int x, int y, int w, int h, const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> &g, bool sunken=false, const <a class="elRef" href="qbrush.html">QBrush</a> *fill=0)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">KDEFX_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#a7134640d5ca62c4f12db16ee0440bd50">kDrawRoundButton</a> (<a class="elRef" href="qpainter.html">QPainter</a> *p, const <a class="elRef" href="qrect.html">QRect</a> &r, const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> &g, bool sunken=false)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">KDEFX_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#a295d4a0468f83cce8b0a301b7ec3317d">kDrawRoundButton</a> (<a class="elRef" href="qpainter.html">QPainter</a> *p, int x, int y, int w, int h, const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> &g, bool sunken=false)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">KDEFX_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#ac5ff5ef72f872f010c158590dee41345">kRoundMaskRegion</a> (<a class="elRef" href="qregion.html">QRegion</a> &r, int x, int y, int w, int h)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">KDEFX_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#a482971972b517e84bc457ceb32b4a9fc">kDrawRoundMask</a> (<a class="elRef" href="qpainter.html">QPainter</a> *p, int x, int y, int w, int h, bool clear=false)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">KDEFX_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#a979de5262c287eb9b0590abb8d575e69">kColorBitmaps</a> (<a class="elRef" href="qpainter.html">QPainter</a> *p, const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> &g, int x, int y, <a class="elRef" href="qbitmap.html">QBitmap</a> *lightColor=0, <a class="elRef" href="qbitmap.html">QBitmap</a> *midColor=0, <a class="elRef" href="qbitmap.html">QBitmap</a> *midlightColor=0, <a class="elRef" href="qbitmap.html">QBitmap</a> *darkColor=0, <a class="elRef" href="qbitmap.html">QBitmap</a> *blackColor=0, <a class="elRef" href="qbitmap.html">QBitmap</a> *whiteColor=0)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">KDEFX_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKStyle.html#af06ad1a153a8e23d8aab61b70d5a62e5">kColorBitmaps</a> (<a class="elRef" href="qpainter.html">QPainter</a> *p, const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> &g, int x, int y, int w, int h, bool isXBitmaps=true, const uchar *lightColor=0, const uchar *midColor=0, const uchar *midlightColor=0, const uchar *darkColor=0, const uchar *blackColor=0, const uchar *whiteColor=0)</td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>Simplifies and extends the <a class="elRef" href="qstyle.html">QStyle</a> API to make style coding easier. </p> <p>The <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a> class provides a simple internal menu transparency engine which attempts to use XRender for accelerated blending where requested, or falls back to fast internal software tinting/blending routines. It also simplifies more complex portions of the <a class="elRef" href="qstyle.html">QStyle</a> API, such as the PopupMenuItems, ScrollBars and Sliders by providing extra "primitive elements" which are simple to implement by the style writer.</p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="elRef" href="qstyle.html#QStyle">QStyle::QStyle</a> </dd> <dd> <a class="elRef" href="qcommonstyle.html#QCommonStyle">QCommonStyle::QCommonStyle</a> </dd></dl> <dl class="author"><dt><b>Author:</b></dt><dd>Karol Szwed (<a href="mailto:gallium@kde.org">gallium@kde.org</a>) </dd></dl> <dl class="version"><dt><b>Version:</b></dt><dd></dd></dl> <dl class="rcs"><dt><b>Id:</b></dt><dd><a class="el" href="kstyle_8h_source.html">kstyle.h</a> 465272 2005-09-29 09:47:40Z mueller </dd></dl> <p>Definition at line <a class="el" href="kstyle_8h_source.html#l00057">57</a> of file <a class="el" href="kstyle_8h_source.html">kstyle.h</a>.</p> </div><hr/><h2>Member Typedef Documentation</h2> <a class="anchor" id="a7481c3894356c94ac96b1532eeb29019"></a><!-- doxytag: member="KStyle::KStyleFlags" ref="a7481c3894356c94ac96b1532eeb29019" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef uint <a class="el" href="classKStyle.html#a7481c3894356c94ac96b1532eeb29019">KStyle::KStyleFlags</a></td> </tr> </table> </div> <div class="memdoc"> <p><a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a> Flags: </p> <ul> <li>Default - Default style setting, where menu transparency and the FilledFrameWorkaround are disabled.</li> </ul> <ul> <li>AllowMenuTransparency - Enable this flag to use KStyle's internal menu transparency engine.</li> </ul> <ul> <li>FilledFrameWorkaround - Enable this flag to facilitate proper repaints of QMenuBars and QToolBars when the style chooses to paint the interior of a <a class="elRef" href="qframe.html">QFrame</a>. The style primitives in question are PE_PanelMenuBar and PE_PanelDockWindow. The HighColor style uses this workaround to enable painting of gradients in menubars and toolbars. </li> </ul> <p>Definition at line <a class="el" href="kstyle_8h_source.html#l00079">79</a> of file <a class="el" href="kstyle_8h_source.html">kstyle.h</a>.</p> </div> </div> <hr/><h2>Member Enumeration Documentation</h2> <a class="anchor" id="ab81588f76fa9d3ce2580580b6d8ad012"></a><!-- doxytag: member="KStyle::KStyleOption" ref="ab81588f76fa9d3ce2580580b6d8ad012" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="classKStyle.html#ab81588f76fa9d3ce2580580b6d8ad012">KStyle::KStyleOption</a></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><em><a class="anchor" id="ab81588f76fa9d3ce2580580b6d8ad012ab3cd0f578dfb45db8b6f087c3c5dee26"></a><!-- doxytag: member="Default" ref="ab81588f76fa9d3ce2580580b6d8ad012ab3cd0f578dfb45db8b6f087c3c5dee26" args="" -->Default</em> </td><td> <p>All options disabled. </p> </td></tr> <tr><td valign="top"><em><a class="anchor" id="ab81588f76fa9d3ce2580580b6d8ad012ab8c579823752995cc5f2dc1d03615d4e"></a><!-- doxytag: member="AllowMenuTransparency" ref="ab81588f76fa9d3ce2580580b6d8ad012ab8c579823752995cc5f2dc1d03615d4e" args="" -->AllowMenuTransparency</em> </td><td> <p>Internal transparency enabled. </p> </td></tr> <tr><td valign="top"><em><a class="anchor" id="ab81588f76fa9d3ce2580580b6d8ad012a8b07de6327205073161b627d1b9a4bb7"></a><!-- doxytag: member="FilledFrameWorkaround" ref="ab81588f76fa9d3ce2580580b6d8ad012a8b07de6327205073161b627d1b9a4bb7" args="" -->FilledFrameWorkaround</em> </td><td> <p>Filled frames enabled. </p> </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="kstyle_8h_source.html#l00080">80</a> of file <a class="el" href="kstyle_8h_source.html">kstyle.h</a>.</p> </div> </div> <a class="anchor" id="a87fa120f2cf779ed876f7b34ec8dfb3f"></a><!-- doxytag: member="KStyle::KStylePrimitive" ref="a87fa120f2cf779ed876f7b34ec8dfb3f" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="classKStyle.html#a87fa120f2cf779ed876f7b34ec8dfb3f">KStyle::KStylePrimitive</a></td> </tr> </table> </div> <div class="memdoc"> <p><a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a> Primitive Elements: </p> <p>The <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a> class extends the Qt's Style API by providing certain simplifications for parts of <a class="elRef" href="qstyle.html">QStyle</a>. To do this, the KStylePrimitive elements were defined, which are very similar to Qt's PrimitiveElement.</p> <p>The first three Handle primitives simplify and extend PE_DockWindowHandle, so do not reimplement PE_DockWindowHandle if you want the <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a> handle simplifications to be operable. Similarly do not reimplement CC_Slider, SC_SliderGroove and SC_SliderHandle when using the <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a> slider primitives. <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a> automatically double-buffers slider painting when they are drawn via these <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a> primitives to avoid flicker.</p> <ul> <li>KPE_DockWindowHandle - This primitive is already implemented in <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a>, and paints a bevelled rect with the DockWindow caption text. Re-implement this primitive to perform other more fancy effects when drawing the dock window handle.</li> </ul> <ul> <li>KPE_ToolBarHandle - This primitive must be reimplemented. It currently only paints a filled rectangle as default behavior. This primitive is used to render <a class="elRef" href="qtoolbar.html">QToolBar</a> handles.</li> </ul> <ul> <li>KPE_GeneralHandle - This primitive must be reimplemented. It is used to render general handles that are not part of a <a class="elRef" href="qtoolbar.html">QToolBar</a> or <a class="elRef" href="qdockwindow.html">QDockWindow</a>, such as the applet handles used in Kicker. The default implementation paints a filled rect of arbitrary color.</li> </ul> <ul> <li>KPE_SliderGroove - This primitive must be reimplemented. It is used to paint the slider groove. The default implementation paints a filled rect of arbitrary color.</li> </ul> <ul> <li>KPE_SliderHandle - This primitive must be reimplemented. It is used to paint the slider handle. The default implementation paints a filled rect of arbitrary color.</li> </ul> <ul> <li>KPE_ListViewExpander - This primitive is already implemented in <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a>. It is used to draw the Expand/Collapse element in QListViews. To indicate the expanded state, the style flags are set to Style_Off, while Style_On implies collapsed.</li> </ul> <ul> <li>KPE_ListViewBranch - This primitive is already implemented in <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a>. It is used to draw the ListView branches where necessary. </li> </ul> <p>Definition at line <a class="el" href="kstyle_8h_source.html#l00227">227</a> of file <a class="el" href="kstyle_8h_source.html">kstyle.h</a>.</p> </div> </div> <a class="anchor" id="a1491c11b07d6620064344e6c0f24dabc"></a><!-- doxytag: member="KStyle::KStyleScrollBarType" ref="a1491c11b07d6620064344e6c0f24dabc" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="classKStyle.html#a1491c11b07d6620064344e6c0f24dabc">KStyle::KStyleScrollBarType</a></td> </tr> </table> </div> <div class="memdoc"> <p><a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a> ScrollBarType: </p> <p>Allows the style writer to easily select what type of scrollbar should be used without having to duplicate large amounts of source code by implementing the complex control CC_ScrollBar.</p> <ul> <li>WindowsStyleScrollBar - Two button scrollbar with the previous button at the top/left, and the next button at the bottom/right.</li> </ul> <ul> <li>PlatinumStyleScrollBar - Two button scrollbar with both the previous and next buttons at the bottom/right.</li> </ul> <ul> <li>ThreeButtonScrollBar - KDE style three button scrollbar with two previous buttons, and one next button. The next button is always at the bottom/right, whilst the two previous buttons are on either end of the scrollbar.</li> </ul> <ul> <li>NextStyleScrollBar - Similar to the PlatinumStyle scroll bar, but with the buttons grouped on the opposite end of the scrollbar.</li> </ul> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKStyle.html#a014e2422a8cc97890295dc9dde6d4418" title="Constructs a KStyle object.">KStyle::KStyle()</a> </dd></dl> <dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><em><a class="anchor" id="a1491c11b07d6620064344e6c0f24dabcabc38616f470472cafe8760fe1cda95b9"></a><!-- doxytag: member="WindowsStyleScrollBar" ref="a1491c11b07d6620064344e6c0f24dabcabc38616f470472cafe8760fe1cda95b9" args="" -->WindowsStyleScrollBar</em> </td><td> <p>two button, windows style </p> </td></tr> <tr><td valign="top"><em><a class="anchor" id="a1491c11b07d6620064344e6c0f24dabcac757b7ff183cb1dbe5df8ada1a748305"></a><!-- doxytag: member="PlatinumStyleScrollBar" ref="a1491c11b07d6620064344e6c0f24dabcac757b7ff183cb1dbe5df8ada1a748305" args="" -->PlatinumStyleScrollBar</em> </td><td> <p>two button, platinum style </p> </td></tr> <tr><td valign="top"><em><a class="anchor" id="a1491c11b07d6620064344e6c0f24dabca77de4026300d0cf169dde03ea3467988"></a><!-- doxytag: member="ThreeButtonScrollBar" ref="a1491c11b07d6620064344e6c0f24dabca77de4026300d0cf169dde03ea3467988" args="" -->ThreeButtonScrollBar</em> </td><td> <p>three buttons, KDE style </p> </td></tr> <tr><td valign="top"><em><a class="anchor" id="a1491c11b07d6620064344e6c0f24dabcaf2794ef60c79bbaf60dd2d3b638a10e7"></a><!-- doxytag: member="NextStyleScrollBar" ref="a1491c11b07d6620064344e6c0f24dabcaf2794ef60c79bbaf60dd2d3b638a10e7" args="" -->NextStyleScrollBar</em> </td><td> <p>two button, NeXT style </p> </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="kstyle_8h_source.html#l00109">109</a> of file <a class="el" href="kstyle_8h_source.html">kstyle.h</a>.</p> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a014e2422a8cc97890295dc9dde6d4418"></a><!-- doxytag: member="KStyle::KStyle" ref="a014e2422a8cc97890295dc9dde6d4418" args="(KStyleFlags flags=KStyle::Default, KStyleScrollBarType sbtype=KStyle::WindowsStyleScrollBar)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KStyle::KStyle </td> <td>(</td> <td class="paramtype"><a class="el" href="classKStyle.html#a7481c3894356c94ac96b1532eeb29019">KStyleFlags</a> </td> <td class="paramname"><em>flags</em> = <code>KStyle::Default</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classKStyle.html#a1491c11b07d6620064344e6c0f24dabc">KStyleScrollBarType</a> </td> <td class="paramname"><em>sbtype</em> = <code>KStyle::WindowsStyleScrollBar</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Constructs a <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a> object. </p> <p>Select the appropriate <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a> flags and scrollbar type for your style. The user's style preferences selected in KControl are read by using <a class="elRef" href="qsettings.html">QSettings</a> and are automatically applied to the style. As a fallback, <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a> paints progressbars and tabbars. It inherits from <a class="elRef" href="qcommonstyle.html">QCommonStyle</a> for speed, so don't expect much to be implemented.</p> <p>It is advisable to use a currently implemented style such as the HighColor style as a foundation for any new <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a>, so the limited number of drawing fallbacks should not prove problematic.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">flags</td><td>the style to be applied </td></tr> <tr><td class="paramname">sbtype</td><td>the scroll bar type </td></tr> </table> </dd> </dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKStyle.html#a7481c3894356c94ac96b1532eeb29019" title="KStyle Flags:">KStyle::KStyleFlags</a> </dd> <dd> <a class="el" href="classKStyle.html#a1491c11b07d6620064344e6c0f24dabc" title="KStyle ScrollBarType:">KStyle::KStyleScrollBarType</a> </dd></dl> <dl class="author"><dt><b>Author:</b></dt><dd>Karol Szwed (<a href="mailto:gallium@kde.org">gallium@kde.org</a>) </dd></dl> <p>Definition at line <a class="el" href="kstyle_8cpp_source.html#l00173">173</a> of file <a class="el" href="kstyle_8cpp_source.html">kstyle.cpp</a>.</p> </div> </div> <a class="anchor" id="a42765cdbf8b7825670e6dc37dfc7ded4"></a><!-- doxytag: member="KStyle::~KStyle" ref="a42765cdbf8b7825670e6dc37dfc7ded4" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KStyle::~KStyle </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Destructs the <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a> object. </p> <p>Definition at line <a class="el" href="kstyle_8cpp_source.html#l00226">226</a> of file <a class="el" href="kstyle_8cpp_source.html">kstyle.cpp</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a8ae2e27402def601cdc042de4f333cac"></a><!-- doxytag: member="KStyle::defaultStyle" ref="a8ae2e27402def601cdc042de4f333cac" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="qstring.html">QString</a> KStyle::defaultStyle </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the default widget style depending on color depth. </p> <p>Definition at line <a class="el" href="kstyle_8cpp_source.html#l00238">238</a> of file <a class="el" href="kstyle_8cpp_source.html">kstyle.cpp</a>.</p> </div> </div> <a class="anchor" id="aa41afb7b2a3a080009eff6d6576aa481"></a><!-- doxytag: member="KStyle::drawKStylePrimitive" ref="aa41afb7b2a3a080009eff6d6576aa481" args="(KStylePrimitive kpe, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, const QStyleOption &=QStyleOption::Default) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KStyle::drawKStylePrimitive </td> <td>(</td> <td class="paramtype"><a class="el" href="classKStyle.html#a87fa120f2cf779ed876f7b34ec8dfb3f">KStylePrimitive</a> </td> <td class="paramname"><em>kpe</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" href="qpainter.html">QPainter</a> * </td> <td class="paramname"><em>p</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qwidget.html">QWidget</a> * </td> <td class="paramname"><em>widget</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qrect.html">QRect</a> & </td> <td class="paramname"><em>r</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> & </td> <td class="paramname"><em>cg</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">SFlags </td> <td class="paramname"><em>flags</em> = <code>Style_Default</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qstyleoption.html">QStyleOption</a> & </td> <td class="paramname"> = <code>QStyleOption::Default</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This function is identical to Qt's <a class="elRef" href="qstyle.html#drawPrimitive">QStyle::drawPrimitive()</a>, except that it adds one further parameter, 'widget', that can be used to determine the widget state of the KStylePrimitive in question. </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKStyle.html#a87fa120f2cf779ed876f7b34ec8dfb3f" title="KStyle Primitive Elements:">KStyle::KStylePrimitive</a> </dd> <dd> <a class="elRef" href="qstyle.html#drawPrimitive">QStyle::drawPrimitive</a> </dd> <dd> <a class="elRef" href="qstyle.html#drawComplexControl">QStyle::drawComplexControl</a> </dd></dl> <p>Definition at line <a class="el" href="kstyle_8cpp_source.html#l00307">307</a> of file <a class="el" href="kstyle_8cpp_source.html">kstyle.cpp</a>.</p> </div> </div> <a class="anchor" id="ac993c3f8b07178c6338953501a00e995"></a><!-- doxytag: member="KStyle::renderMenuBlendPixmap" ref="ac993c3f8b07178c6338953501a00e995" args="(KPixmap &pix, const QColorGroup &cg, const QPopupMenu *popup) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KStyle::renderMenuBlendPixmap </td> <td>(</td> <td class="paramtype"><a class="el" href="classKPixmap.html">KPixmap</a> & </td> <td class="paramname"><em>pix</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> & </td> <td class="paramname"><em>cg</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qpopupmenu.html">QPopupMenu</a> * </td> <td class="paramname"><em>popup</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This virtual function defines the pixmap used to blend between the popup menu and the background to create different menu transparency effects. </p> <p>For example, you can fill the pixmap "pix" with a gradient based on the popup's colorGroup, a texture, or some other fancy painting routine. <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a> will then internally blend this pixmap with a snapshot of the background behind the popupMenu to create the illusion of transparency.</p> <p>This virtual is never called if XRender/Software blending is disabled by the user in KDE's style control module. </p> <p>Definition at line <a class="el" href="kstyle_8cpp_source.html#l00300">300</a> of file <a class="el" href="kstyle_8cpp_source.html">kstyle.cpp</a>.</p> </div> </div> <a class="anchor" id="a14526a7d0d84f272b951600981ff3e67"></a><!-- doxytag: member="KStyle::setScrollBarType" ref="a14526a7d0d84f272b951600981ff3e67" args="(KStyleScrollBarType sbtype)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void KStyle::setScrollBarType </td> <td>(</td> <td class="paramtype"><a class="el" href="classKStyle.html#a1491c11b07d6620064344e6c0f24dabc">KStyleScrollBarType</a> </td> <td class="paramname"><em>sbtype</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Modifies the scrollbar type used by the style. </p> <p>This function is only provided for convenience. It allows you to make a late decision about what scrollbar type to use for the style after performing some processing in your style's constructor. In most situations however, setting the scrollbar type via the <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a> constructor should suffice. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">sbtype</td><td>the scroll bar type </td></tr> </table> </dd> </dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKStyle.html#a1491c11b07d6620064344e6c0f24dabc" title="KStyle ScrollBarType:">KStyle::KStyleScrollBarType</a> </dd></dl> <p>Definition at line <a class="el" href="kstyle_8cpp_source.html#l00290">290</a> of file <a class="el" href="kstyle_8cpp_source.html">kstyle.cpp</a>.</p> </div> </div> <a class="anchor" id="ae83de72c7ad13331a22669da1d02e0bf"></a><!-- doxytag: member="KStyle::styleFlags" ref="ae83de72c7ad13331a22669da1d02e0bf" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classKStyle.html#a7481c3894356c94ac96b1532eeb29019">KStyle::KStyleFlags</a> KStyle::styleFlags </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the <a class="el" href="classKStyle.html" title="Simplifies and extends the QStyle API to make style coding easier.">KStyle</a> flags used to initialize the style. </p> <p>This is used solely for the kcmstyle module, and hence is internal. </p> <p>Definition at line <a class="el" href="kstyle_8cpp_source.html#l00295">295</a> of file <a class="el" href="kstyle_8cpp_source.html">kstyle.cpp</a>.</p> </div> </div> <hr/><h2>Friends And Related Function Documentation</h2> <a class="anchor" id="a979de5262c287eb9b0590abb8d575e69"></a><!-- doxytag: member="KStyle::kColorBitmaps" ref="a979de5262c287eb9b0590abb8d575e69" args="(QPainter *p, const QColorGroup &g, int x, int y, QBitmap *lightColor=0, QBitmap *midColor=0, QBitmap *midlightColor=0, QBitmap *darkColor=0, QBitmap *blackColor=0, QBitmap *whiteColor=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KDEFX_EXPORT void kColorBitmaps </td> <td>(</td> <td class="paramtype"><a class="elRef" href="qpainter.html">QPainter</a> * </td> <td class="paramname"><em>p</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> & </td> <td class="paramname"><em>g</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" href="qbitmap.html">QBitmap</a> * </td> <td class="paramname"><em>lightColor</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" href="qbitmap.html">QBitmap</a> * </td> <td class="paramname"><em>midColor</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" href="qbitmap.html">QBitmap</a> * </td> <td class="paramname"><em>midlightColor</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" href="qbitmap.html">QBitmap</a> * </td> <td class="paramname"><em>darkColor</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" href="qbitmap.html">QBitmap</a> * </td> <td class="paramname"><em>blackColor</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" href="qbitmap.html">QBitmap</a> * </td> <td class="paramname"><em>whiteColor</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p><code>#include</code> <code><<a class="el" href="kdrawutil_8h_source.html">kdrawutil.h</a>></code> </p> <p>Paints the provided bitmaps in the painter, using the supplied colorgroup for the foreground colors. There's one bitmap for each color. If you want to skip a color, pass <em>null</em> for the corresponding bitmap.</p> <dl class="note"><dt><b>Note:</b></dt><dd>The bitmaps will be self-masked automatically if not masked prior to calling this routine.</dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">p</td><td>The painter to use for drawing the bitmaps. </td></tr> <tr><td class="paramname">g</td><td>Specifies the shading colors. </td></tr> <tr><td class="paramname">x</td><td>The X coordinate at which to draw the bitmaps. </td></tr> <tr><td class="paramname">y</td><td>The Y coordinate at which to draw the bitmaps. </td></tr> <tr><td class="paramname">lightColor</td><td>The bitmap to use for the light part. </td></tr> <tr><td class="paramname">midColor</td><td>The bitmap to use for the mid part. </td></tr> <tr><td class="paramname">midlightColor</td><td>The bitmap to use for the midlight part. </td></tr> <tr><td class="paramname">darkColor</td><td>The bitmap to use for the dark part. </td></tr> <tr><td class="paramname">blackColor</td><td>The bitmap to use for the black part. </td></tr> <tr><td class="paramname">whiteColor</td><td>The bitmap to use for the white part.</td></tr> </table> </dd> </dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="elRef" href="qcolorgroup.html">QColorGroup</a> </dd></dl> <p>Definition at line <a class="el" href="kdrawutil_8cpp_source.html#l00217">217</a> of file <a class="el" href="kdrawutil_8cpp_source.html">kdrawutil.cpp</a>.</p> </div> </div> <a class="anchor" id="af06ad1a153a8e23d8aab61b70d5a62e5"></a><!-- doxytag: member="KStyle::kColorBitmaps" ref="af06ad1a153a8e23d8aab61b70d5a62e5" args="(QPainter *p, const QColorGroup &g, int x, int y, int w, int h, bool isXBitmaps=true, const uchar *lightColor=0, const uchar *midColor=0, const uchar *midlightColor=0, const uchar *darkColor=0, const uchar *blackColor=0, const uchar *whiteColor=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KDEFX_EXPORT void kColorBitmaps </td> <td>(</td> <td class="paramtype"><a class="elRef" href="qpainter.html">QPainter</a> * </td> <td class="paramname"><em>p</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> & </td> <td class="paramname"><em>g</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>w</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>h</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>isXBitmaps</em> = <code>true</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const uchar * </td> <td class="paramname"><em>lightColor</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const uchar * </td> <td class="paramname"><em>midColor</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const uchar * </td> <td class="paramname"><em>midlightColor</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const uchar * </td> <td class="paramname"><em>darkColor</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const uchar * </td> <td class="paramname"><em>blackColor</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const uchar * </td> <td class="paramname"><em>whiteColor</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p><code>#include</code> <code><<a class="el" href="kdrawutil_8h_source.html">kdrawutil.h</a>></code> </p> <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p> <p>Definition at line <a class="el" href="kdrawutil_8cpp_source.html#l00239">239</a> of file <a class="el" href="kdrawutil_8cpp_source.html">kdrawutil.cpp</a>.</p> </div> </div> <a class="anchor" id="aac8b3789693eb00e458dd94c03611f1d"></a><!-- doxytag: member="KStyle::kDrawBeButton" ref="aac8b3789693eb00e458dd94c03611f1d" args="(QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=false, const QBrush *fill=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KDEFX_EXPORT void kDrawBeButton </td> <td>(</td> <td class="paramtype"><a class="elRef" href="qpainter.html">QPainter</a> * </td> <td class="paramname"><em>p</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>w</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>h</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> & </td> <td class="paramname"><em>g</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>sunken</em> = <code>false</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qbrush.html">QBrush</a> * </td> <td class="paramname"><em>fill</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p><code>#include</code> <code><<a class="el" href="kdrawutil_8h_source.html">kdrawutil.h</a>></code> </p> <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p> <p>Definition at line <a class="el" href="kdrawutil_8cpp_source.html#l00049">49</a> of file <a class="el" href="kdrawutil_8cpp_source.html">kdrawutil.cpp</a>.</p> </div> </div> <a class="anchor" id="a4d1ee35bef88bb3b8258861c2bcb4ef6"></a><!-- doxytag: member="KStyle::kDrawBeButton" ref="a4d1ee35bef88bb3b8258861c2bcb4ef6" args="(QPainter *p, QRect &r, const QColorGroup &g, bool sunken=false, const QBrush *fill=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KDEFX_EXPORT void kDrawBeButton </td> <td>(</td> <td class="paramtype"><a class="elRef" href="qpainter.html">QPainter</a> * </td> <td class="paramname"><em>p</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="elRef" href="qrect.html">QRect</a> & </td> <td class="paramname"><em>r</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> & </td> <td class="paramname"><em>g</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>sunken</em> = <code>false</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qbrush.html">QBrush</a> * </td> <td class="paramname"><em>fill</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p><code>#include</code> <code><<a class="el" href="kdrawutil_8h_source.html">kdrawutil.h</a>></code> </p> <p>Draws a Be-style button.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">p</td><td>The painter to use for drawing the button. </td></tr> <tr><td class="paramname">r</td><td>Specifies the rect in which to draw the button. </td></tr> <tr><td class="paramname">g</td><td>Specifies the shading colors. </td></tr> <tr><td class="paramname">sunken</td><td>Whether to draw the button as sunken (pressed) or not. </td></tr> <tr><td class="paramname">fill</td><td>The brush to use for filling the interior of the button. Pass <em>null</em> to prevent the button from being filled. </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="kdrawutil_8cpp_source.html#l00093">93</a> of file <a class="el" href="kdrawutil_8cpp_source.html">kdrawutil.cpp</a>.</p> </div> </div> <a class="anchor" id="a53a6d809ac8fec3ee6b4d3ee19691835"></a><!-- doxytag: member="KStyle::kDrawNextButton" ref="a53a6d809ac8fec3ee6b4d3ee19691835" args="(QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=false, const QBrush *fill=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KDEFX_EXPORT void kDrawNextButton </td> <td>(</td> <td class="paramtype"><a class="elRef" href="qpainter.html">QPainter</a> * </td> <td class="paramname"><em>p</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>w</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>h</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> & </td> <td class="paramname"><em>g</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>sunken</em> = <code>false</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qbrush.html">QBrush</a> * </td> <td class="paramname"><em>fill</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p> <p>Definition at line <a class="el" href="kdrawutil_8cpp_source.html#l00021">21</a> of file <a class="el" href="kdrawutil_8cpp_source.html">kdrawutil.cpp</a>.</p> </div> </div> <a class="anchor" id="aa4ba5d36676a3ed02fb362d48a138f39"></a><!-- doxytag: member="KStyle::kDrawNextButton" ref="aa4ba5d36676a3ed02fb362d48a138f39" args="(QPainter *p, const QRect &r, const QColorGroup &g, bool sunken=false, const QBrush *fill=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KDEFX_EXPORT void kDrawNextButton </td> <td>(</td> <td class="paramtype"><a class="elRef" href="qpainter.html">QPainter</a> * </td> <td class="paramname"><em>p</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qrect.html">QRect</a> & </td> <td class="paramname"><em>r</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> & </td> <td class="paramname"><em>g</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>sunken</em> = <code>false</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qbrush.html">QBrush</a> * </td> <td class="paramname"><em>fill</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p><code>#include</code> <code><<a class="el" href="kdrawutil_8h_source.html">kdrawutil.h</a>></code> </p> <p>Draws a Next-style button (solid black shadow with light and midlight highlight).</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">p</td><td>The painter to use for drawing the button. </td></tr> <tr><td class="paramname">r</td><td>Specifies the rect in which to draw the button. </td></tr> <tr><td class="paramname">g</td><td>Specifies the shading colors. </td></tr> <tr><td class="paramname">sunken</td><td>Whether to draw the button as sunken (pressed) or not. </td></tr> <tr><td class="paramname">fill</td><td>The brush to use for filling the interior of the button. Pass <em>null</em> to prevent the button from being filled. </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="kdrawutil_8cpp_source.html#l00043">43</a> of file <a class="el" href="kdrawutil_8cpp_source.html">kdrawutil.cpp</a>.</p> </div> </div> <a class="anchor" id="a7134640d5ca62c4f12db16ee0440bd50"></a><!-- doxytag: member="KStyle::kDrawRoundButton" ref="a7134640d5ca62c4f12db16ee0440bd50" args="(QPainter *p, const QRect &r, const QColorGroup &g, bool sunken=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KDEFX_EXPORT void kDrawRoundButton </td> <td>(</td> <td class="paramtype"><a class="elRef" href="qpainter.html">QPainter</a> * </td> <td class="paramname"><em>p</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qrect.html">QRect</a> & </td> <td class="paramname"><em>r</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> & </td> <td class="paramname"><em>g</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>sunken</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p><code>#include</code> <code><<a class="el" href="kdrawutil_8h_source.html">kdrawutil.h</a>></code> </p> <p>Draws a rounded oval button. This function doesn't fill the button. See <a class="el" href="classKStyle.html#ac5ff5ef72f872f010c158590dee41345">kRoundMaskRegion()</a> for setting masks for fills.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">p</td><td>The painter to use for drawing the button. </td></tr> <tr><td class="paramname">r</td><td>Specifies the rect in which to draw the button. </td></tr> <tr><td class="paramname">g</td><td>Specifies the shading colors. </td></tr> <tr><td class="paramname">sunken</td><td>Whether to draw the button as sunken (pressed) or not. </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="kdrawutil_8cpp_source.html#l00099">99</a> of file <a class="el" href="kdrawutil_8cpp_source.html">kdrawutil.cpp</a>.</p> </div> </div> <a class="anchor" id="a295d4a0468f83cce8b0a301b7ec3317d"></a><!-- doxytag: member="KStyle::kDrawRoundButton" ref="a295d4a0468f83cce8b0a301b7ec3317d" args="(QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool sunken=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KDEFX_EXPORT void kDrawRoundButton </td> <td>(</td> <td class="paramtype"><a class="elRef" href="qpainter.html">QPainter</a> * </td> <td class="paramname"><em>p</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>w</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>h</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="qcolorgroup.html">QColorGroup</a> & </td> <td class="paramname"><em>g</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>sunken</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p> <p>Definition at line <a class="el" href="kdrawutil_8cpp_source.html#l00139">139</a> of file <a class="el" href="kdrawutil_8cpp_source.html">kdrawutil.cpp</a>.</p> </div> </div> <a class="anchor" id="a482971972b517e84bc457ceb32b4a9fc"></a><!-- doxytag: member="KStyle::kDrawRoundMask" ref="a482971972b517e84bc457ceb32b4a9fc" args="(QPainter *p, int x, int y, int w, int h, bool clear=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KDEFX_EXPORT void kDrawRoundMask </td> <td>(</td> <td class="paramtype"><a class="elRef" href="qpainter.html">QPainter</a> * </td> <td class="paramname"><em>p</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>w</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>h</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>clear</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p><code>#include</code> <code><<a class="el" href="kdrawutil_8h_source.html">kdrawutil.h</a>></code> </p> <p>Paints the pixels covered by a round button of the given size with Qt::color1. This function is useful in <a class="elRef" href="qstyle.html#drawControlMask">QStyle::drawControlMask()</a>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">p</td><td>The painter to use for drawing the button. </td></tr> <tr><td class="paramname">x</td><td>The X coordinate of the button. </td></tr> <tr><td class="paramname">y</td><td>The Y coordinate of the button. </td></tr> <tr><td class="paramname">w</td><td>The width of the button. </td></tr> <tr><td class="paramname">h</td><td>The height of the button. </td></tr> <tr><td class="paramname">clear</td><td>Whether to clear the rectangle specified by <code></code>(x, y, w, h) to Qt::color0 before drawing the mask. </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="kdrawutil_8cpp_source.html#l00148">148</a> of file <a class="el" href="kdrawutil_8cpp_source.html">kdrawutil.cpp</a>.</p> </div> </div> <a class="anchor" id="ac5ff5ef72f872f010c158590dee41345"></a><!-- doxytag: member="KStyle::kRoundMaskRegion" ref="ac5ff5ef72f872f010c158590dee41345" args="(QRegion &r, int x, int y, int w, int h)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">KDEFX_EXPORT void kRoundMaskRegion </td> <td>(</td> <td class="paramtype"><a class="elRef" href="qregion.html">QRegion</a> & </td> <td class="paramname"><em>r</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>w</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>h</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p><code>#include</code> <code><<a class="el" href="kdrawutil_8h_source.html">kdrawutil.h</a>></code> </p> <p>Sets a region to the pixels covered by a round button of the given size. You can use this to set clipping regions.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">r</td><td>Reference to the region to set. </td></tr> <tr><td class="paramname">x</td><td>The X coordinate of the button. </td></tr> <tr><td class="paramname">y</td><td>The Y coordinate of the button. </td></tr> <tr><td class="paramname">w</td><td>The width of the button. </td></tr> <tr><td class="paramname">h</td><td>The height of the button.</td></tr> </table> </dd> </dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKStyle.html#a7134640d5ca62c4f12db16ee0440bd50">kDrawRoundButton()</a> and <a class="el" href="classKStyle.html#a482971972b517e84bc457ceb32b4a9fc">kDrawRoundMask()</a> </dd></dl> <p>Definition at line <a class="el" href="kdrawutil_8cpp_source.html#l00197">197</a> of file <a class="el" href="kdrawutil_8cpp_source.html">kdrawutil.cpp</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="kstyle_8h_source.html">kstyle.h</a></li> <li><a class="el" href="kdrawutil_8h_source.html">kdrawutil.h</a></li> <li><a class="el" href="kstyle_8cpp_source.html">kstyle.cpp</a></li> </ul> </div> </div></div> </td> </tr> <tr> <td valign="top" id="leftmenu" width="25%"> <a name="navigation"></a> <div class="menu_box"><h2>kdefx</h2> <div class="nav_list"> <ul><li><a href="index.html">Main Page</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="functions.html">Class Members</a></li></ul> <!-- <h2>Class Picker</h2> <div style="text-align: center;"> <form name="guideform"> <select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value"> <option value="annotated.html">-- Choose --</option> <option value="classKCPUInfo.html">kcpuinfo</option>, <option value="classKImageEffect.html">kimageeffect</option>, <option value="classKPixmap.html">kpixmap</option>, <option value="classKPixmapEffect.html">kpixmapeffect</option>, <option value="classKPixmapSplitter.html">kpixmapsplitter</option>, <option value="classKStyle.html">kstyle</option>, </select> </form> </div> --> </div></div> <div class="menu_box"><h2>API Dox</h2> <div class="nav_list"> <ul> <li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li> <a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li> <a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li> <a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li> <a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li> <a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li> <a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li> <a href="../../kio/kfile/html/index.html">kfile</a></li><li> <a href="../../kio/kio/html/index.html">kio</a></li><li> <a href="../../kio/kioexec/html/index.html">kioexec</a></li><li> <a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li> <a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li> <a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li> <a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li> </ul></div></div> </td> </tr> </table> <span class="doNotDisplay"> <a href="http://www.kde.org/" accesskey="8">KDE Home</a> | <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> | <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a> </span> <div style="height: 8px"></div> <div id="footer"> <div id="footer_left"> Maintained by <a href="mailto:groot@kde.org">Adriaan de Groot</a> and <a href="mailto:winter@kde.org">Allen Winter</a>. <br/> KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> | <a href="http://www.kde.org/contact/impressum.php">Legal</a> </div> <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div> </div> <!-- WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL BE BLOCKED INSTANTLY AND PERMANENTLY! <a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a> WARNING END --> </body> </html>