<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>XMonad.Layout.Decoration</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[ window.onload = function () {pageLoad();setSynopsis("mini_XMonad-Layout-Decoration.html");}; //]]> </script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/XMonad-Layout-Decoration.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">xmonad-contrib-0.11: Third party extensions for xmonad</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>unportable</td></tr><tr><th>Stability</th><td>unstable</td></tr><tr><th>Maintainer</th><td>andrea.rossato@unibz.it</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">XMonad.Layout.Decoration</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Usage: </a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A layout modifier and a class for easily creating decorated layouts. </p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:decoration">decoration</a> :: (<a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a> ds a, <a href="XMonad-Layout-Decoration.html#t:Shrinker">Shrinker</a> s) => s -> <a href="XMonad-Layout-Decoration.html#t:Theme">Theme</a> -> ds a -> l a -> <a href="XMonad-Layout-LayoutModifier.html#t:ModifiedLayout">ModifiedLayout</a> (<a href="XMonad-Layout-Decoration.html#t:Decoration">Decoration</a> ds s) l a</li><li class="src short"><span class="keyword">data</span> <a href="#t:Theme">Theme</a> = <a href="#v:Theme">Theme</a> {<ul class="subs"><li><a href="#v:activeColor">activeColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li><a href="#v:inactiveColor">inactiveColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li><a href="#v:urgentColor">urgentColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li><a href="#v:activeBorderColor">activeBorderColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li><a href="#v:inactiveBorderColor">inactiveBorderColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li><a href="#v:urgentBorderColor">urgentBorderColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li><a href="#v:activeTextColor">activeTextColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li><a href="#v:inactiveTextColor">inactiveTextColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li><a href="#v:urgentTextColor">urgentTextColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li><a href="#v:fontName">fontName</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li><a href="#v:decoWidth">decoWidth</a> :: <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Dimension">Dimension</a></li><li><a href="#v:decoHeight">decoHeight</a> :: <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Dimension">Dimension</a></li><li><a href="#v:windowTitleAddons">windowTitleAddons</a> :: [(<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>, <a href="XMonad-Util-Font.html#t:Align">Align</a>)]</li><li><a href="#v:windowTitleIcons">windowTitleIcons</a> :: [([[<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a>]], <a href="XMonad-Util-Image.html#t:Placement">Placement</a>)]</li></ul>}</li><li class="src short"><a href="#v:defaultTheme">defaultTheme</a> :: <a href="XMonad-Layout-Decoration.html#t:Theme">Theme</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:Decoration">Decoration</a> ds s a</li><li class="src short"><span class="keyword">data</span> <a href="#t:DecorationMsg">DecorationMsg</a> = <a href="#v:SetTheme">SetTheme</a> <a href="XMonad-Layout-Decoration.html#t:Theme">Theme</a></li><li class="src short"><span class="keyword">class</span> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (ds a), <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (ds a), <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a) => <a href="#t:DecorationStyle">DecorationStyle</a> ds a <span class="keyword">where</span><ul class="subs"><li><a href="#v:describeDeco">describeDeco</a> :: ds a -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li><a href="#v:shrink">shrink</a> :: ds a -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a></li><li><a href="#v:decorationEventHook">decorationEventHook</a> :: ds a -> <a href="XMonad-Layout-Decoration.html#t:DecorationState">DecorationState</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Extras.html#t:Event">Event</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:decorationCatchClicksHook">decorationCatchClicksHook</a> :: ds a -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:decorationWhileDraggingHook">decorationWhileDraggingHook</a> :: ds a -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Foreign-C-Types.html#t:CInt">CInt</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Foreign-C-Types.html#t:CInt">CInt</a> -> (<a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a>, <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>) -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Position">Position</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Position">Position</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:decorationAfterDraggingHook">decorationAfterDraggingHook</a> :: ds a -> (<a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a>, <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>) -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li><a href="#v:pureDecoration">pureDecoration</a> :: ds a -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Dimension">Dimension</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Dimension">Dimension</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-StackSet.html#t:Stack">Stack</a> a -> [(a, <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>)] -> (a, <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>) -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a></li><li><a href="#v:decorate">decorate</a> :: ds a -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Dimension">Dimension</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Dimension">Dimension</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-StackSet.html#t:Stack">Stack</a> a -> [(a, <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>)] -> (a, <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>) -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>)</li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:DefaultDecoration">DefaultDecoration</a> a = <a href="#v:DefaultDecoration">DefaultDecoration</a></li><li class="src short"><span class="keyword">class</span> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> s, <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> s) => <a href="#t:Shrinker">Shrinker</a> s <span class="keyword">where</span><ul class="subs"><li><a href="#v:shrinkIt">shrinkIt</a> :: s -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> [<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>]</li></ul></li><li class="src short"><span class="keyword">data</span> <a href="#t:DefaultShrinker">DefaultShrinker</a> </li><li class="src short"><a href="#v:shrinkText">shrinkText</a> :: <a href="XMonad-Layout-Decoration.html#t:DefaultShrinker">DefaultShrinker</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:CustomShrink">CustomShrink</a> = <a href="#v:CustomShrink">CustomShrink</a></li><li class="src short"><a href="#v:shrinkWhile">shrinkWhile</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> [<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>]) -> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a>) -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:isInStack">isInStack</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-StackSet.html#t:Stack">Stack</a> a -> a -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:isVisible">isVisible</a> :: <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a> -> [<a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>] -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:isInvisible">isInvisible</a> :: <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a> -> [<a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>] -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:isWithin">isWithin</a> :: <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:fi">fi</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Prelude.html#t:Integral">Integral</a> a, <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Prelude.html#t:Num">Num</a> b) => a -> b</li><li class="src short"><a href="#v:findWindowByDecoration">findWindowByDecoration</a> :: <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a> -> <a href="XMonad-Layout-Decoration.html#t:DecorationState">DecorationState</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="XMonad-Layout-Decoration.html#t:OrigWin">OrigWin</a>, (<a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a>, <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>))</li><li class="src short">module <a href="XMonad-Layout-LayoutModifier.html">XMonad.Layout.LayoutModifier</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:DecorationState">DecorationState</a> </li><li class="src short"><span class="keyword">type</span> <a href="#t:OrigWin">OrigWin</a> = (<a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a>, <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>)</li></ul></div><div id="interface"><h1 id="g:1">Usage: </h1><div class="doc"><p>This module is intended for layout developers, who want to decorate their layouts. End users will not find here very much for them. </p><p>For examples of <code><a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a></code> instances you can have a look at <a href="XMonad-Layout-SimpleDecoration.html">XMonad.Layout.SimpleDecoration</a>, <a href="XMonad-Layout-Tabbed.html">XMonad.Layout.Tabbed</a>, <a href="XMonad-Layout-DwmStyle.html">XMonad.Layout.DwmStyle</a>, or <a href="XMonad-Layout-TabBarDecoration.html">XMonad.Layout.TabBarDecoration</a>. </p></div><div class="top"><p class="src"><a name="v:decoration" class="def">decoration</a> :: (<a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a> ds a, <a href="XMonad-Layout-Decoration.html#t:Shrinker">Shrinker</a> s) => s -> <a href="XMonad-Layout-Decoration.html#t:Theme">Theme</a> -> ds a -> l a -> <a href="XMonad-Layout-LayoutModifier.html#t:ModifiedLayout">ModifiedLayout</a> (<a href="XMonad-Layout-Decoration.html#t:Decoration">Decoration</a> ds s) l a<a href="src/XMonad-Layout-Decoration.html#decoration" class="link">Source</a></p><div class="doc"><p>A layout modifier that, with a <code><a href="XMonad-Layout-Decoration.html#t:Shrinker">Shrinker</a></code>, a <code><a href="XMonad-Layout-Decoration.html#t:Theme">Theme</a></code>, a <code><a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a></code>, and a layout, will decorate this layout according to the decoration style provided. </p><p>For some usage examples see <a href="XMonad-Layout-DecorationMadness.html">XMonad.Layout.DecorationMadness</a>. </p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Theme" class="def">Theme</a> <a href="src/XMonad-Layout-Decoration.html#Theme" class="link">Source</a></p><div class="doc"><p>A <code><a href="XMonad-Layout-Decoration.html#t:Theme">Theme</a></code> is a record of colors, font etc., to customize a <code><a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a></code>. </p><p>For a collection of <code><a href="XMonad-Layout-Decoration.html#t:Theme">Theme</a></code>s see <a href="XMonad-Util-Themes.html">XMonad.Util.Themes</a> </p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Theme" class="def">Theme</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:activeColor" class="def">activeColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>Color of the active window </p></dd><dt class="src"><a name="v:inactiveColor" class="def">inactiveColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>Color of the inactive window </p></dd><dt class="src"><a name="v:urgentColor" class="def">urgentColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>Color of the urgent window </p></dd><dt class="src"><a name="v:activeBorderColor" class="def">activeBorderColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>Color of the border of the active window </p></dd><dt class="src"><a name="v:inactiveBorderColor" class="def">inactiveBorderColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>Color of the border of the inactive window </p></dd><dt class="src"><a name="v:urgentBorderColor" class="def">urgentBorderColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>Color of the border of the urgent window </p></dd><dt class="src"><a name="v:activeTextColor" class="def">activeTextColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>Color of the text of the active window </p></dd><dt class="src"><a name="v:inactiveTextColor" class="def">inactiveTextColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>Color of the text of the inactive window </p></dd><dt class="src"><a name="v:urgentTextColor" class="def">urgentTextColor</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>Color of the text of the urgent window </p></dd><dt class="src"><a name="v:fontName" class="def">fontName</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></dt><dd class="doc"><p>Font name </p></dd><dt class="src"><a name="v:decoWidth" class="def">decoWidth</a> :: <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Dimension">Dimension</a></dt><dd class="doc"><p>Maximum width of the decorations (if supported by the <code><a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a></code>) </p></dd><dt class="src"><a name="v:decoHeight" class="def">decoHeight</a> :: <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Dimension">Dimension</a></dt><dd class="doc"><p>Height of the decorations </p></dd><dt class="src"><a name="v:windowTitleAddons" class="def">windowTitleAddons</a> :: [(<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>, <a href="XMonad-Util-Font.html#t:Align">Align</a>)]</dt><dd class="doc"><p>Extra text to appear in a window's title bar. Refer to for a use <a href="XMonad-Layout-ImageButtonDecoration.html">XMonad.Layout.ImageButtonDecoration</a> </p></dd><dt class="src"><a name="v:windowTitleIcons" class="def">windowTitleIcons</a> :: [([[<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a>]], <a href="XMonad-Util-Image.html#t:Placement">Placement</a>)]</dt><dd class="doc"><p>Extra icons to appear in a window's title bar. Inner <code>[Bool]</code> is a row in a icon bitmap. </p></dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Theme" class="caption collapser" onclick="toggleSection('i:Theme')">Instances</p><div id="section.i:Theme" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> <a href="XMonad-Layout-Decoration.html#t:Theme">Theme</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="XMonad-Layout-Decoration.html#t:Theme">Theme</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:defaultTheme" class="def">defaultTheme</a> :: <a href="XMonad-Layout-Decoration.html#t:Theme">Theme</a><a href="src/XMonad-Layout-Decoration.html#defaultTheme" class="link">Source</a></p><div class="doc"><p>The default xmonad <code><a href="XMonad-Layout-Decoration.html#t:Theme">Theme</a></code>. </p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Decoration" class="def">Decoration</a> ds s a <a href="src/XMonad-Layout-Decoration.html#Decoration" class="link">Source</a></p><div class="doc"><p>The <code><a href="XMonad-Layout-Decoration.html#t:Decoration">Decoration</a></code> <code><a href="XMonad-Layout-LayoutModifier.html#t:LayoutModifier">LayoutModifier</a></code>. This data type is an instance of the <code><a href="XMonad-Layout-LayoutModifier.html#t:LayoutModifier">LayoutModifier</a></code> class. This data type will be passed, together with a layout, to the <code><a href="XMonad-Layout-LayoutModifier.html#t:ModifiedLayout">ModifiedLayout</a></code> type constructor to modify the layout by adding decorations according to a <code><a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a></code>. </p></div><div class="subs instances"><p id="control.i:Decoration" class="caption collapser" onclick="toggleSection('i:Decoration')">Instances</p><div id="section.i:Decoration" class="show"><table><tr><td class="src">(<a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a> ds <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a>, <a href="XMonad-Layout-Decoration.html#t:Shrinker">Shrinker</a> s) => <a href="XMonad-Layout-LayoutModifier.html#t:LayoutModifier">LayoutModifier</a> (<a href="XMonad-Layout-Decoration.html#t:Decoration">Decoration</a> ds s) <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a></td><td class="doc"><p>The long <code><a href="XMonad-Layout-LayoutModifier.html#t:LayoutModifier">LayoutModifier</a></code> instance for the <code><a href="XMonad-Layout-Decoration.html#t:Decoration">Decoration</a></code> type. </p><p>In <code><a href="XMonad-Layout-LayoutModifier.html#v:redoLayout">redoLayout</a></code> we check the state: if there is no state we initialize it. </p><p>The state is <code><a href="XMonad-Layout-WindowArranger.html#v:diff">diff</a></code>ed against the list of windows produced by the underlying layout: removed windows get deleted and new ones decorated by <code>createDecos</code>, which will call <code><a href="XMonad-Layout-Decoration.html#v:decorate">decorate</a></code> to decide if a window must be given a <code><a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a></code>, in which case a decoration window will be created. </p><p>After that we resync the updated state with the windows' list and then we process the resynced stated (as we do with a new state). </p><p>First we map the decoration windows, we update each decoration to reflect any decorated window's change, and we insert, in the list of windows and rectangles returned by the underlying layout, the decoration for each window. This way xmonad will restack the decorations and their windows accordingly. At the end we remove invisible/stacked windows. </p><p>Message handling is quite simple: when needed we release the state component of the <code><a href="XMonad-Layout-Decoration.html#t:Decoration">Decoration</a></code> <code><a href="XMonad-Layout-LayoutModifier.html#t:LayoutModifier">LayoutModifier</a></code>. Otherwise we call <code>handleEvent</code>, which will call the appropriate <code><a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a></code> methods to perform its tasks. </p></td></tr><tr><td class="src">(<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> s, <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (ds a)) => <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="XMonad-Layout-Decoration.html#t:Decoration">Decoration</a> ds s a)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> s, <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (ds a)) => <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="XMonad-Layout-Decoration.html#t:Decoration">Decoration</a> ds s a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:DecorationMsg" class="def">DecorationMsg</a> <a href="src/XMonad-Layout-Decoration.html#DecorationMsg" class="link">Source</a></p><div class="doc"><p>A <code><a href="XMonad-Layout-Decoration.html#t:Decoration">Decoration</a></code> layout modifier will handle <code><a href="XMonad-Layout-Decoration.html#v:SetTheme">SetTheme</a></code>, a message to dynamically change the decoration <code><a href="XMonad-Layout-Decoration.html#t:Theme">Theme</a></code>. </p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:SetTheme" class="def">SetTheme</a> <a href="XMonad-Layout-Decoration.html#t:Theme">Theme</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:DecorationMsg" class="caption collapser" onclick="toggleSection('i:DecorationMsg')">Instances</p><div id="section.i:DecorationMsg" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="XMonad-Layout-Decoration.html#t:DecorationMsg">DecorationMsg</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:Message">Message</a> <a href="XMonad-Layout-Decoration.html#t:DecorationMsg">DecorationMsg</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (ds a), <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (ds a), <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a) => <a name="t:DecorationStyle" class="def">DecorationStyle</a> ds a <span class="keyword">where</span><a href="src/XMonad-Layout-Decoration.html#DecorationStyle" class="link">Source</a></p><div class="doc"><p>The <code><a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a></code> class, defines methods used in the implementation of the <code><a href="XMonad-Layout-Decoration.html#t:Decoration">Decoration</a></code> <code><a href="XMonad-Layout-LayoutModifier.html#t:LayoutModifier">LayoutModifier</a></code> instance. A type instance of this class is passed to the <code><a href="XMonad-Layout-Decoration.html#t:Decoration">Decoration</a></code> type in order to decorate a layout, by using these methods. </p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:describeDeco" class="def">describeDeco</a> :: ds a -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/XMonad-Layout-Decoration.html#describeDeco" class="link">Source</a></p><div class="doc"><p>The description that the <code><a href="XMonad-Layout-Decoration.html#t:Decoration">Decoration</a></code> modifier will display. </p></div><p class="src"><a name="v:shrink" class="def">shrink</a> :: ds a -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a><a href="src/XMonad-Layout-Decoration.html#shrink" class="link">Source</a></p><div class="doc"><p>Shrink the window's rectangle when applying a decoration. </p></div><p class="src"><a name="v:decorationEventHook" class="def">decorationEventHook</a> :: ds a -> <a href="XMonad-Layout-Decoration.html#t:DecorationState">DecorationState</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Extras.html#t:Event">Event</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/XMonad-Layout-Decoration.html#decorationEventHook" class="link">Source</a></p><div class="doc"><p>The decoration event hook </p></div><p class="src"><a name="v:decorationCatchClicksHook" class="def">decorationCatchClicksHook</a><a href="src/XMonad-Layout-Decoration.html#decorationCatchClicksHook" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: ds a</td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>distance from the left where the click happened on the decoration </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>distance from the right where the click happened on the decoration </p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>A hook that can be used to catch the cases when the user clicks on the decoration. If you return True here, the click event will be considered as dealt with and no further processing will take place. </p></div><p class="src"><a name="v:decorationWhileDraggingHook" class="def">decorationWhileDraggingHook</a> :: ds a -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Foreign-C-Types.html#t:CInt">CInt</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Foreign-C-Types.html#t:CInt">CInt</a> -> (<a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a>, <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>) -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Position">Position</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Position">Position</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/XMonad-Layout-Decoration.html#decorationWhileDraggingHook" class="link">Source</a></p><div class="doc"><p>This hook is called while a window is dragged using the decoration. The hook can be overwritten if a different way of handling the dragging is required. </p></div><p class="src"><a name="v:decorationAfterDraggingHook" class="def">decorationAfterDraggingHook</a> :: ds a -> (<a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a>, <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>) -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/XMonad-Layout-Decoration.html#decorationAfterDraggingHook" class="link">Source</a></p><div class="doc"><p>This hoook is called after a window has been dragged using the decoration. </p></div><p class="src"><a name="v:pureDecoration" class="def">pureDecoration</a> :: ds a -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Dimension">Dimension</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Dimension">Dimension</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-StackSet.html#t:Stack">Stack</a> a -> [(a, <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>)] -> (a, <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>) -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a><a href="src/XMonad-Layout-Decoration.html#pureDecoration" class="link">Source</a></p><div class="doc"><p>The pure version of the main method, <code><a href="XMonad-Layout-Decoration.html#v:decorate">decorate</a></code>. </p></div><p class="src"><a name="v:decorate" class="def">decorate</a> :: ds a -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Dimension">Dimension</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Dimension">Dimension</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-StackSet.html#t:Stack">Stack</a> a -> [(a, <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>)] -> (a, <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>) -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>)<a href="src/XMonad-Layout-Decoration.html#decorate" class="link">Source</a></p><div class="doc"><p>Given the theme's decoration width and height, the screen rectangle, the windows stack, the list of windows and rectangles returned by the underlying layout and window to be decorated, tupled with its rectangle, produce a <code><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#v:Just">Just</a></code> <code><a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a></code> or <code><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#v:Nothing">Nothing</a></code> if the window is not to be decorated. </p></div></div><div class="subs instances"><p id="control.i:DecorationStyle" class="caption collapser" onclick="toggleSection('i:DecorationStyle')">Instances</p><div id="section.i:DecorationStyle" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a> <a href="XMonad-Layout-Decoration.html#t:DefaultDecoration">DefaultDecoration</a> a</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a> <a href="XMonad-Layout-Tabbed.html#t:TabbedDecoration">TabbedDecoration</a> a</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a> <a href="XMonad-Layout-DwmStyle.html#t:DwmStyle">DwmStyle</a> a</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a> <a href="XMonad-Layout-SimpleDecoration.html#t:SimpleDecoration">SimpleDecoration</a> a</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a> <a href="XMonad-Layout-NoFrillsDecoration.html#t:NoFrillsDecoration">NoFrillsDecoration</a> a</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a> <a href="XMonad-Layout-TabBarDecoration.html#t:TabBarDecoration">TabBarDecoration</a> a</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a> <a href="XMonad-Layout-ButtonDecoration.html#t:ButtonDecoration">ButtonDecoration</a> a</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a> <a href="XMonad-Layout-ImageButtonDecoration.html#t:ImageButtonDecoration">ImageButtonDecoration</a> a</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a> <a href="XMonad-Layout-WindowSwitcherDecoration.html#t:ImageWindowSwitcherDecoration">ImageWindowSwitcherDecoration</a> a</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a> <a href="XMonad-Layout-WindowSwitcherDecoration.html#t:WindowSwitcherDecoration">WindowSwitcherDecoration</a> a</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:DefaultDecoration" class="def">DefaultDecoration</a> a <a href="src/XMonad-Layout-Decoration.html#DefaultDecoration" class="link">Source</a></p><div class="doc"><p>The default <code><a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a></code>, with just the default methods' implementations. </p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:DefaultDecoration" class="def">DefaultDecoration</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:DefaultDecoration" class="caption collapser" onclick="toggleSection('i:DefaultDecoration')">Instances</p><div id="section.i:DefaultDecoration" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="XMonad-Layout-Decoration.html#t:DecorationStyle">DecorationStyle</a> <a href="XMonad-Layout-Decoration.html#t:DefaultDecoration">DefaultDecoration</a> a</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="XMonad-Layout-Decoration.html#t:DefaultDecoration">DefaultDecoration</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="XMonad-Layout-Decoration.html#t:DefaultDecoration">DefaultDecoration</a> a)</td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> s, <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> s) => <a name="t:Shrinker" class="def">Shrinker</a> s <span class="keyword">where</span><a href="src/XMonad-Layout-Decoration.html#Shrinker" class="link">Source</a></p><div class="subs methods"><p class="caption">Methods</p><p class="src"><a name="v:shrinkIt" class="def">shrinkIt</a> :: s -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> [<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>]<a href="src/XMonad-Layout-Decoration.html#shrinkIt" class="link">Source</a></p></div><div class="subs instances"><p id="control.i:Shrinker" class="caption collapser" onclick="toggleSection('i:Shrinker')">Instances</p><div id="section.i:Shrinker" class="show"><table><tr><td class="src"><a href="XMonad-Layout-Decoration.html#t:Shrinker">Shrinker</a> <a href="XMonad-Layout-Decoration.html#t:DefaultShrinker">DefaultShrinker</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="XMonad-Layout-Decoration.html#t:Shrinker">Shrinker</a> <a href="XMonad-Layout-Decoration.html#t:CustomShrink">CustomShrink</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:DefaultShrinker" class="def">DefaultShrinker</a> <a href="src/XMonad-Layout-Decoration.html#DefaultShrinker" class="link">Source</a></p><div class="subs instances"><p id="control.i:DefaultShrinker" class="caption collapser" onclick="toggleSection('i:DefaultShrinker')">Instances</p><div id="section.i:DefaultShrinker" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> <a href="XMonad-Layout-Decoration.html#t:DefaultShrinker">DefaultShrinker</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="XMonad-Layout-Decoration.html#t:DefaultShrinker">DefaultShrinker</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="XMonad-Layout-Decoration.html#t:Shrinker">Shrinker</a> <a href="XMonad-Layout-Decoration.html#t:DefaultShrinker">DefaultShrinker</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:shrinkText" class="def">shrinkText</a> :: <a href="XMonad-Layout-Decoration.html#t:DefaultShrinker">DefaultShrinker</a><a href="src/XMonad-Layout-Decoration.html#shrinkText" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:CustomShrink" class="def">CustomShrink</a> <a href="src/XMonad-Layout-Decoration.html#CustomShrink" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:CustomShrink" class="def">CustomShrink</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:CustomShrink" class="caption collapser" onclick="toggleSection('i:CustomShrink')">Instances</p><div id="section.i:CustomShrink" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> <a href="XMonad-Layout-Decoration.html#t:CustomShrink">CustomShrink</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="XMonad-Layout-Decoration.html#t:CustomShrink">CustomShrink</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="XMonad-Layout-Decoration.html#t:Shrinker">Shrinker</a> <a href="XMonad-Layout-Decoration.html#t:CustomShrink">CustomShrink</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:shrinkWhile" class="def">shrinkWhile</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> [<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>]) -> (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a>) -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/XMonad-Layout-Decoration.html#shrinkWhile" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:isInStack" class="def">isInStack</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-StackSet.html#t:Stack">Stack</a> a -> a -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/XMonad-Layout-Decoration.html#isInStack" class="link">Source</a></p><div class="doc"><p>True if the window is in the <code>Stack</code>. The <code><a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a></code> comes second to facilitate list processing, even though <code>w `isInStack` s</code> won't work...;) </p></div></div><div class="top"><p class="src"><a name="v:isVisible" class="def">isVisible</a> :: <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a> -> [<a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>] -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/XMonad-Layout-Decoration.html#isVisible" class="link">Source</a></p><div class="doc"><p>Given a <code><a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a></code> and a list of <code><a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a></code>s is True if the <code><a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a></code> is not completely contained by any <code><a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a></code> of the list. </p></div></div><div class="top"><p class="src"><a name="v:isInvisible" class="def">isInvisible</a> :: <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a> -> [<a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>] -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/XMonad-Layout-Decoration.html#isInvisible" class="link">Source</a></p><div class="doc"><p>The contrary of <code><a href="XMonad-Layout-Decoration.html#v:isVisible">isVisible</a></code>. </p></div></div><div class="top"><p class="src"><a name="v:isWithin" class="def">isWithin</a> :: <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a> -> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/XMonad-Layout-Decoration.html#isWithin" class="link">Source</a></p><div class="doc"><p>True is the first <code><a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a></code> is totally within the second <code><a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a></code>. </p></div></div><div class="top"><p class="src"><a name="v:fi" class="def">fi</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Prelude.html#t:Integral">Integral</a> a, <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Prelude.html#t:Num">Num</a> b) => a -> b<a href="src/XMonad-Util-Font.html#fi" class="link">Source</a></p><div class="doc"><p>Short-hand for <code><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Prelude.html#v:fromIntegral">fromIntegral</a></code> </p></div></div><div class="top"><p class="src"><a name="v:findWindowByDecoration" class="def">findWindowByDecoration</a> :: <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a> -> <a href="XMonad-Layout-Decoration.html#t:DecorationState">DecorationState</a> -> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="XMonad-Layout-Decoration.html#t:OrigWin">OrigWin</a>, (<a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a>, <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>))<a href="src/XMonad-Layout-Decoration.html#findWindowByDecoration" class="link">Source</a></p></div><div class="top"><p class="src">module <a href="XMonad-Layout-LayoutModifier.html">XMonad.Layout.LayoutModifier</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:DecorationState" class="def">DecorationState</a> <a href="src/XMonad-Layout-Decoration.html#DecorationState" class="link">Source</a></p><div class="doc"><p>The <code><a href="XMonad-Layout-Decoration.html#t:Decoration">Decoration</a></code> state component, where the list of decorated window's is zipped with a list of decoration. A list of decoration is a list of tuples, a <code><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a></code> <code><a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a></code> and a 'Maybe Rectangle'. The <code><a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a></code> will be displayed only if the rectangle is of type <code><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Maybe.html#v:Just">Just</a></code>. </p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:OrigWin" class="def">OrigWin</a> = (<a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a>, <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Xlib-Types.html#t:Rectangle">Rectangle</a>)<a href="src/XMonad-Layout-Decoration.html#OrigWin" class="link">Source</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>