KDecorationOptions Class Reference
This class holds various configuration settings for the decoration. More...
#include <kdecoration.h>
Inheritance diagram for KDecorationOptions:

Public Member Functions | |
const QColor & | color (ColorType type, bool active=true) const |
const QColorGroup & | colorGroup (ColorType type, bool active=true) const |
const QFont & | font (bool active=true, bool small=false) const |
bool | customButtonPositions () const |
QString | titleButtonsLeft () const |
QString | titleButtonsRight () const |
bool | showTooltips () const |
BorderSize | preferredBorderSize (KDecorationFactory *factory) const |
bool | moveResizeMaximizedWindows () const |
virtual unsigned long | updateSettings ()=0 |
Protected Attributes | |
KDecorationOptionsPrivate * | d |
Detailed Description
This class holds various configuration settings for the decoration.It is accessible from the decorations either as KDecoration::options() or KDecorationFactory::options().
Definition at line 160 of file kdecoration.h.
Member Function Documentation
|
Returns the color that should be used for the given part of the decoration. The changed flags for this setting is SettingColors.
|
|
Returns a colorgroup using the given decoration color as the background. The changed flags for this setting is SettingColors.
|
|
Returns the active or inactive decoration font. The changed flags for this setting is SettingFont.
|
|
Returns true if the style should use custom button positions The changed flags for this setting is SettingButtons.
|
|
If customButtonPositions() returns true, titleButtonsLeft returns which buttons should be on the left side of the titlebar from left to right. Characters in the returned string have this meaning :
|
|
If customButtonPositions() returns true, titleButtonsRight returns which buttons should be on the right side of the titlebar from left to right. Characters in the return string have the same meaning like in titleButtonsLeft(). The default ( which is also returned if customButtonPositions returns false ) is "HIAX". The changed flags for this setting is SettingButtons. Definition at line 393 of file kdecoration.cpp. |
|
|
|
The preferred border size selected by the user, e.g. for accessibility reasons, or when using high resolution displays. It's up to the decoration to decide which borders or if any borders at all will obey this setting. It is guaranteed that the returned value will be one of those returned by KDecorationFactory::borderSizes(), so if that one hasn't been reimplemented, BorderNormal is always returned. The changed flags for this setting is SettingBorder.
|
The documentation for this class was generated from the following files: