On Mon, Mar 17, 2008 at 05:44:25PM +0100, Anselm R. Garbe wrote:
> Hi there, as mentioned yesterday, I found a nice way how to
> handle the geom stuff in the future.
> 
> In config.h one can now do:
> 
> DEFGEOM(single,  0,  0, sw,  0, bh, sw, sh-bh, wx, wy, 0.55*sw, \
>       wh, mx+mw, wy, ww-mw, wh,  wx, wy, ww, wh)
> DEFGEOM(dual,    0,  0,1280, 0, bh, ww, wh-bh, wx, wy, \
>       1280,800-bh,  1280,  0, ww-mw, sh,  mx, my, mw, mh)
> 
> 
> which will define a function at compile time called single(),
> which sets all the geometry variables according to the input.
> One can expect s{x,y,w,h} and bh being initialized, and they
> can't be changed.

very nice idea! That's real macro-magic :-)

Kind Regards,
Johannes


Reply via email to