dots-of-war/files/.surf/cache/WebKitCache/Version 16/Blobs/89E1E18AF0AAE43B3F4BF488E610C6933DCDCE1A

6 lines
16 KiB
Text
Raw Normal View History

2020-03-19 11:03:08 +00:00
<!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.ResizableTile</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/XMonad.Layout.ResizableTile.html">Source</a></li><li><a href="/package/xmonad-contrib-0.16">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">xmonad-contrib-0.16: Third party extensions for xmonad</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>(c) MATSUYAMA Tomohiro &lt;t.matsuyama.pub@gmail.com&gt;</td></tr><tr><th>License</th><td>BSD-style (see LICENSE)</td></tr><tr><th>Maintainer</th><td>MATSUYAMA Tomohiro &lt;t.matsuyama.pub@gmail.com&gt;</td></tr><tr><th>Stability</th><td>unstable</td></tr><tr><th>Portability</th><td>unportable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">XMonad.Layout.ResizableTile</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>More useful tiled layout that allows you to change a width/height of window.</p></div></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><span class="keyword">data</span> <a href="#t:ResizableTall">ResizableTall</a> a = <a href="#v:ResizableTall">ResizableTall</a> {<ul class="subs"><li><a href="#v:_nmaster">_nmaster</a> :: <a href="XMonad-Config-Prime.html#t:Int" title="XMonad.Config.Prime">Int</a></li><li><a href="#v:_delta">_delta</a> :: <a href="XMonad-Config-Prime.html#t:Rational" title="XMonad.Config.Prime">Rational</a></li><li><a href="#v:_frac">_frac</a> :: <a href="XMonad-Config-Prime.html#t:Rational" title="XMonad.Config.Prime">Rational</a></li><li><a href="#v:_slaves">_slaves</a> :: [<a href="XMonad-Config-Prime.html#t:Rational" title="XMonad.Config.Prime">Rational</a>]</li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:MirrorResize">MirrorResize</a><ul class="subs"><li>= <a href="#v:MirrorShrink">MirrorShrink</a></li><li>| <a href="#v:MirrorExpand">MirrorExpand</a></li></ul></li></ul></details></div><div id="interface"><a href="#g:1" id="g:1"><h1>Usage</h1></a><div class="doc"><p>You can use this module with the following in your <code>~/.xmonad/xmonad.hs</code>:</p><pre>import XMonad.Layout.ResizableTile</pre><p>Then edit your <code>layoutHook</code> by adding the ResizableTile layout:</p><pre>myLayout = ResizableTall 1 (3/100) (1/2) [] ||| etc..
main = xmonad def { 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><p>You may also want to add the following key bindings:</p><pre>, ((modm, xK_a), sendMessage MirrorShrink)
, ((modm, xK_z), sendMessage MirrorExpand)</pre><p>For detailed instruction on editing the key binding see:</p><p><a href="XMonad-Doc-Extending.html#Editing_key_bindings">XMonad.Doc.Extending</a>.</p></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ResizableTall" class="def">ResizableTall</a> a <a href="src/XMonad.Layout.ResizableTile.html#ResizableTall" class="link">Source</a> <a href="#t:ResizableTall" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ResizableTall" class="def">ResizableTall</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:_nmaster" class="def">_nmaster</a> :: <a href="XMonad-Config-Prime.html#t:Int" title="XMonad.Config.Prime">Int</a></dfn><div class="doc"><p>number of master windows</p></div></li><li><dfn class="src"><a id="v:_delta" class="def">_delta</a> :: <a href="XMonad-Config-Prime.html#t:Rational" title="XMonad.Config.Prime">Rational</a></dfn><div class="doc"><p>change when resizing by <code><a href="XMonad-Config-Prime.html#v:Shrink" title="XMonad.Config.Prime">Shrink</a></code>, <code><a href="XMonad-Config-Prime.html#v:Expand" title="XMonad.Config.Prime">Expand</a></code>,
<code><a href="XMonad-Layout-ResizableTile.html#v:MirrorShrink" title="XMonad.Layout.ResizableTile">MirrorShrink</a></code>, <code><a href="XMonad-Layout-ResizableTile.html#v:MirrorExpand" title="XMonad.Layout.ResizableTile">MirrorExpand</a></code></p></div></li><li><dfn class="src"><a id="v:_frac" class="def">_frac</a> :: <a href="XMonad-Config-Prime.html#t:Rational" title="XMonad.Config.Prime">Rational</a></dfn><div class="doc"><p>width of master</p></div></li><li><dfn class="src"><a id="v:_slaves" class="def">_slaves</a> :: [<a href="XMonad-Config-Prime.html#t:Rational" title="XMonad.Config.Prime">Rational</a>]</dfn><div class="doc"><p>fraction to multiply the window
height that would be given when divided equally.</p><p>slave windows are assigned their modified
heights in order, from top to bottom</p><p>unspecified values are replaced by 1</p></div></li></ul></div></td></tr></table></div><div class="subs instances"><details id="i:ResizableTall" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:ResizableTall:LayoutClass:1"></span> <a href="XMonad-Config-Prime.html#t:LayoutClass" title="XMonad.Config.Prime">LayoutClass</a> <a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a</span> <a href="src/XMonad.Layout.ResizableTile.html#line-69" class="link">Source</a> <a href="#t:ResizableTall" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><details id="i:id:ResizableTall:LayoutClass:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="XMonad-Layout-ResizableTile.html">XMonad.Layout.ResizableTile</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:runLayout">runLayout</a> :: <a href="/package/xmonad-0.15/docs/XMonad-StackSet.html#t:Workspace" title="XMonad.StackSet">Workspace</a> <a href="XMonad-Config-Prime.html#t:WorkspaceId" title="XMonad.Config.Prime">WorkspaceId</a> (<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a) a -&gt; <a href="XMonad-Config-Prime.html#t:Rectangle" title="XMonad.Config.Prime">Rectangle</a> -&gt; <a href="XMonad-Config-Prime.html#t:X" title="XMonad.Config.Prime">X</a> ([(a, <a href="XMonad-Config-Prime.html#t:Rectangle" title="XMonad.Config.Prime">Rectangle</a>)], <a href="XMonad-Config-Prime.html#t:Maybe" title="XMonad.Config.Prime">Maybe</a> (<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a)) <a href="#v:runLayout" class="selflink">#</a></p><p class="src"><a href="#v:doLayout">doLayout</a> :: <a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a -&gt; <a href="XMonad-Config-Prime.html#t:Rectangle" title="XMonad.Config.Prime">Rectangle</a> -&gt; <a href="/package/xmonad-0.15/docs/XMonad-StackSet.html#t:Stack" title="XMonad.StackSet">Stack</a> a -&gt; <a href="XMonad-Config-Prime.html#t:X" title="XMonad.Config.Prime">X</a> ([(a, <a href="XMonad-Config-Prime.html#t:Rectangle" title="XMonad.Config.Prime">Rectangle</a>)], <a href="XMonad-Config-Prime.html#t:Maybe" title="XMonad.Config.Prime">Maybe</a> (<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a)) <a href="#v:doLayout" class="selflink">#</a></p><p class="src"><a href="#v:pureLayout">pureLayout</a> :: <a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a -&gt; <a href="XMonad-Config-Prime.html#t:Rectangle" title="XMonad.Config.Prime">Rectangle</a> -&gt; <a href="/package/xmonad-0.15/docs/XMonad-StackSet.html#t:Stack" title="XMonad.StackSet">Stack</a> a -&gt; [(a, <a href="XMonad-Config-Prime.html#t:Rectangle" title="XMonad.Config.Prime">Rectangle</a>)] <a href="#v:pureLayout" class="selflink">#</a></p><p class="src"><a href="#v:emptyLayout">emptyLayout</a> :: <a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a -&gt; <a href="XMonad-Config-Prime.html#t:Rectangle" title="XMonad.Config.Prime">Rectangle</a> -&gt; <a href="XMonad-Config-Prime.html#t:X" title="XMonad.Config.Prime">X</a> ([(a, <a href="XMonad-Config-Prime.html#t:Rectangle" title="XMonad.Config.Prime">Rectangle</a>)], <a href="XMonad-Config-Prime.html#t:Maybe" title="XMonad.Config.Prime">Maybe</a> (<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a)) <a href="#v:emptyLayout" class="selflink">#</a></p><p class="src"><a href="#v:handleMessage">handleMessage</a> :: <a href="XMonad-Layout-ResizableTile.html#t:Resi