Gravity » History » Version 25
Anonymous, 08/09/2011 09:07 PM
1 | 25 | h1. Gravity\015\012\015\012{{>toc}}\015\012\015\012[[subtle]] uses a configureable grid system for window placement and the window slots inside of this grid are called [[gravity]].\015\012\015\012h2. Values\015\012\015\012[[Gravity|Gravities]] are percentage values of the used [[screen]] and work [[view]]-wise for assigned [[tagging|tag]]. They consist of four values:\015\012\015\012* *X* for placement in X direction\015\012* *Y* for placement in Y direction\015\012* *WIDTH* for window width\015\012* *HEIGHT* for window height\015\012\015\012Each value is a *percentage value of the screen width and height, that ensures that the same [[gravity|gravities]] work on any [[screen]].\015\012\015\012{{needs(2995)}}\015\012\015\012h2. Tiling\015\012\015\012Since r2808, [[subtle]] supports [[Gravity#Tiling|gravity tiling]] - tiling of windows that share the same [[gravity]]. Up to now, this tiling could be enabled globally for all [[Gravity|gravities]] and just worked horizontally. With the changes in r2995 it is possible to enable [Gravity#Tiling|gravity tiling]] per [[gravity]] either horizontally or vertically. That allows a greater deal of flexibility.\015\012\015\012To use [[Gravity#Tiling|gravity tiling]] just add either *:horz* for horizontal tiling or *:vert* for vertical tiling to the [[gravity]]:\015\012\015\012<pre><code class="ruby">\015\012gravity :center, [ 25, 25, 50, 50 ], :horz\015\012gravity :center33, [ 25, 25, 50, 33 ], :vert\015\012</code></pre>\015\012\015\012h2. Examples\015\012\015\012h3. Center\015\012\015\012<pre><code class="ruby">gravity :center, [ 25, 25, 50, 50 ]</code></pre>\015\012\015\012\015\012<pre>+---------+\015\012| |\015\012| +-----+ |\015\012| | | |\015\012| +-----+ |\015\012| |\015\012+---------+</pre>\015\012\015\012h3. Top left\015\012\015\012<pre><code class="ruby">gravity :top_left, [ 0, 0, 50, 50 ]</code></pre>\015\012\015\012<pre>+----+----+\015\012| | |\015\012| | |\015\012+----+ |\015\012| |\015\012| |\015\012+---------+</pre>\015\012\015\012h3. Bottom\015\012\015\012<pre><code class="ruby">gravity :bottom, [ 0, 50, 100, 50 ]</code></pre>\015\012\015\012<pre>+---------+\015\012| |\015\012| |\015\012+---------+\015\012| |\015\012| |\015\012+---------+</pre> |
---|