Changeset View
Changeset View
Standalone View
Standalone View
kstyle/breezehelper.h
Show First 20 Lines • Show All 245 Lines • ▼ Show 20 Line(s) | 49 | { | |||
---|---|---|---|---|---|
246 | void renderTabBarTab( QPainter*, const QRect&, const QColor& color, const QColor& outline, Corners ) const; | 246 | void renderTabBarTab( QPainter*, const QRect&, const QColor& color, const QColor& outline, Corners ) const; | ||
247 | 247 | | |||
248 | //* generic arrow | 248 | //* generic arrow | ||
249 | void renderArrow( QPainter*, const QRect&, const QColor&, ArrowOrientation ) const; | 249 | void renderArrow( QPainter*, const QRect&, const QColor&, ArrowOrientation ) const; | ||
250 | 250 | | |||
251 | //* generic button (for mdi decorations, tabs and dock widgets) | 251 | //* generic button (for mdi decorations, tabs and dock widgets) | ||
252 | void renderDecorationButton( QPainter*, const QRect&, const QColor&, ButtonType, bool inverted ) const; | 252 | void renderDecorationButton( QPainter*, const QRect&, const QColor&, ButtonType, bool inverted ) const; | ||
253 | 253 | | |||
254 | //* generic shadow for rounded rectangles | ||||
255 | void renderRoundedRectShadow ( QPainter*, const QRectF&, const QColor&, qreal radius = Metrics::Frame_FrameRadius - 0.5 ) const; | ||||
256 | | ||||
257 | //* generic shadow for ellipses | ||||
258 | void renderEllipseShadow( QPainter*, const QRectF&, const QColor& ) const; | ||||
259 | | ||||
254 | //@} | 260 | //@} | ||
255 | 261 | | |||
256 | //*@name compositing utilities | 262 | //*@name compositing utilities | ||
257 | //@{ | 263 | //@{ | ||
258 | 264 | | |||
259 | //* true if style was compiled for and is running on X11 | 265 | //* true if style was compiled for and is running on X11 | ||
260 | static bool isX11(); | 266 | static bool isX11(); | ||
261 | 267 | | |||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | |||||
314 | //* return a QRectF with the appropriate size for a rectangle with a pen stroke | 320 | //* return a QRectF with the appropriate size for a rectangle with a pen stroke | ||
315 | QRectF strokedRect( const QRectF &rect, const int penWidth = 1 ) const; | 321 | QRectF strokedRect( const QRectF &rect, const int penWidth = 1 ) const; | ||
316 | 322 | | |||
317 | protected: | 323 | protected: | ||
318 | 324 | | |||
319 | //* initialize | 325 | //* initialize | ||
320 | void init(); | 326 | void init(); | ||
321 | 327 | | |||
322 | //* return rectangle for widgets shadow, offset depending on light source | | |||
323 | QRectF shadowRect( const QRectF& ) const; | | |||
324 | | ||||
325 | //* return rounded path in a given rect, with only selected corners rounded, and for a given radius | 328 | //* return rounded path in a given rect, with only selected corners rounded, and for a given radius | ||
326 | QPainterPath roundedPath( const QRectF&, Corners, qreal ) const; | 329 | QPainterPath roundedPath( const QRectF&, Corners, qreal ) const; | ||
327 | 330 | | |||
328 | private: | 331 | private: | ||
329 | 332 | | |||
330 | #if BREEZE_USE_KDE4 | 333 | #if BREEZE_USE_KDE4 | ||
331 | //* component data | 334 | //* component data | ||
332 | KComponentData _componentData; | 335 | KComponentData _componentData; | ||
Show All 32 Lines |