Mercurial > projects > mde
comparison 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 |
comparison
equal
deleted
inserted
replaced
108:c9fc2d303178 | 109:2a1428ec5344 |
---|---|
140 void relax (); /// ditto | 140 void relax (); /// ditto |
141 | 141 |
142 /** Draw a window border plus background. */ | 142 /** Draw a window border plus background. */ |
143 void drawWindow (Border* border, wdim x, wdim y, wdim w, wdim h); | 143 void drawWindow (Border* border, wdim x, wdim y, wdim w, wdim h); |
144 | 144 |
145 /** Draw vertical and horizontal spacers. | |
146 * | |
147 * x,y and w,h are the position and size of the grid containing spacers. | |
148 * | |
149 * For each col in cols, spacers should be drawn in the rectangle | |
150 * [x+col-layoutSpacing,x+col)*[y,y+h), and similarly for rows. */ | |
151 void drawSpacers (wdabs x, wdabs y, wdsize w, wdsize h, wdims cols, wdims rows); | |
152 | |
145 /** Draws a widget background. Usually doesn't do anything since backgrounds are transparent. | 153 /** Draws a widget background. Usually doesn't do anything since backgrounds are transparent. |
146 * | 154 * |
147 * It used to be required for all widgets to do this, but I lapsed since mostly it's unused. */ | 155 * It used to be required for all widgets to do this, but I lapsed since mostly it's unused. */ |
148 void drawWidgetBack (wdim x, wdim y, wdim w, wdim h); | 156 void drawWidgetBack (wdim x, wdim y, wdim w, wdim h); |
149 | 157 |