Sophie

Sophie

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

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.FlexibleManipulate</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-FlexibleManipulate.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/XMonad-Actions-FlexibleManipulate.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>stable</td></tr><tr><th>Maintainer</th><td>&lt;mgsloan@gmail.com&gt;</td></tr></table><p class="caption">XMonad.Actions.FlexibleManipulate</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>Move and resize floating windows without warping the mouse.
</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:mouseWindow">mouseWindow</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a>) -&gt; <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a> -&gt; X <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:discrete">discrete</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:linear">linear</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:resize">resize</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:position">position</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a></li></ul></div><div id="interface"><h1 id="g:1">Usage
</h1><div class="doc"><p>First, add this import to your <code>~/.xmonad/xmonad.hs</code>:
</p><pre> import qualified XMonad.Actions.FlexibleManipulate as Flex
</pre><p>Now set up the desired mouse binding, for example:
</p><pre>     , ((modm, button1), (\w -&gt; focus w &gt;&gt; Flex.mouseWindow Flex.linear w))
</pre><ul><li> Flex.<code><a href="XMonad-Actions-FlexibleManipulate.html#v:linear">linear</a></code> indicates that positions between the edges and the
   middle indicate a combination scale/position.
</li><li> Flex.<code><a href="XMonad-Actions-FlexibleManipulate.html#v:discrete">discrete</a></code> indicates that there are discrete pick
   regions. (The window is divided by thirds for each axis.)
</li><li> Flex.<code><a href="XMonad-Actions-FlexibleManipulate.html#v:resize">resize</a></code> performs only a resize of the window, based on which
   quadrant the mouse is in.
</li><li> Flex.<code><a href="XMonad-Actions-FlexibleManipulate.html#v:position">position</a></code> is similar to the built-in
   <code>XMonad.Operations.mouseMoveWindow</code>.
</li></ul><p>You can also write your own function for this parameter. It should take
 a value between 0 and 1 indicating position, and return a value indicating
 the corresponding position if plain Flex.<code><a href="XMonad-Actions-FlexibleManipulate.html#v:linear">linear</a></code> was used.
</p><p>For detailed instructions on editing your mouse bindings, see
 <a href="XMonad-Doc-Extending.html#Editing_mouse_bindings">XMonad.Doc.Extending</a>.
</p></div><div class="top"><p class="src"><a name="v:mouseWindow" class="def">mouseWindow</a> :: (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a>) -&gt; <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a> -&gt; X <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/XMonad-Actions-FlexibleManipulate.html#mouseWindow" class="link">Source</a></p><div class="doc"><p>Manipulate the window based on discrete pick regions; the window
   is divided into regions by thirds along each axis.
</p><p>Scale/reposition the window by factors obtained from the mouse
   position by linear interpolation. Dragging precisely on a corner
   resizes that corner; dragging precisely in the middle moves the
   window without resizing; anything else is an interpolation
   between the two.
</p><p>Only resize the window, based on the window quadrant the mouse is in.
</p><p>Only reposition the window.
</p><p>Given an interpolation function, implement an appropriate window
   manipulation action.
</p></div></div><div class="top"><p class="src"><a name="v:discrete" class="def">discrete</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a><a href="src/XMonad-Actions-FlexibleManipulate.html#discrete" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:linear" class="def">linear</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a><a href="src/XMonad-Actions-FlexibleManipulate.html#linear" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:resize" class="def">resize</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a><a href="src/XMonad-Actions-FlexibleManipulate.html#resize" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:position" class="def">position</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a><a href="src/XMonad-Actions-FlexibleManipulate.html#position" class="link">Source</a></p></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>