Pages
API Documentation
On this page

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)

List of all members, including inherited members

Public Types

Public Functions

Detailed Description

Member Type Documentation

[alias] KWindowShadowTile::Ptr

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()

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.