diff options
Diffstat (limited to 'src/gwin')
-rw-r--r-- | src/gwin/gwin.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c index 58d75694..9f009fa1 100644 --- a/src/gwin/gwin.c +++ b/src/gwin/gwin.c @@ -107,6 +107,21 @@ void gwinDestroyWindow(GHandle gh) { } } +void gwinDraw(GHandle gh) { + switch(gh->type) { + #if GWIN_NEED_BUTTON + case GW_BUTTON: + gwinButtonDraw(gh); + break; + #endif + #if GWIN_NEED_SLIDER + case GW_SLIDER: + gwinSliderDraw(gh); + break; + #endif + } +} + #if GDISP_NEED_TEXT void gwinSetFont(GHandle gh, font_t font) { gh->font = font; |