KWin::WindowPrePaintData Class

Header: #include <effect/effect.h>
CMake: find_package(KWin REQUIRED)
target_link_libraries(mytarget PRIVATE KWin::kwin)

Public Functions

Public Variables

KWin::Region deviceOpaque
KWin::Region devicePaint
int mask

Detailed Description

Member Function Documentation

void WindowPrePaintData::setTransformed()

Helper to mark that this window will be transformed

void WindowPrePaintData::setTranslucent()

Simple helper that sets data to say the window will be painted as non-opaque. Takes also care of changing the regions.

Member Variable Documentation

KWin::Region WindowPrePaintData::deviceOpaque

Region indicating the opaque content. It can be used to avoid painting windows occluded by the opaque region.

KWin::Region WindowPrePaintData::devicePaint

Region that will be painted, in device coordinates.

int WindowPrePaintData::mask