xmonad-contrib-0.5: Third party extensions for xmonadSource codeContentsIndex
XMonad.Layout.LayoutModifier
Portabilityportable
Stabilityunstable
MaintainerDavid Roundy <droundy@darcs.net>
Contents
Usage
Description
A module for writing easy Llayouts and layout modifiers
Synopsis
class (Show (m a), Read (m a)) => LayoutModifier m a where
handleMess :: m a -> SomeMessage -> X (Maybe (m a))
handleMessOrMaybeModifyIt :: m a -> SomeMessage -> X (Maybe (Either (m a) SomeMessage))
redoLayout :: m a -> Rectangle -> Stack a -> [(a, Rectangle)] -> X ([(a, Rectangle)], Maybe (m a))
hook :: m a -> X ()
unhook :: m a -> X ()
modifierDescription :: m a -> String
data ModifiedLayout m l a = ModifiedLayout (m a) (l a)
Usage

Use LayoutModifier to help write easy Layouts.

LayouModifier defines a class LayoutModifier. Each method as a default implementation.

For usage examples you can see XMonad.Layout.WorkspaceDir, XMonad.Layout.Magnifier, XMonad.Layout.NoBorder,

class (Show (m a), Read (m a)) => LayoutModifier m a whereSource
Methods
handleMess :: m a -> SomeMessage -> X (Maybe (m a))Source
handleMessOrMaybeModifyIt :: m a -> SomeMessage -> X (Maybe (Either (m a) SomeMessage))Source
redoLayout :: m a -> Rectangle -> Stack a -> [(a, Rectangle)] -> X ([(a, Rectangle)], Maybe (m a))Source
hook :: m a -> X ()Source
unhook :: m a -> X ()Source
modifierDescription :: m a -> StringSource
show/hide Instances
data ModifiedLayout m l a Source
Constructors
ModifiedLayout (m a) (l a)
show/hide Instances
(LayoutModifier m a, LayoutClass l a) => LayoutClass (ModifiedLayout m l) a
(Read (m a), Read (l a)) => Read (ModifiedLayout m l a)
(Show (m a), Show (l a)) => Show (ModifiedLayout m l a)
Produced by Haddock version 2.3.0