Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 420a649e6f65db30aa7451f64d08ff92 > files > 638

ghc-xmonad-contrib-devel-0.9.2-4.fc16.i686.rpm

<!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.Cross</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-Cross.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/XMonad-Layout-Cross.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.9.2: Third party extensions for xmonad</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable</td></tr><tr><th>Stability</th><td>stable</td></tr><tr><th>Maintainer</th><td>Luis Cabellos &lt;zhen.sydow@gmail.com&gt;</td></tr></table><p class="caption">XMonad.Layout.Cross</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 Cross Layout with the main window in the center.
</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:simpleCross">simpleCross</a> ::  <a href="XMonad-Layout-Cross.html#t:Cross">Cross</a> a</li><li class="src short"><span class="keyword">data</span>  <a href="#t:Cross">Cross</a> a = <a href="#v:Cross">Cross</a> {<ul class="subs"><li><a href="#v:crossProp">crossProp</a> :: !<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Rational">Rational</a></li><li><a href="#v:crossInc">crossInc</a> :: !<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Rational">Rational</a></li></ul>}</li></ul></div><div id="interface"><h1 id="g:1">Usage
</h1><div class="doc"><p>You can use this module with the following in your <code>~/.xmonad/xmonad.hs</code>:
</p><pre> import XMonad.Layout.Cross
</pre><p>Then edit your <code>layoutHook</code> by adding one of the Cross layouts:
</p><pre> myLayout =  simpleCross ||| etc..
 main = xmonad defaultConfig { layoutHook = myLayout }
</pre></div><div class="top"><p class="src"><a name="v:simpleCross" class="def">simpleCross</a> ::  <a href="XMonad-Layout-Cross.html#t:Cross">Cross</a> a<a href="src/XMonad-Layout-Cross.html#simpleCross" class="link">Source</a></p><div class="doc"><p>A simple Cross Layout. It places the focused window in the center.
   The proportion of the screen used by the main window is 4/5.
</p></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Cross" class="def">Cross</a> a <a href="src/XMonad-Layout-Cross.html#Cross" class="link">Source</a></p><div class="doc"><p>The Cross Layout draws the focused window in the center of the screen
   and part of the other windows on the sides. The <code>Shrink</code> and <code>Expand</code>
   messages increment the size of the main window.
</p><p>The focus keybindings change the center window, while other windows
   cycle through the side positions. With the Cross layout only four
   windows are shown around the focused window, two ups and two downs,
   no matter how many are in the current stack. I.e. focus down cycles the
   window below focused into the center; focus up cycles the window above.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Cross" class="def">Cross</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:crossProp" class="def">crossProp</a> :: !<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Rational">Rational</a></dt><dd class="doc"><p>Proportion of screen occupied by the main window.
</p></dd><dt class="src"><a name="v:crossInc" class="def">crossInc</a> :: !<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Rational">Rational</a></dt><dd class="doc"><p>Percent of main window to increment by when resizing.
</p></dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Cross" class="caption collapser" onclick="toggleSection('i:Cross')">Instances</p><div id="section.i:Cross" class="show"><table><tr><td class="src">LayoutClass <a href="XMonad-Layout-Cross.html#t:Cross">Cross</a> a</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Read.html#t:Read">Read</a> (<a href="XMonad-Layout-Cross.html#t:Cross">Cross</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> (<a href="XMonad-Layout-Cross.html#t:Cross">Cross</a> a)</td><td class="doc empty">&nbsp;</td></tr></table></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>