KDE 4.2 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

KStatefulBrush Class Reference

from PyKDE4.kdeui import *

Detailed Description


Methods

 __init__ (self)
 __init__ (self, KColorScheme.ColorSet a0, KColorScheme.ForegroundRole a1, KSharedConfigPtr a2=KSharedConfigPtr())
 __init__ (self, KColorScheme.ColorSet a0, KColorScheme.BackgroundRole a1, KSharedConfigPtr a2=KSharedConfigPtr())
 __init__ (self, KColorScheme.ColorSet a0, KColorScheme.DecorationRole a1, KSharedConfigPtr a2=KSharedConfigPtr())
 __init__ (self, QBrush a0, KSharedConfigPtr a1=KSharedConfigPtr())
 __init__ (self, QBrush a0, QBrush background, KSharedConfigPtr a1=KSharedConfigPtr())
 __init__ (self, KStatefulBrush a0)
QBrush brush (self, QPalette.ColorGroup a0)
QBrush brush (self, QPalette a0)
QBrush brush (self, QWidget a0)

Method Documentation

__init__ (   self )

Construct a "default" stateful brush. For such an instance, all overloads of KStatefulBrush.brush will return a default brush (i.e. <tt>QBrush()</tt>).

__init__ (  self,
KColorScheme.ColorSet  a0,
KColorScheme.ForegroundRole  a1,
KSharedConfigPtr  a2=KSharedConfigPtr()
)

Construct a stateful brush from given color set and foreground role, using the colors from the given KConfig (if null, the system colors are used).

__init__ (  self,
KColorScheme.ColorSet  a0,
KColorScheme.BackgroundRole  a1,
KSharedConfigPtr  a2=KSharedConfigPtr()
)

Construct a stateful brush from given color set and background role, using the colors from the given KConfig (if null, the system colors are used).

__init__ (  self,
KColorScheme.ColorSet  a0,
KColorScheme.DecorationRole  a1,
KSharedConfigPtr  a2=KSharedConfigPtr()
)

Construct a stateful brush from given color set and decoration role, using the colors from the given KConfig (if null, the system colors are used).

__init__ (  self,
QBrush  a0,
KSharedConfigPtr  a1=KSharedConfigPtr()
)

Construct a stateful background brush from a specified QBrush (or QColor, via QBrush's implicit constructor). The various states are determined from the base QBrush (which fills in the Active state) according to the same rules used to build stateful color schemes from the system color scheme. The state effects from the given KConfig are used (if null, the system state effects are used).

__init__ (  self,
QBrush  a0,
QBrush  background,
KSharedConfigPtr  a1=KSharedConfigPtr()
)

Construct a stateful foreground/decoration brush from a specified QBrush (or QColor, via QBrush's implicit constructor). The various states are determined from the base QBrush (which fills in the Active state) according to the same rules used to build stateful color schemes from the system color scheme. The state effects from the given KConfig are used (if null, the system state effects are used).

Parameters:
background  The background brush (or color) corresponding to the KColorScheme.NormalBackground role and QPalette.Active state for this foreground/decoration color.

__init__ (  self,
KStatefulBrush  a0
)

Construct a copy of another KStatefulBrush.

QBrush brush (  self,
QPalette.ColorGroup  a0
)

Retrieve the brush for the specified widget state. This is used when you know explicitly what state is wanted. Otherwise one of overloads is often more convenient.

QBrush brush (  self,
QPalette  a0
)

Retrieve the brush, using a QPalette reference to determine the correct state. Use when your painting code has easy access to the QPalette that it is supposed to be using. The state used in this instance is the currentColorGroup of the palette.

QBrush brush (  self,
QWidget  a0
)

Retrieve the brush, using a QWidget pointer to determine the correct state. Use when you have a pointer to the widget that you are painting. The state used is the current state of the widget.

Note:
If you pass an invalid widget, you will get a default brush (i.e. <tt>QBrush()</tt>).

  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal