aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Layout/ResizableTile.hs
diff options
context:
space:
mode:
authorAdam Vogt <vogt.adam@gmail.com>2009-05-19 04:42:58 +0200
committerAdam Vogt <vogt.adam@gmail.com>2009-05-19 04:42:58 +0200
commit2613fecd6383109f9c01c35b669ea265464d30a6 (patch)
tree107223c3676322233af1d06a435dd955e2116c16 /XMonad/Layout/ResizableTile.hs
parented4aef021d695192bb13319dbb8471c1200d43cb (diff)
downloadXMonadContrib-2613fecd6383109f9c01c35b669ea265464d30a6.tar.gz
XMonadContrib-2613fecd6383109f9c01c35b669ea265464d30a6.tar.xz
XMonadContrib-2613fecd6383109f9c01c35b669ea265464d30a6.zip
L.ResizableTile document ResizableTall parameters with records
Ignore-this: a29502bc1302f18b9ae0062105a0e109 darcs-hash:20090519024258-1499c-fa659cb2974364826458904073b79ab7b82f882d.gz
Diffstat (limited to 'XMonad/Layout/ResizableTile.hs')
-rw-r--r--XMonad/Layout/ResizableTile.hs15
1 files changed, 14 insertions, 1 deletions
diff --git a/XMonad/Layout/ResizableTile.hs b/XMonad/Layout/ResizableTile.hs
index 11411fb..e0330f6 100644
--- a/XMonad/Layout/ResizableTile.hs
+++ b/XMonad/Layout/ResizableTile.hs
@@ -53,7 +53,20 @@ import Data.List ((\\))
data MirrorResize = MirrorShrink | MirrorExpand deriving Typeable
instance Message MirrorResize
-data ResizableTall a = ResizableTall Int Rational Rational [Rational] deriving (Show, Read)
+data ResizableTall a = ResizableTall
+ { _nmaster :: Int -- ^ number of master windows
+ , _delta :: Rational -- ^ change when resizing by 'Shrink', 'Expand',
+ -- 'MirrorShrink', 'MirrorExpand'
+ , _frac :: Rational -- ^ width of master
+ , _slaves :: [Rational] -- ^ fraction to multiply the window
+ -- height that would be given when divided equally.
+ --
+ -- slave windows are assigned their modified
+ -- heights in order, from top to bottom
+ --
+ -- unspecified values are replaced by 1
+ } deriving (Show, Read)
+
instance LayoutClass ResizableTall a where
doLayout (ResizableTall nmaster _ frac mfrac) r =
return . (\x->(x,Nothing)) .