KWindowShadowTile Class
The KWindowShadowTile class provides a platform-indendent shadow tile representation. More...
Header: | #include <KWindowShadowTile> |
CMake: | find_package(KF6 REQUIRED COMPONENTS KWindowSystem) target_link_libraries(mytarget PRIVATE KF6::KWindowSystem) |
Public Functions
KWindowShadowTile() | |
bool | create() |
QImage | image() const |
bool | isCreated() const |
void | setImage(const QImage &image) |
Detailed Description
Member Function Documentation
KWindowShadowTile::KWindowShadowTile()
bool KWindowShadowTile::create()
Allocates the native platform resources associated with the KWindowShadowTile.
Normally it should not be necessary to call this method as KWindowShadow will implicitly call create() on your behalf.
Returns true
if the creation succeeded, otherwise returns false
.
QImage KWindowShadowTile::image() const
Returns the image stored in the KWindowShadowTile.
See also setImage().
bool KWindowShadowTile::isCreated() const
Returns true
if the platform resources associated with the tile have been allocated.
void KWindowShadowTile::setImage(const QImage &image)
Sets the image on the KWindowShadowTile.
Notice that once the native platform resources have been allocated for the tile, you are not allowed to change the image. In order to do so, you need to create a new tile.
See also image().