Minor layout illustration

This commit is contained in:
Martin Duquesnoy 2011-09-23 02:45:48 +02:00
parent 6b75a8cc02
commit eb5d932f66

View File

@ -83,14 +83,15 @@ layout_split_check_row_dir(struct client *c, struct client *g, Position p)
} }
/* Use ghost client properties to fix holes in tile /* Use ghost client properties to fix holes in tile
* .--. ~ ~ *
* /xx \ ~ ~ * ~ .--. ~ ~
* ~~\O _ (____ ~ *_____ ~ /xx \ ~ ~
* __.| .--'-==~ ~ * |>>| ~\O _ (____ ~
* '---\ '. ~ , ~ * | |__.| .--'-==~ ~
* '. '-.___.-'/ ~ * |>>'---\ '. ~ , ~
* '-.__ _.' ~ *__|__| '. '-.___.-'/ ~
* ````` ~ * '-.__ _.' ~
* ````` ~
*/ */
void void
layout_split_arrange_closed(struct client *ghost) layout_split_arrange_closed(struct client *ghost)
@ -176,7 +177,6 @@ layout_rotate(struct tag *t, bool left)
SLIST_FOREACH(c, &t->clients, tnext) SLIST_FOREACH(c, &t->clients, tnext)
{ {
/*
g = c->geo; g = c->geo;
c->geo.x = (g.y * ug.h) / ug.w; c->geo.x = (g.y * ug.h) / ug.w;
c->geo.y = (g.x * ug.w) / ug.h; c->geo.y = (g.x * ug.w) / ug.h;
@ -185,7 +185,6 @@ layout_rotate(struct tag *t, bool left)
c->geo.h = (g.w * ug.h) / ug.w; c->geo.h = (g.w * ug.h) / ug.w;
client_moveresize(c, c->geo); client_moveresize(c, c->geo);
*/
} }
} }
@ -198,6 +197,13 @@ uicb_layout_rotate(Uicb cmd)
/* /*
* Really simple functions, don't need static no-uicb backend * Really simple functions, don't need static no-uicb backend
* so we avoid the use of if(vertical) .. else * so we avoid the use of if(vertical) .. else
*
* Vertical mirror
* ____________ ____________
* | | B | -> | B | |
* | A |_______| -> |_______| A |
* | | C | D | -> | D | C | |
* |____|___|___| -> |___|___|____|
*/ */
void void
uicb_layout_vmirror(Uicb cmd) uicb_layout_vmirror(Uicb cmd)
@ -211,6 +217,14 @@ uicb_layout_vmirror(Uicb cmd)
} }
} }
/*
* Horinzontal mirror
* ____________ ____________
* | | B | -> | | C | D |
* | A |_______| -> | A |___|___|
* | | C | D | -> | | B |
* |____|___|___| -> |____|_______|
*/
void void
uicb_layout_hmirror(Uicb cmd) uicb_layout_hmirror(Uicb cmd)
{ {