KWinLibraries
KWin decorations library
Enumeration Type Documentation
enum ButtonType |
- Enumerator:
-
HelpButton MaxButton MinButton CloseButton MenuButton OnAllDesktopsButton AboveButton BelowButton ShadeButton NumButtons
Definition at line 37 of file kcommondecoration.h.
enum ShadowType |
Decoration shadow type.
- Enumerator:
Definition at line 199 of file kdecoration.h.
Function Documentation
void KCommonDecoration::activeChange | ( | ) | [virtual, inherited] |
Definition at line 578 of file kcommondecoration.cpp.
void KCommonDecoration::borders | ( | int & | left, | |
int & | right, | |||
int & | top, | |||
int & | bottom | |||
) | const [virtual, inherited] |
Definition at line 167 of file kcommondecoration.cpp.
int KCommonDecoration::buttonsLeftWidth | ( | ) | const [inherited] |
Definition at line 308 of file kcommondecoration.cpp.
int KCommonDecoration::buttonsRightWidth | ( | ) | const [inherited] |
Definition at line 313 of file kcommondecoration.cpp.
QString KCommonDecoration::caption | ( | ) | const [inherited] |
Definition at line 1073 of file kcommondecoration.cpp.
void KCommonDecoration::captionChange | ( | ) | [virtual, inherited] |
Definition at line 584 of file kcommondecoration.cpp.
void KCommonDecoration::clearMask | ( | ) | [inherited] |
Definition at line 1093 of file kcommondecoration.cpp.
bool KCommonDecorationUnstable::compositingActive | ( | ) | const [inherited] |
Definition at line 1264 of file kcommondecoration.cpp.
QRegion KCommonDecoration::cornerShape | ( | WindowCorner | corner | ) | [virtual, inherited] |
- Returns:
- the mask for the specific window corner.
Definition at line 156 of file kcommondecoration.cpp.
void KCommonDecoration::createMainWidget | ( | Qt::WFlags | flags = 0 |
) | [inherited] |
Definition at line 1133 of file kcommondecoration.cpp.
KDecoration * KCommonDecoration::decoration | ( | ) | [inherited] |
Definition at line 1219 of file kcommondecoration.cpp.
const KDecoration * KCommonDecoration::decoration | ( | ) | const [inherited] |
Definition at line 1215 of file kcommondecoration.cpp.
KCommonDecoration * KCommonDecorationButton::decoration | ( | ) | const [inherited] |
- Returns:
- the KCommonDecoration the button belongs to.
Definition at line 910 of file kcommondecoration.cpp.
bool KCommonDecoration::decorationBehaviour | ( | DecorationBehaviour | behaviour | ) | const [virtual, inherited] |
This controls whether some specific behaviour should be enabled or not.
- See also:
- DecorationBehaviour
Definition at line 81 of file kcommondecoration.cpp.
QString KCommonDecoration::defaultButtonsLeft | ( | ) | const [virtual, inherited] |
The default title button order on the left.
- See also:
- KDecoration::titleButtonsLeft()
KDecoration::titleButtonsRight()
Definition at line 71 of file kcommondecoration.cpp.
QString KCommonDecoration::defaultButtonsRight | ( | ) | const [virtual, inherited] |
The default title button order on the left.
- See also:
- KDecoration::titleButtonsLeft()
KDecoration::titleButtonsRight()
Definition at line 76 of file kcommondecoration.cpp.
int KCommonDecoration::desktop | ( | ) | const [inherited] |
Definition at line 1025 of file kcommondecoration.cpp.
void KCommonDecoration::desktopChange | ( | ) | [virtual, inherited] |
Definition at line 546 of file kcommondecoration.cpp.
bool KCommonDecoration::drawbound | ( | const QRect & | geom, | |
bool | clear | |||
) | [virtual, inherited] |
Definition at line 989 of file kcommondecoration.cpp.
KDecorationFactory * KDecoration::factory | ( | ) | const [inline, inherited] |
KDecorationFactory * KCommonDecoration::factory | ( | ) | const [inherited] |
Definition at line 1153 of file kcommondecoration.cpp.
QRect KCommonDecoration::geometry | ( | ) | const [inherited] |
Definition at line 1101 of file kcommondecoration.cpp.
void KCommonDecoration::grabXServer | ( | ) | [inherited] |
Definition at line 1157 of file kcommondecoration.cpp.
int KDecoration::height | ( | ) | const [inline, inherited] |
Convenience function that returns the height of the decoration.
Definition at line 960 of file kdecoration.h.
int KCommonDecoration::height | ( | ) | const [inherited] |
Definition at line 1121 of file kcommondecoration.cpp.
QIcon KCommonDecoration::icon | ( | ) | const [inherited] |
Definition at line 1069 of file kcommondecoration.cpp.
void KCommonDecoration::iconChange | ( | ) | [virtual, inherited] |
Definition at line 569 of file kcommondecoration.cpp.
QRect KCommonDecoration::iconGeometry | ( | ) | const [inherited] |
Definition at line 1105 of file kcommondecoration.cpp.
void KCommonDecoration::init | ( | ) | [virtual, inherited] |
Handles widget and layout creation, call the base implementation when subclassing this member.
Definition at line 131 of file kcommondecoration.cpp.
QWidget * KCommonDecoration::initialParentWidget | ( | ) | const [inherited] |
Definition at line 1137 of file kcommondecoration.cpp.
Qt::WFlags KCommonDecoration::initialWFlags | ( | ) | const [inherited] |
Definition at line 1141 of file kcommondecoration.cpp.
bool KCommonDecoration::isActive | ( | ) | const [inherited] |
Definition at line 1001 of file kcommondecoration.cpp.
bool KCommonDecoration::isCloseable | ( | ) | const [inherited] |
Definition at line 1005 of file kcommondecoration.cpp.
bool KCommonDecorationButton::isLeft | ( | ) | const [inherited] |
Whether the button is left of the titlebar or not.
Definition at line 920 of file kcommondecoration.cpp.
bool KCommonDecoration::isMaximizable | ( | ) | const [inherited] |
Definition at line 1009 of file kcommondecoration.cpp.
bool KCommonDecoration::isMinimizable | ( | ) | const [inherited] |
Definition at line 1017 of file kcommondecoration.cpp.
bool KCommonDecoration::isModal | ( | ) | const [inherited] |
Definition at line 1033 of file kcommondecoration.cpp.
bool KCommonDecoration::isMovable | ( | ) | const [inherited] |
Definition at line 1057 of file kcommondecoration.cpp.
bool KDecoration::isOnAllDesktops | ( | ) | const [inline, inherited] |
Convenience function that returns true if the window is on all virtual desktops.
Definition at line 950 of file kdecoration.h.
bool KCommonDecoration::isOnAllDesktops | ( | ) | const [inherited] |
Definition at line 1029 of file kcommondecoration.cpp.
bool KCommonDecoration::isPreview | ( | ) | const [inherited] |
Definition at line 1097 of file kcommondecoration.cpp.
bool KCommonDecoration::isResizable | ( | ) | const [inherited] |
Definition at line 1061 of file kcommondecoration.cpp.
bool KCommonDecoration::isSetShade | ( | ) | const [inherited] |
Definition at line 1045 of file kcommondecoration.cpp.
bool KCommonDecoration::isShade | ( | ) | const [inherited] |
Definition at line 1041 of file kcommondecoration.cpp.
bool KCommonDecoration::isShadeable | ( | ) | const [inherited] |
Definition at line 1037 of file kcommondecoration.cpp.
bool KCommonDecoration::isToolWindow | ( | ) | const [inherited] |
Convenience method.
- Returns:
- true if the window type is NET::Toolbar, NET::Utility, or NET::Menu
Definition at line 871 of file kcommondecoration.cpp.
KCommonDecoration::KCommonDecoration | ( | KDecorationBridge * | bridge, | |
KDecorationFactory * | factory | |||
) | [inherited] |
Definition at line 48 of file kcommondecoration.cpp.
KCommonDecorationButton::KCommonDecorationButton | ( | ButtonType | type, | |
KCommonDecoration * | parent | |||
) | [inherited] |
Definition at line 895 of file kcommondecoration.cpp.
KCommonDecorationUnstable::KCommonDecorationUnstable | ( | KDecorationBridge * | bridge, | |
KDecorationFactory * | factory | |||
) | [inherited] |
Definition at line 1225 of file kcommondecoration.cpp.
bool KCommonDecoration::keepAbove | ( | ) | const [inherited] |
Definition at line 1049 of file kcommondecoration.cpp.
bool KCommonDecoration::keepBelow | ( | ) | const [inherited] |
Definition at line 1053 of file kcommondecoration.cpp.
int KCommonDecoration::layoutMetric | ( | LayoutMetric | lm, | |
bool | respectWindowState = true , |
|||
const KCommonDecorationButton * | button = 0 | |||
) | const [virtual, inherited] |
This controls the layout of the decoration in various ways.
It is possible to have a different layout for different window states.
- Parameters:
-
lm The layout element. respectWindowState Whether window states should be taken into account or a "default" state should be assumed. button For LM_ButtonWidth and LM_ButtonHeight, the button.
Definition at line 97 of file kcommondecoration.cpp.
void KCommonDecoration::maximizeChange | ( | ) | [virtual, inherited] |
Definition at line 533 of file kcommondecoration.cpp.
KCommonDecoration::MaximizeMode KCommonDecoration::maximizeMode | ( | ) | const [inherited] |
Definition at line 1013 of file kcommondecoration.cpp.
QSize KCommonDecoration::minimumSize | ( | ) | const [virtual, inherited] |
Definition at line 522 of file kcommondecoration.cpp.
void KCommonDecoration::mouseDoubleClickEvent | ( | QMouseEvent * | e | ) | [virtual, inherited] |
Definition at line 708 of file kcommondecoration.cpp.
KCommonDecoration::Position KCommonDecoration::mousePosition | ( | const QPoint & | point | ) | const [virtual, inherited] |
Definition at line 727 of file kcommondecoration.cpp.
void KCommonDecorationButton::mousePressEvent | ( | QMouseEvent * | e | ) | [protected, inherited] |
Definition at line 968 of file kcommondecoration.cpp.
void KCommonDecorationButton::mouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected, inherited] |
Definition at line 977 of file kcommondecoration.cpp.
double KCommonDecorationUnstable::opacity | ( | ) | const [inherited] |
Definition at line 1272 of file kcommondecoration.cpp.
KDecorationDefines::MaximizeMode operator& | ( | KDecorationDefines::MaximizeMode | m1, | |
KDecorationDefines::MaximizeMode | m2 | |||
) | [inline] |
Definition at line 924 of file kdecoration.h.
KDecorationDefines::MaximizeMode operator^ | ( | KDecorationDefines::MaximizeMode | m1, | |
KDecorationDefines::MaximizeMode | m2 | |||
) | [inline] |
Definition at line 918 of file kdecoration.h.
KDecorationDefines::MaximizeMode operator| | ( | KDecorationDefines::MaximizeMode | m1, | |
KDecorationDefines::MaximizeMode | m2 | |||
) | [inline] |
Definition at line 930 of file kdecoration.h.
const KDecorationOptions * KDecorationFactory::options | ( | ) | [inline, inherited] |
Returns the KDecorationOptions object, which is used to access configuration settings for the decoration.
Definition at line 157 of file kdecorationfactory.h.
const KDecorationOptions * KCommonDecoration::options | ( | ) | [static, inherited] |
Definition at line 997 of file kcommondecoration.cpp.
void KCommonDecoration::performWindowOperation | ( | WindowOperation | op | ) | [inherited] |
Definition at line 1085 of file kcommondecoration.cpp.
void KCommonDecoration::processMousePressEvent | ( | QMouseEvent * | e | ) | [inherited] |
Definition at line 1125 of file kcommondecoration.cpp.
bool KCommonDecoration::providesContextHelp | ( | ) | const [inherited] |
Definition at line 1021 of file kcommondecoration.cpp.
void KCommonDecorationUnstable::repaintShadow | ( | ) | [inherited] |
Definition at line 1260 of file kcommondecoration.cpp.
void KCommonDecoration::reset | ( | unsigned long | changed | ) | [virtual, inherited] |
Handles SettingButtons, call the base implementation when subclassing this member.
Definition at line 148 of file kcommondecoration.cpp.
void KCommonDecoration::resetButtons | ( | ) | const [inherited] |
void KCommonDecoration::resize | ( | const QSize & | s | ) | [virtual, inherited] |
Definition at line 517 of file kcommondecoration.cpp.
void KCommonDecoration::resizeEvent | ( | QResizeEvent * | e | ) | [virtual, inherited] |
Definition at line 675 of file kcommondecoration.cpp.
void KCommonDecorationButton::setLeft | ( | bool | left | ) | [protected, inherited] |
Definition at line 925 of file kcommondecoration.cpp.
void KCommonDecoration::setMainWidget | ( | QWidget * | w | ) | [inherited] |
Definition at line 1129 of file kcommondecoration.cpp.
void KCommonDecoration::setMask | ( | const QRegion & | reg, | |
int | mode = 0 | |||
) | [inherited] |
Definition at line 1089 of file kcommondecoration.cpp.
void KCommonDecorationButton::setOn | ( | bool | on | ) | [protected, inherited] |
Definition at line 960 of file kcommondecoration.cpp.
void KCommonDecorationButton::setRealizeButtons | ( | int | btns | ) | [inherited] |
Set which mouse buttons the button should honor.
Used e.g. to prevent accidental right mouse clicks.
Definition at line 930 of file kcommondecoration.cpp.
void KCommonDecorationButton::setSize | ( | const QSize & | s | ) | [inherited] |
void KCommonDecorationButton::setTipText | ( | const QString & | tip | ) | [inherited] |
void KCommonDecorationButton::setToggleButton | ( | bool | toggle | ) | [protected, inherited] |
Definition at line 954 of file kcommondecoration.cpp.
void KCommonDecoration::shadeChange | ( | ) | [virtual, inherited] |
Definition at line 557 of file kcommondecoration.cpp.
double KCommonDecorationUnstable::shadowBrightness | ( | ShadowType | type | ) | const [virtual, inherited] |
Definition at line 1249 of file kcommondecoration.cpp.
double KCommonDecorationUnstable::shadowOpacity | ( | ShadowType | type | ) | const [virtual, inherited] |
Definition at line 1241 of file kcommondecoration.cpp.
QList< QRect > KCommonDecorationUnstable::shadowQuads | ( | ShadowType | type | ) | const [virtual, inherited] |
Definition at line 1236 of file kcommondecoration.cpp.
bool KCommonDecorationUnstable::shadowsActive | ( | ) | const [inherited] |
Definition at line 1268 of file kcommondecoration.cpp.
double KCommonDecorationUnstable::shadowSaturation | ( | ShadowType | type | ) | const [virtual, inherited] |
Definition at line 1254 of file kcommondecoration.cpp.
void KCommonDecoration::show | ( | ) | [virtual, inherited] |
Definition at line 510 of file kcommondecoration.cpp.
void KCommonDecoration::showWindowMenu | ( | QPoint | pos | ) | [inherited] |
Definition at line 1081 of file kcommondecoration.cpp.
void KCommonDecoration::showWindowMenu | ( | const QRect & | pos | ) | [inherited] |
Definition at line 1077 of file kcommondecoration.cpp.
QSize KCommonDecorationButton::sizeHint | ( | ) | const [inherited] |
Definition at line 945 of file kcommondecoration.cpp.
QRect KCommonDecoration::titleRect | ( | ) | const [inherited] |
ButtonType KCommonDecorationButton::type | ( | ) | const [inherited] |
void KCommonDecoration::ungrabXServer | ( | ) | [inherited] |
Definition at line 1161 of file kcommondecoration.cpp.
Definition at line 1109 of file kcommondecoration.cpp.
void KCommonDecoration::updateButtons | ( | ) | const [inherited] |
void KCommonDecoration::updateCaption | ( | ) | [virtual, inherited] |
This is used to update the painting of the title bar after the caption has been changed.
Reimplement for a more efficient implementation (default calls update() on the whole decoration).
Definition at line 161 of file kcommondecoration.cpp.
void KCommonDecoration::updateLayout | ( | ) | const [inherited] |
void KCommonDecoration::updateWindowShape | ( | ) | [virtual, inherited] |
This updates the window mask using the information provided by cornerShape().
Edges which are aligned to screen corners are not shaped for better usability (remember to paint these areas in paintEvent(), too). You normally don't want/need to reimplement updateWindowShape().
- See also:
- cornerShape()
Definition at line 792 of file kcommondecoration.cpp.
void KCommonDecoration::wheelEvent | ( | QWheelEvent * | e | ) | [virtual, inherited] |
Definition at line 720 of file kcommondecoration.cpp.
const QWidget * KDecoration::widget | ( | ) | const [inline, inherited] |
QWidget * KDecoration::widget | ( | ) | [inline, inherited] |
const QWidget * KCommonDecoration::widget | ( | ) | const [inherited] |
Definition at line 1149 of file kcommondecoration.cpp.
QWidget * KCommonDecoration::widget | ( | ) | [inherited] |
Definition at line 1145 of file kcommondecoration.cpp.
int KDecoration::width | ( | ) | const [inline, inherited] |
Convenience function that returns the width of the decoration.
Definition at line 955 of file kdecoration.h.
int KCommonDecoration::width | ( | ) | const [inherited] |
Definition at line 1117 of file kcommondecoration.cpp.
bool KCommonDecoration::windowDocked | ( | Position | side | ) | [virtual, inherited] |
Definition at line 993 of file kcommondecoration.cpp.
WId KCommonDecoration::windowId | ( | ) | const [inherited] |
Definition at line 1113 of file kcommondecoration.cpp.
NET::WindowType KCommonDecoration::windowType | ( | unsigned long | supported_types | ) | const [inherited] |
Definition at line 1065 of file kcommondecoration.cpp.
KCommonDecoration::~KCommonDecoration | ( | ) | [virtual, inherited] |
Definition at line 62 of file kcommondecoration.cpp.
KCommonDecorationButton::~KCommonDecorationButton | ( | ) | [virtual, inherited] |
Definition at line 906 of file kcommondecoration.cpp.
KCommonDecorationUnstable::~KCommonDecorationUnstable | ( | ) | [virtual, inherited] |
Definition at line 1231 of file kcommondecoration.cpp.
Variable Documentation
const int SUPPORTED_WINDOW_TYPES_MASK |
Initial value:
NET::NormalMask | NET::DesktopMask | NET::DockMask | NET::ToolbarMask | NET::MenuMask | NET::DialogMask | NET::TopMenuMask | NET::UtilityMask | NET::SplashMask
Definition at line 867 of file kcommondecoration.cpp.
Public Slots
void KCommonDecoration::closeWindow | ( | ) | [slot, inherited] |
Definition at line 1165 of file kcommondecoration.cpp.
void KCommonDecoration::keepAboveChange | ( | bool | above | ) | [slot, inherited] |
Definition at line 589 of file kcommondecoration.cpp.
void KCommonDecoration::keepBelowChange | ( | bool | below | ) | [slot, inherited] |
Definition at line 606 of file kcommondecoration.cpp.
void KCommonDecoration::maximize | ( | MaximizeMode | mode | ) | [slot, inherited] |
Definition at line 1173 of file kcommondecoration.cpp.
void KCommonDecoration::maximize | ( | Qt::MouseButtons | button | ) | [slot, inherited] |
Definition at line 1169 of file kcommondecoration.cpp.
void KCommonDecoration::menuButtonPressed | ( | ) | [slot, inherited] |
Definition at line 646 of file kcommondecoration.cpp.
void KCommonDecoration::menuButtonReleased | ( | ) | [slot, inherited] |
Definition at line 669 of file kcommondecoration.cpp.
void KCommonDecoration::minimize | ( | ) | [slot, inherited] |
Definition at line 1177 of file kcommondecoration.cpp.
void KCommonDecoration::setDesktop | ( | int | desktop | ) | [slot, inherited] |
Definition at line 1185 of file kcommondecoration.cpp.
void KCommonDecoration::setKeepAbove | ( | bool | set | ) | [slot, inherited] |
Definition at line 1205 of file kcommondecoration.cpp.
void KCommonDecoration::setKeepBelow | ( | bool | set | ) | [slot, inherited] |
Definition at line 1209 of file kcommondecoration.cpp.
void KCommonDecoration::setShade | ( | bool | set | ) | [slot, inherited] |
Definition at line 1201 of file kcommondecoration.cpp.
void KCommonDecoration::showContextHelp | ( | ) | [slot, inherited] |
Definition at line 1181 of file kcommondecoration.cpp.
void KCommonDecoration::slotKeepAbove | ( | ) | [slot, inherited] |
Definition at line 636 of file kcommondecoration.cpp.
void KCommonDecoration::slotKeepBelow | ( | ) | [slot, inherited] |
Definition at line 641 of file kcommondecoration.cpp.
void KCommonDecoration::slotMaximize | ( | ) | [slot, inherited] |
Definition at line 623 of file kcommondecoration.cpp.
void KCommonDecoration::slotShade | ( | ) | [slot, inherited] |
Definition at line 631 of file kcommondecoration.cpp.
void KCommonDecoration::titlebarDblClickOperation | ( | ) | [slot, inherited] |
Definition at line 1193 of file kcommondecoration.cpp.
void KCommonDecoration::titlebarMouseWheelOperation | ( | int | delta | ) | [slot, inherited] |
Definition at line 1197 of file kcommondecoration.cpp.
void KCommonDecoration::toggleOnAllDesktops | ( | ) | [slot, inherited] |
Definition at line 1189 of file kcommondecoration.cpp.