kcommondecoration.h
125 };
165 virtual int layoutMetric(LayoutMetric lm, bool respectWindowState = true, const KCommonDecorationButton *button = 0) const;
308 ManualReset = 1 << 0,
309 SizeChange = 1 << 1,
310 ToggleChange = 1 << 2,
311 StateChange = 1 << 3,
312 IconChange = 1 << 4,
314 };
Title bar buttons of KCommonDecoration need to inherit this class.
Definition: kcommondecoration.h:293
virtual void reset(unsigned long changed)=0
Initialize the button after size change etc.
ButtonState lastMousePress() const
The mouse button that has been clicked last time.
Definition: kcommondecoration.h:349
This class eases development of decorations by implementing parts of KDecoration which are error pron...
Definition: kcommondecoration.h:60
virtual TQString defaultButtonsRight() const =0
The default title button order on the left.
virtual TQString visibleName() const =0
The name of the decoration used in the decoration preview.
virtual KCommonDecorationButton * createButton(ButtonType type)=0
Create a new title bar button.
virtual TQString defaultButtonsLeft() const =0
The default title button order on the left.
virtual void iconChange()=0
This function is called whenever the window icon changes.
virtual void reset(unsigned long changed)
This function is called to reset the decoration on settings changes.
Definition: kdecoration.cpp:317
virtual void desktopChange()=0
This function is called whenever the desktop for the window changes.
virtual void resize(const TQSize &s)=0
This method is called by twin when the style should resize the decoration window.
virtual void init()=0
This function is called immediately after the decoration object is created.
virtual void captionChange()=0
This function is called whenever the caption changes.
virtual void shadeChange()=0
This function is called whenever the window is shaded or unshaded.
virtual void maximizeChange()=0
This function is called whenever the maximalization state of the window changes.
virtual void activeChange()=0
This function is called whenever the window either becomes or stops being active.
virtual Position mousePosition(const TQPoint &p) const =0
This function should return mouse cursor position in the decoration.
Definition: kdecoration.cpp:331
virtual void borders(int &left, int &right, int &top, int &bottom) const =0
This function should return the distance from each window side to the inner window.
virtual TQSize minimumSize() const =0
This function should return the minimum required size for the decoration.