xmonad-contrib-0.18.1: Community-maintained extensions for xmonad
Copyright(c) 2007 Andrea Rossato 2009 Jan Vornberger 2023 Ilya Portnov
LicenseBSD-style (see xmonad/LICENSE)
Maintainerportnov84@rambler.ru
Stabilityunstable
Portabilityunportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

XMonad.Layout.DecorationEx.Geometry

Description

This module defines DecorationGeometry type class, and default implementation for it.

Synopsis

Documentation

class (Read (geom a), Show (geom a), Eq a) => DecorationGeometry geom a where Source #

Decoration geometry class. Decoration geometry is responsible for placement of window decorations: whether they should be on the top of the window or on the bottom, should they go for full window width or only be of certain width, etc. This does not know what will be drawn inside decorations.

Minimal complete definition

describeGeometry, pureDecoration

Methods

describeGeometry :: geom a -> String Source #

Give a name to decoration geometry implementation.

shrinkWindow :: geom a -> Rectangle -> Rectangle -> Rectangle Source #

Reduce original window size to make space for decoration, if necessary.

pureDecoration Source #

Arguments

:: geom a

Decoration geometry instance

-> Rectangle

Screen rectangle

-> Stack a

Current stack of windows being displayed

-> [(a, Rectangle)]

Set of all windows with their corresponding rectangle

-> (a, Rectangle)

Window being decorated and its rectangle

-> Maybe Rectangle 

The pure version of the main method, decorate. The method should return a rectangle where to place window decoration, or Nothing if this window is not to be decorated.

decorateWindow Source #

Arguments

:: geom a

Decoration geometry instance

-> Rectangle

Screen rectangle

-> Stack a

Current stack of windows being displayed

-> [(a, Rectangle)]

Set of all windows with their corresponding rectangle

-> (a, Rectangle)

Window being decorated and its rectangle

-> X (Maybe Rectangle) 

The method should return a rectangle where to place window decoration, or Nothing if this window is not to be decorated.

Instances

Instances details
DecorationGeometry DwmGeometry Window Source # 
Instance details

Defined in XMonad.Layout.DecorationEx.DwmGeometry

Eq a => DecorationGeometry DefaultGeometry a Source # 
Instance details

Defined in XMonad.Layout.DecorationEx.Geometry

DecorationGeometry TabbedGeometry Window Source # 
Instance details

Defined in XMonad.Layout.DecorationEx.TabbedGeometry

newtype DefaultGeometry a Source #

Data type for default implementation of DecorationGeometry. This defines simple decorations: a horizontal bar at the top of each window, running for full width of the window.