KWindowSystem
kwindowshadow.h
68 * The KWindowShadow is composed of multiple tiles. The top left tile, the top right tile, the bottom
69 * left tile, and the bottom right tile are rendered as they are. The top tile and the bottom tile are
70 * stretched in x direction; the left tile and the right tile are stretched in y direction. Several
71 * KWindowShadow objects can share shadow tiles to reduce memory usage. You have to specify padding()
72 * along the shadow tiles. The padding values indicate how much the KWindowShadow sticks outside the
75 * Once the KWindowShadow is created, you're not allowed to attach or detach any shadow tiles, change
76 * padding(), or change window(). In order to do so, you have to destroy() the shadow first, update
void setImage(const QImage &image)
Sets the image on the KWindowShadowTile.
Definition kwindowshadow.cpp:32
QImage image() const
Returns the image stored in the KWindowShadowTile.
Definition kwindowshadow.cpp:27
bool isCreated() const
Returns true if the platform resources associated with the tile have been allocated.
Definition kwindowshadow.cpp:43
bool create()
Allocates the native platform resources associated with the KWindowShadowTile.
Definition kwindowshadow.cpp:48
KWindowShadowTile::Ptr rightTile() const
Returns the right tile attached to the KWindowShadow.
Definition kwindowshadow.cpp:136
void setBottomLeftTile(KWindowShadowTile::Ptr tile)
Attaches the bottom-left tile to the KWindowShadow.
Definition kwindowshadow.cpp:192
bool create()
Allocates the platform resources associated with the KWindowShadow.
Definition kwindowshadow.cpp:243
void setWindow(QWindow *window)
Sets the window behind which the KWindowShadow will be rendered.
Definition kwindowshadow.cpp:226
QWindow * window() const
Returns the window behind which the KWindowShadow will be rendered.
Definition kwindowshadow.cpp:221
bool isCreated() const
Returns true if the platform resources associated with the shadow have been allocated.
Definition kwindowshadow.cpp:238
void setRightTile(KWindowShadowTile::Ptr tile)
Attaches the right tile to the KWindowShadow.
Definition kwindowshadow.cpp:141
KWindowShadowTile::Ptr topLeftTile() const
Returns the top-left tile attached to the KWindowShadow.
Definition kwindowshadow.cpp:85
void setTopRightTile(KWindowShadowTile::Ptr tile)
Attaches the top-right tile to the KWindowShadow.
Definition kwindowshadow.cpp:124
KWindowShadowTile::Ptr bottomLeftTile() const
Returns the bottom-left tile attached to the KWindowShadow.
Definition kwindowshadow.cpp:187
void destroy()
Releases the platform resources associated with the KWindowShadow.
Definition kwindowshadow.cpp:261
void setBottomTile(KWindowShadowTile::Ptr tile)
Attaches the bottom tile to the KWindowShadow.
Definition kwindowshadow.cpp:175
void setBottomRightTile(KWindowShadowTile::Ptr tile)
Attaches the bottom-right tile to the KWindowShadow.
Definition kwindowshadow.cpp:158
void setTopLeftTile(KWindowShadowTile::Ptr tile)
Attaches the top-left tile to the KWindowShadow.
Definition kwindowshadow.cpp:90
KWindowShadowTile::Ptr topTile() const
Returns the top tile attached to the KWindowShadow.
Definition kwindowshadow.cpp:102
KWindowShadowTile::Ptr leftTile() const
Returns the left tile attached to the KWindowShadow.
Definition kwindowshadow.cpp:68
KWindowShadowTile::Ptr bottomRightTile() const
Returns the bottom-right tile attached to the KWindowShadow.
Definition kwindowshadow.cpp:153
void setTopTile(KWindowShadowTile::Ptr tile)
Attaches the top tile to the KWindowShadow.
Definition kwindowshadow.cpp:107
void setLeftTile(KWindowShadowTile::Ptr tile)
Attaches the left tile to the KWindowShadow.
Definition kwindowshadow.cpp:73
KWindowShadowTile::Ptr topRightTile() const
Returns the top-right tile attached to the KWindowShadow.
Definition kwindowshadow.cpp:119
KWindowShadowTile::Ptr bottomTile() const
Returns the bottom tile attached to the KWindowShadow.
Definition kwindowshadow.cpp:170
void setPadding(const QMargins &padding)
Sets the padding on the KWindowShadow.
Definition kwindowshadow.cpp:209
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:08 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:08 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.