< KWin
Revision as of 08:57, 7 April 2012 by Mgraesslin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

KWin/Class Diagram

KWin Class Diagram

The following diagrams have been created with PlantUML. The source code for the diagrams is located in scratch/graesslin/kwin-class-diagram.git Repository.


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.

Kwin uml libkwineffects.png

GL Utils

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

Kwin uml glutils.png

Decoration library

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

Kwin uml libdecoration.png


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.

Kwin uml aurorae.png


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:

Kwin uml coreeffects.png

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

Kwin uml compositor.png


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.

Kwin uml core.png


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.

Kwin uml tabbox.png


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

Kwin uml tiling.png


The Wayland support of KWin as used in the kwin-wayland branch.

Kwin uml wayland.png

What's missing?

  • XRender Utils
  • Scripting
  • Session Management

The Big Picture

And here the complete diagram with all the interactions:

Kwin uml kwin.png

This page was last edited on 7 April 2012, at 08:57. Content is available under Creative Commons License SA 4.0 unless otherwise noted.