Keramik::KeramikClient Class Reference
Inheritance diagram for Keramik::KeramikClient:

Public Member Functions | |
KeramikClient (KDecorationBridge *bridge, KDecorationFactory *factory) | |
~KeramikClient () | |
virtual void | init () |
virtual void | reset (unsigned long changed) |
virtual Position | mousePosition (const QPoint &p) const |
virtual void | borders (int &left, int &right, int &top, int &bottom) const |
virtual void | resize (const QSize &s) |
virtual QSize | minimumSize () const |
virtual bool | eventFilter (QObject *o, QEvent *e) |
virtual void | activeChange () |
virtual void | captionChange () |
virtual void | maximizeChange () |
virtual void | desktopChange () |
virtual void | shadeChange () |
Detailed Description
Definition at line 139 of file keramik.h.
Member Function Documentation
|
This function is called immediately after the decoration object is created. Due to some technical reasons, initialization should be done here instead of in the constructor. Implements KDecoration. Definition at line 904 of file keramik.cpp. References KDecoration::createMainWidget(), KDecoration::keepAboveChanged(), KDecoration::keepBelowChanged(), and KDecoration::widget(). |
|
This function is called to reset the decoration on settings changes. It is usually invoked by calling KDecorationFactory::resetDecorations().
Reimplemented from KDecoration. Definition at line 977 of file keramik.cpp. References Keramik::clientHandler, KDecoration::isActive(), Keramik::KeramikHandler::largeCaptionBubbles(), and KDecoration::widget(). |
|
This function should return mouse cursor position in the decoration. Positions at the edge will result in window resizing with mouse button pressed, center position will result in moving. Implements KDecoration. Definition at line 1662 of file keramik.cpp. References Keramik::clientHandler, Keramik::KeramikHandler::grabBarHeight(), and Keramik::KeramikHandler::tile(). |
|
This function should return the distance from each window side to the inner window. The sizes may depend on the state of the decorated window, such as whether it's shaded. Decorations often turn off their bottom border when the window is shaded, and turn off their left/right/bottom borders when the window is maximized and moving and resizing of maximized windows is disabled. This function mustn't do any repaints or resizes. Also, if the sizes returned by this function don't match the real values, this may result in drawing errors or other problems.
Implements KDecoration. Definition at line 1745 of file keramik.cpp. References Keramik::clientHandler, Keramik::KeramikHandler::grabBarHeight(), KDecoration::isActive(), Keramik::KeramikHandler::largeCaptionBubbles(), KDecorationDefines::MaximizeHorizontal, KDecoration::maximizeMode(), KDecorationDefines::MaximizeVertical, KDecorationOptions::moveResizeMaximizedWindows(), KDecoration::options(), Keramik::KeramikHandler::tile(), and Keramik::KeramikHandler::titleBarHeight(). |
|
This method is called by kwin when the style should resize the decoration window. The usual implementation is to resize the main widget of the decoration to the given size.
Implements KDecoration. Definition at line 1739 of file keramik.cpp. References KDecoration::widget(). |
|
This function should return the minimum required size for the decoration. Note that the returned size shouldn't be too large, because it will be used to keep the decorated window at least as large. Implements KDecoration. Definition at line 1768 of file keramik.cpp. References KDecoration::widget(). |
|
This function is called whenever the window either becomes or stops being active. Use isActive() to find out the current state. Implements KDecoration. Definition at line 1366 of file keramik.cpp. References KDecoration::isActive(), and KDecoration::widget(). |
|
This function is called whenever the caption changes. Use caption() to get it. Implements KDecoration. Definition at line 1335 of file keramik.cpp. References KDecoration::widget(). |
|
This function is called whenever the maximalization state of the window changes. Use maximizeMode() to get the current state. Implements KDecoration. Definition at line 1387 of file keramik.cpp. References Keramik::clientHandler, Keramik::KeramikHandler::largeCaptionBubbles(), KDecorationDefines::MaximizeFull, KDecoration::maximizeMode(), KDecorationDefines::MaximizeVertical, and KDecoration::widget(). |
|
This function is called whenever the desktop for the window changes. Use desktop() or isOnAllDesktops() to find out the current desktop on which the window is. Implements KDecoration. Definition at line 1422 of file keramik.cpp. References KDecoration::isOnAllDesktops(). |
|
This function is called whenever the window is shaded or unshaded. Use isShade() to get the current state. Implements KDecoration. Definition at line 1433 of file keramik.cpp. References KDecoration::isSetShade(). |
The documentation for this class was generated from the following files: