xmonad-0.12: A tiling window manager

Copyright(c) Spencer Janssen 2007
LicenseBSD3-style (see LICENSE)
Maintainerspencerjanssen@gmail.com
Stabilityunstable
Portabilitynot portable, Typeable deriving, mtl, posix
Safe HaskellNone
LanguageHaskell98

XMonad.Layout

Description

The collection of core layouts.

Synopsis

Documentation

data Full a Source

Simple fullscreen mode. Renders the focused window fullscreen.

Constructors

Full 

data Tall a Source

The builtin tiling mode of xmonad. Supports Shrink, Expand and IncMasterN.

Constructors

Tall 

Fields

tallNMaster :: !Int

The default number of windows in the master pane (default: 1)

tallRatioIncrement :: !Rational

Percent of screen to increment by when resizing panes (default: 3/100)

tallRatio :: !Rational

Default proportion of screen occupied by master pane (default: 1/2)

newtype Mirror l a Source

Mirror a layout, compute its 90 degree rotated form.

Constructors

Mirror (l a) 

Instances

LayoutClass l a => LayoutClass (Mirror l) a Source 
Read (l a) => Read (Mirror l a) Source 
Show (l a) => Show (Mirror l a) Source 

data Resize Source

Change the size of the master pane.

Constructors

Shrink 
Expand 

Instances

data IncMasterN Source

Increase the number of clients in the master pane.

Constructors

IncMasterN !Int 

data Choose l r a Source

A layout that allows users to switch between various layout options.

Instances

(LayoutClass l a, LayoutClass r a) => LayoutClass (Choose l r) a Source 
(Read (l a), Read (r a)) => Read (Choose l r a) Source 
(Show (l a), Show (r a)) => Show (Choose l r a) Source 

(|||) :: (LayoutClass l a, LayoutClass r a) => l a -> r a -> Choose l r a infixr 5 Source

The layout choice combinator

data ChangeLayout Source

Messages to change the current layout.

Constructors

FirstLayout 
NextLayout 

mirrorRect :: Rectangle -> Rectangle Source

Mirror a rectangle.

tile Source

Arguments

:: Rational

frac, what proportion of the screen to devote to the master area

-> Rectangle

r, the rectangle representing the screen

-> Int

nmaster, the number of windows in the master pane

-> Int

n, the total number of windows to tile

-> [Rectangle] 

Compute the positions for windows using the default two-pane tiling algorithm.

The screen is divided into two panes. All clients are then partioned between these two panes. One pane, the master, by convention has the least number of windows in it.