KWin/Class Diagram

From KDE Community Wiki

KWin Class Diagram

The following diagrams have been created with PlantUML.

KWinLibraries

Effects Library

The KWin effects library contains the interfaces for Effects and the EffectsHandler, which is the bridge between KWin core and the Effect System.

GL Utils

The GL Utils are part of the effects library and provide an abstraction on OpenGL for the use in KWin.

Decoration library

The decoration library provides the interfaces to write a window decoration plugin and the bridge between KWin core and the decoration plugin.

Aurorae

Aurorae is a themeable window decoration and serves here as an example for a window decoration plugin implementing the interfaces provided by the decoration library.

Compositor

The Compositor is actually part of the core and uses some of the classes provided by the gl utils library and implements the bridge between KWin core and the effects.

The Compositor consists of two parts. The first one is the implementation of the interfaces provided as a bridge between core and effect system:

The second one is the actual compositor which renders the window textures to the screen:

Core

KWin's Core is rather monolithic with the big Workspace and Client classes. It is the implementation of the window manager with the hear being the Workspace class.

TabBox

TabBox is the part of KWin core handling Alt+Tab functionality. It uses a Qt ModelView setup to manage the selection. The view can either be a normal window or be delegated to an effect.

Desktop Change OSD

The Desktop Change OSD is a small overlay shown when switching the desktop. It is rather isolated from KWin core, therefore as an own diagram.

Tiling

The Tiling classes handle the layout of the windows in the different tiling strategies.

What's missing?

  • XRender Utils
  • Scripting
  • Session Management

The Big Picture

And here the complete diagram with all the interactions: