kcommondecoration.h
165 virtual int layoutMetric(LayoutMetric lm, bool respectWindowState = true, const KCommonDecorationButton *button = 0) const;
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
void setTipText(const TQString &tip)
Set/update the button's tool tip.
Definition kcommondecoration.cpp:954
KCommonDecoration * decoration() const
Definition kcommondecoration.cpp:914
@ ManualReset
The button might want to do a full reset for some reason...
Definition kcommondecoration.h:308
void setRealizeButtons(int btns)
Set which mouse buttons the button should honor.
Definition kcommondecoration.cpp:934
bool isLeft() const
Whether the button is left of the titlebar or not.
Definition kcommondecoration.cpp:924
This class eases development of decorations by implementing parts of KDecoration which are error pron...
Definition kcommondecoration.h:60
virtual TQRegion cornerShape(WindowCorner corner)
Definition kcommondecoration.cpp:139
virtual TQString defaultButtonsRight() const =0
The default title button order on the left.
virtual bool decorationBehaviour(DecorationBehaviour behaviour) const
This controls whether some specific behaviour should be enabled or not.
Definition kcommondecoration.cpp:63
virtual KCommonDecorationButton * createButton(ButtonType type)=0
Create a new title bar button.
virtual TQString visibleName() const =0
The name of the decoration used in the decoration preview.
@ DB_ButtonHide
Hide buttons when there is not enough space in the titlebar.
Definition kcommondecoration.h:124
virtual TQString defaultButtonsLeft() const =0
The default title button order on the left.
virtual void updateCaption()
This is used to update the painting of the title bar after the caption has been changed.
Definition kcommondecoration.cpp:144
virtual void updateWindowShape()
This updates the window mask using the information provided by cornerShape().
Definition kcommondecoration.cpp:795
virtual int layoutMetric(LayoutMetric lm, bool respectWindowState=true, const KCommonDecorationButton *button=0) const
This controls the layout of the decoration in various ways.
Definition kcommondecoration.cpp:79
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
KDecoration(KDecorationBridge *bridge, KDecorationFactory *factory)
Constructs a KDecoration object.
Definition kdecoration.cpp:41
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.
KDecorationFactory * factory() const
Returns the factory that created this decoration.
Definition kdecoration.h:850
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.
Trinity API Reference