Project

General

Profile

Gravity » History » Version 24

« Previous - Version 24/25 (diff) - Next » - Current version
Lasse Christensen, 05/15/2011 06:40 PM
Fixed tags to reflect new gravities.


Gravity\015\012\015\012{{>toc}}\015\012\015\012subtle 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\012Gravities are percentage values of the used screen and work view-wise for assigned 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 gravities work on any screen.\015\012\015\012h2. Examples\015\012\015\012h3. Center\015\012\015\012
gravity :center, [ 25, 25, 50, 50 ]
\015\012\015\012\015\012
+---------+\015\012|         |\015\012| +-----+ |\015\012| |     | |\015\012| +-----+ |\015\012|         |\015\012+---------+
\015\012\015\012h3. Top left\015\012\015\012
gravity :top_left, [ 0, 0, 50, 50 ]
\015\012\015\012
+----+----+\015\012|    |    |\015\012|    |    |\015\012+----+    |\015\012|         |\015\012|         |\015\012+---------+
\015\012\015\012h3. Bottom\015\012\015\012
gravity :bottom, [ 0, 50, 100, 50 ]
\015\012\015\012
+---------+\015\012|         |\015\012|         |\015\012+---------+\015\012|         |\015\012|         |\015\012+---------+
\015\012