Mercurial > projects > mde
diff mde/gui/renderer/IRenderer.d @ 109:2a1428ec5344
Optional, visible spacing in grid layouts.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 04 Dec 2008 10:32:20 +0000 |
parents | c9fc2d303178 |
children | 1655693702fc |
line wrap: on
line diff
--- a/mde/gui/renderer/IRenderer.d Wed Dec 03 19:37:32 2008 +0000 +++ b/mde/gui/renderer/IRenderer.d Thu Dec 04 10:32:20 2008 +0000 @@ -142,6 +142,14 @@ /** Draw a window border plus background. */ void drawWindow (Border* border, wdim x, wdim y, wdim w, wdim h); + /** Draw vertical and horizontal spacers. + * + * x,y and w,h are the position and size of the grid containing spacers. + * + * For each col in cols, spacers should be drawn in the rectangle + * [x+col-layoutSpacing,x+col)*[y,y+h), and similarly for rows. */ + void drawSpacers (wdabs x, wdabs y, wdsize w, wdsize h, wdims cols, wdims rows); + /** Draws a widget background. Usually doesn't do anything since backgrounds are transparent. * * It used to be required for all widgets to do this, but I lapsed since mostly it's unused. */