Sophie

Sophie

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

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.Actions.MouseResize</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-Actions-MouseResize.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/XMonad-Actions-MouseResize.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>unportable</td></tr><tr><th>Stability</th><td>unstable</td></tr><tr><th>Maintainer</th><td>andrea.rossato@unibz.it</td></tr></table><p class="caption">XMonad.Actions.MouseResize</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 to resize windows with the mouse by grabbing the
 window's lower right corner.
</p><p>This module must be used together with <a href="XMonad-Layout-WindowArranger.html">XMonad.Layout.WindowArranger</a>.
</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:mouseResize">mouseResize</a> ::  l a -&gt; <a href="XMonad-Layout-LayoutModifier.html#t:ModifiedLayout">ModifiedLayout</a> <a href="XMonad-Actions-MouseResize.html#t:MouseResize">MouseResize</a> l a</li><li class="src short"><span class="keyword">data</span>  <a href="#t:MouseResize">MouseResize</a> a = <a href="#v:MR">MR</a> [((a, <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Xlib.html#t:Rectangle">Rectangle</a>), <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> a)]</li></ul></div><div id="interface"><h1 id="g:1">Usage:
</h1><div class="doc"><p>Usually this module is used to create layouts, but you can also use
 it to resize windows in any layout, together with the
 <a href="XMonad-Layout-WindowArranger.html">XMonad.Layout.WindowArranger</a>. For usage example see
 <a href="XMonad-Layout-SimpleFloat.html">XMonad.Layout.SimpleFloat</a> or <a href="XMonad-Layout-DecorationMadness.html">XMonad.Layout.DecorationMadness</a>.
</p><p>You can use this module with the following in your
 <code>~/.xmonad/xmonad.hs</code>:
</p><pre> import XMonad.Actions.MouseResize
 import XMonad.Layout.WindowArranger
</pre><p>Then edit your <code>layoutHook</code> by modifying a given layout:
</p><pre> myLayout = mouseResize $ windowArrange $ layoutHook defaultConfig
</pre><p>and then:
</p><pre> main = xmonad defaultConfig { layoutHook = myLayout }
</pre><p>For more detailed instructions on editing the layoutHook see:
</p><p><a href="XMonad-Doc-Extending.html#Editing_the_layout_hook">XMonad.Doc.Extending</a>
</p></div><div class="top"><p class="src"><a name="v:mouseResize" class="def">mouseResize</a> ::  l a -&gt; <a href="XMonad-Layout-LayoutModifier.html#t:ModifiedLayout">ModifiedLayout</a> <a href="XMonad-Actions-MouseResize.html#t:MouseResize">MouseResize</a> l a<a href="src/XMonad-Actions-MouseResize.html#mouseResize" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:MouseResize" class="def">MouseResize</a> a <a href="src/XMonad-Actions-MouseResize.html#MouseResize" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:MR" class="def">MR</a> [((a, <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Xlib.html#t:Rectangle">Rectangle</a>), <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> a)]</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:MouseResize" class="caption collapser" onclick="toggleSection('i:MouseResize')">Instances</p><div id="section.i:MouseResize" class="show"><table><tr><td class="src"><a href="XMonad-Layout-LayoutModifier.html#t:LayoutModifier">LayoutModifier</a> <a href="XMonad-Actions-MouseResize.html#t:MouseResize">MouseResize</a> <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</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-Actions-MouseResize.html#t:MouseResize">MouseResize</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-Actions-MouseResize.html#t:MouseResize">MouseResize</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>