KWMTheme::KWMThemeClient Class Reference
Inheritance diagram for KWMTheme::KWMThemeClient:

Public Member Functions | |
KWMThemeClient (KDecorationBridge *b, KDecorationFactory *f) | |
~KWMThemeClient () | |
void | init () |
void | resize (const QSize &s) |
QSize | minimumSize () const |
void | borders (int &left, int &right, int &top, int &bottom) const |
Protected Slots | |
void | menuButtonPressed () |
void | slotMaximize () |
Protected Member Functions | |
void | doShape () |
void | drawTitle (QPainter &p) |
void | resizeEvent (QResizeEvent *) |
void | paintEvent (QPaintEvent *) |
void | showEvent (QShowEvent *) |
void | mouseDoubleClickEvent (QMouseEvent *) |
bool | eventFilter (QObject *o, QEvent *e) |
void | captionChange () |
void | desktopChange () |
void | maximizeChange () |
void | iconChange () |
void | activeChange () |
void | shadeChange () |
Position | mousePosition (const QPoint &) const |
Detailed Description
Definition at line 25 of file kwmthemeclient.h.
Member Function Documentation
|
|
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 876 of file kwmthemeclient.cpp. References QWidget::resize(), and 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 871 of file kwmthemeclient.cpp. References QWidget::minimumSize(), and KDecoration::widget(). |
|
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 881 of file kwmthemeclient.cpp. |
|
This function is called whenever the caption changes. Use caption() to get it. Implements KDecoration. Definition at line 408 of file kwmthemeclient.cpp. References QWidget::repaint(), 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 759 of file kwmthemeclient.cpp. References QToolTip::add(), KDecoration::isOnAllDesktops(), KWMTheme::pindownPix, KWMTheme::pinupPix, and QToolTip::remove(). |
|
This function is called whenever the maximalization state of the window changes. Use maximizeMode() to get the current state. Implements KDecoration. Definition at line 769 of file kwmthemeclient.cpp. References QToolTip::add(), KDecorationDefines::MaximizeFull, KDecoration::maximizeMode(), KWMTheme::maxPix, KWMTheme::minmaxPix, and QToolTip::remove(). |
|
This function is called whenever the window icon changes. Use icon() to get it. Implements KDecoration. Definition at line 827 of file kwmthemeclient.cpp. References KDecoration::icon(), KWMTheme::menuPix, and QIconSet::pixmap(). Referenced by init(). |
|
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 784 of file kwmthemeclient.cpp. References QWidget::update(), and KDecoration::widget(). |
|
This function is called whenever the window is shaded or unshaded. Use isShade() to get the current state. Implements KDecoration. Definition at line 48 of file kwmthemeclient.h. |
|
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 789 of file kwmthemeclient.cpp. References KWMTheme::framePixmaps, KDecoration::height(), QPixmap::height(), KDecoration::mousePosition(), KDecoration::width(), QPixmap::width(), QPoint::x(), and QPoint::y(). |
The documentation for this class was generated from the following files: