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

Public Member Functions | |
KDecorationOptions () | |
virtual | ~KDecorationOptions () |
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 |
WindowOperation | operationMaxButtonClick (Qt::ButtonState button) 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().
- Since:
- 3.2
Definition at line 186 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.
Definition at line 373 of file kdecoration.cpp. References d. Referenced by Laptop::create_pixmaps(), Quartz::QuartzButton::drawButton(), Default::KDEDefaultButton::drawButton(), KWinPlastik::PlastikHandler::getColor(), Redmond::RedmondDeco::paintEvent(), Quartz::QuartzClient::paintEvent(), Laptop::LaptopClient::paintEvent(), and Default::KDEDefaultClient::paintEvent(). |
|
Returns a colorgroup using the given decoration color as the background. The changed flags for this setting is SettingColors.
Definition at line 386 of file kdecoration.cpp. References d, and QApplication::palette(). Referenced by Redmond::create_pixmaps(), ModernSystem::create_pixmaps(), Laptop::create_pixmaps(), Laptop::LaptopButton::drawButton(), Redmond::RedmondDeco::paintEvent(), Quartz::QuartzClient::paintEvent(), ModernSystem::ModernSys::paintEvent(), Laptop::LaptopClient::paintEvent(), Default::KDEDefaultClient::paintEvent(), and Laptop::LaptopClient::updateActiveBuffer(). |
|
Returns the active or inactive decoration font. The changed flags for this setting is SettingFont.
Definition at line 378 of file kdecoration.cpp. References d. Referenced by Redmond::RedmondDeco::paintEvent(), Quartz::QuartzClient::paintEvent(), Default::KDEDefaultClient::paintEvent(), and KWinPlastik::PlastikHandler::reset(). |
|
Returns true if the style should use custom button positions The changed flags for this setting is SettingButtons.
Definition at line 398 of file kdecoration.cpp. References d. |
|
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 :
Definition at line 403 of file kdecoration.cpp. References d. Referenced by Laptop::LaptopClient::maximizeChange(). |
|
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". Unknown buttons in the returned string must be ignored. The changed flags for this setting is SettingButtons. Definition at line 408 of file kdecoration.cpp. References d. |
|
Definition at line 413 of file kdecoration.cpp. References d. Referenced by Web::WebButton::setTipText(), and Quartz::QuartzButton::setTipText(). |
|
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.
Definition at line 418 of file kdecoration.cpp. References KDecorationDefines::BordersCount, KDecorationFactory::borderSizes(), and d. Referenced by Web::WebClient::init(), and KWinPlastik::PlastikHandler::reset(). |
The documentation for this class was generated from the following files: