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.
Function Documentation
void KCommonDecoration::activeChange | ( | ) | [virtual, inherited] |
Definition at line 577 of file kcommondecoration.cpp.
void KCommonDecoration::borders | ( | int & | left, | |
int & | right, | |||
int & | top, | |||
int & | bottom | |||
) | const [virtual, inherited] |
Definition at line 166 of file kcommondecoration.cpp.
int KCommonDecoration::buttonsLeftWidth | ( | ) | const [inherited] |
Definition at line 307 of file kcommondecoration.cpp.
int KCommonDecoration::buttonsRightWidth | ( | ) | const [inherited] |
Definition at line 312 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 583 of file kcommondecoration.cpp.
void KCommonDecoration::clearMask | ( | ) | [inherited] |
Definition at line 1093 of file kcommondecoration.cpp.
QRegion KCommonDecoration::cornerShape | ( | WindowCorner | corner | ) | [virtual, inherited] |
- Returns:
- the mask for the specific window corner.
Definition at line 155 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 80 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 70 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 75 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 545 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 895 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 568 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 130 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 885 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 47 of file kcommondecoration.cpp.
KCommonDecorationButton::KCommonDecorationButton | ( | ButtonType | type, | |
KCommonDecoration * | parent | |||
) | [inherited] |
Definition at line 895 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 96 of file kcommondecoration.cpp.
void KCommonDecoration::maximizeChange | ( | ) | [virtual, inherited] |
Definition at line 532 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 521 of file kcommondecoration.cpp.
void KCommonDecoration::mouseDoubleClickEvent | ( | QMouseEvent * | e | ) | [virtual, inherited] |
Definition at line 707 of file kcommondecoration.cpp.
KCommonDecoration::Position KCommonDecoration::mousePosition | ( | const QPoint & | point | ) | const [virtual, inherited] |
Definition at line 726 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.
KDecorationDefines::MaximizeMode operator & | ( | KDecorationDefines::MaximizeMode | m1, | |
KDecorationDefines::MaximizeMode | m2 | |||
) | [inline] |
Definition at line 859 of file kdecoration.h.
KDecorationDefines::MaximizeMode operator^ | ( | KDecorationDefines::MaximizeMode | m1, | |
KDecorationDefines::MaximizeMode | m2 | |||
) | [inline] |
Definition at line 853 of file kdecoration.h.
KDecorationDefines::MaximizeMode operator| | ( | KDecorationDefines::MaximizeMode | m1, | |
KDecorationDefines::MaximizeMode | m2 | |||
) | [inline] |
Definition at line 865 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 118 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 KCommonDecoration::reset | ( | unsigned long | changed | ) | [virtual, inherited] |
Handles SettingButtons, call the base implementation when subclassing this member.
Definition at line 147 of file kcommondecoration.cpp.
void KCommonDecoration::resetButtons | ( | ) | const [inherited] |
void KCommonDecoration::resize | ( | const QSize & | s | ) | [virtual, inherited] |
Definition at line 516 of file kcommondecoration.cpp.
void KCommonDecoration::resizeEvent | ( | QResizeEvent * | e | ) | [virtual, inherited] |
Definition at line 674 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] |
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] |
void KCommonDecoration::shadeChange | ( | ) | [virtual, inherited] |
Definition at line 556 of file kcommondecoration.cpp.
void KCommonDecoration::show | ( | ) | [virtual, inherited] |
Definition at line 509 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 160 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 791 of file kcommondecoration.cpp.
void KCommonDecoration::wheelEvent | ( | QWheelEvent * | e | ) | [virtual, inherited] |
Definition at line 719 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 890 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 61 of file kcommondecoration.cpp.
KCommonDecorationButton::~KCommonDecorationButton | ( | ) | [virtual, inherited] |
Definition at line 906 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.