kdecoration.cpp
63 setMainWidget( new TQWidget( initialParentWidget(), "decoration widget", initialWFlags() | flags ));
423 KDecorationOptions::BorderSize KDecorationOptions::preferredBorderSize( KDecorationFactory* factory ) const
437 KDecorationDefines::WindowOperation KDecorationOptions::operationMaxButtonClick( TQt::ButtonState button ) const
ColorType
Basic color types that should be recognized by all decoration styles.
Definition: kdecoration.h:113
This class holds various configuration settings for the decoration.
Definition: kdecoration.h:191
const TQColor & color(ColorType type, bool active=true) const
Returns the color that should be used for the given part of the decoration.
Definition: kdecoration.cpp:378
const TQFont & font(bool active=true, bool small=false) const
Returns the active or inactive decoration font.
Definition: kdecoration.cpp:383
bool customButtonPositions() const
Returns true if the style should use custom button positions The changed flags for this setting is Se...
Definition: kdecoration.cpp:403
BorderSize preferredBorderSize(KDecorationFactory *factory) const
The preferred border size selected by the user, e.g.
Definition: kdecoration.cpp:423
TQString titleButtonsRight() const
If customButtonPositions() returns true, titleButtonsRight returns which buttons should be on the rig...
Definition: kdecoration.cpp:413
TQString titleButtonsLeft() const
If customButtonPositions() returns true, titleButtonsLeft returns which buttons should be on the left...
Definition: kdecoration.cpp:408
const TQColorGroup & colorGroup(ColorType type, bool active=true) const
Returns a colorgroup using the given decoration color as the background.
Definition: kdecoration.cpp:391
void processMousePressEvent(TQMouseEvent *e)
This function is the default handler for mouse events.
Definition: kdecoration.cpp:174
virtual bool drawbound(const TQRect &geom, bool clear)
This function may be reimplemented to provide custom bound drawing for transparent moving or resizing...
Definition: kdecoration.cpp:297
static const KDecorationOptions * options()
Returns the KDecorationOptions object, which is used to access configuration settings for the decorat...
Definition: kdecoration.cpp:55
virtual void reset(unsigned long changed)
This function is called to reset the decoration on settings changes.
Definition: kdecoration.cpp:317
bool isMinimizable() const
Returns true if the decorated window can be minimized by the user.
Definition: kdecoration.cpp:104
KDecoration(KDecorationBridge *bridge, KDecorationFactory *factory)
Constructs a KDecoration object.
Definition: kdecoration.cpp:41
void closeWindow()
This function can be called by the decoration to request closing of the decorated window.
Definition: kdecoration.cpp:234
TQIconSet icon() const
Returns an icon set with the decorated window's icon.
Definition: kdecoration.cpp:164
void performWindowOperation(WindowOperation op)
This function performs the given window operation.
Definition: kdecoration.cpp:189
bool isModal() const
Returns true if the decoration window is modal (usually a modal dialog).
Definition: kdecoration.cpp:119
MaximizeMode maximizeMode() const
Returns the current maximization mode of the decorated window.
Definition: kdecoration.cpp:99
bool keepAbove() const
Returns true if the decorated window should be kept above other windows.
Definition: kdecoration.cpp:139
bool isPreview() const
If this function returns true, the decorated window is used as a preview e.g.
Definition: kdecoration.cpp:204
TQString caption() const
Returns the decorated window's caption that should be shown in the titlebar.
Definition: kdecoration.cpp:169
bool isShadeable() const
Returns true if the decorated window can be shaded.
Definition: kdecoration.cpp:124
bool isSetShade() const
Returns true if the decorated window was set to be shaded.
Definition: kdecoration.cpp:134
void showWindowMenu(const TQRect &pos)
This function invokes the window operations menu.
Definition: kdecoration.cpp:179
TQRect iconGeometry() const
Returns the icon geometry for the window, i.e.
Definition: kdecoration.cpp:214
virtual bool animateMinimize(bool minimize)
This function may be reimplemented to provide custom minimize/restore animations The reimplementation...
Definition: kdecoration.cpp:302
bool keepBelow() const
Returns true if the decorated window should be kept below other windows.
Definition: kdecoration.cpp:144
WId windowId() const
Returns the handle of the window that is being decorated.
Definition: kdecoration.cpp:229
TQRegion unobscuredRegion(const TQRegion &r) const
Returns the intersection of the given region with the region left unobscured by the windows stacked a...
Definition: kdecoration.cpp:219
bool isMaximizable() const
Returns true if the decorated window can be maximized.
Definition: kdecoration.cpp:94
TQWidget * initialParentWidget() const
The parent widget that should be used for the main widget.
Definition: kdecoration.cpp:74
int height() const
Convenience function that returns the height of the decoration.
Definition: kdecoration.h:885
bool isActive() const
Returns true if the decorated window is currently active.
Definition: kdecoration.cpp:84
void setKeepAbove(bool set)
Sets or reset keeping this window above others.
Definition: kdecoration.cpp:287
void createMainWidget(TQt::WFlags flags=0)
Convenience functions that creates and sets a main widget as necessary.
Definition: kdecoration.cpp:60
KDecorationFactory * factory() const
Returns the factory that created this decoration.
Definition: kdecoration.h:870
void setKeepBelow(bool set)
Sets or reset keeping this window below others.
Definition: kdecoration.cpp:292
void ungrabXServer()
Ungrabs X server (if the number of ungrab attempts matches the number of grab attempts).
Definition: kdecoration.cpp:326
void titlebarDblClickOperation()
This function performs the operation configured as titlebar double click operation.
Definition: kdecoration.cpp:272
TQt::WFlags initialWFlags() const
The flags that should be used when creating the main widget.
Definition: kdecoration.cpp:79
bool providesContextHelp() const
Return true if the decorated window can show context help (i.e.
Definition: kdecoration.cpp:109
int desktop() const
Returns the number of the virtual desktop the decorated window is currently on (including NET::OnAllD...
Definition: kdecoration.cpp:114
void helperShowHide(bool show)
This function is only allowed to be called once from animateMinimize().
Definition: kdecoration.cpp:312
bool isShade() const
Returns true if the decorated window is currently shaded.
Definition: kdecoration.cpp:129
bool isCloseable() const
Returns true if the decoration window can be closed by the user.
Definition: kdecoration.cpp:89
bool isMovable() const
Returns true if the decorated window can be moved by the user.
Definition: kdecoration.cpp:149
bool isOnAllDesktops() const
Convenience function that returns true if the window is on all virtual desktops.
Definition: kdecoration.h:875
void setMask(const TQRegion ®, int mode=0)
If the decoration is non-rectangular, this function needs to be called to set the shape of the decora...
Definition: kdecoration.cpp:194
bool isResizable() const
Returns true if the decorated window can be resized by the user.
Definition: kdecoration.cpp:154
void titlebarMouseWheelOperation(int delta)
This function performs the operation configured as titlebar wheel mouse operation.
Definition: kdecoration.cpp:277
void toggleOnAllDesktops()
This function toggles the on-all-desktops state of the decorated window.
Definition: kdecoration.cpp:264
NET::WindowType windowType(unsigned long supported_types) const
This function returns the window type of the decorated window.
Definition: kdecoration.cpp:159
virtual Position mousePosition(const TQPoint &p) const =0
This function should return mouse cursor position in the decoration.
Definition: kdecoration.cpp:331
int width() const
Convenience function that returns the width of the decoration.
Definition: kdecoration.h:880
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.
void setMainWidget(TQWidget *)
This should be the first function called in init() to specify the main widget of the decoration.
Definition: kdecoration.cpp:66