aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwin.c
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-02-02 20:00:34 +0100
committerJoel Bodenmann <joel@unormal.org>2014-02-02 20:00:34 +0100
commitd299756abaf5813850ec732be3d71d96b9fa32fc (patch)
tree7133e28e8134af1daaa269785cb2d382d88fe7ba /src/gwin/gwin.c
parente50b495c48648bf53621a4afc63682579387ba4f (diff)
parentd2de6c351785f323fd4b2a4e337a95bda4c9a626 (diff)
downloaduGFX-d299756abaf5813850ec732be3d71d96b9fa32fc.tar.gz
uGFX-d299756abaf5813850ec732be3d71d96b9fa32fc.tar.bz2
uGFX-d299756abaf5813850ec732be3d71d96b9fa32fc.zip
Merge branch 'master' into gfile
Diffstat (limited to 'src/gwin/gwin.c')
-rw-r--r--src/gwin/gwin.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c
index 11dcdaf1..485ccaaa 100644
--- a/src/gwin/gwin.c
+++ b/src/gwin/gwin.c
@@ -84,7 +84,8 @@ static color_t defaultBgColor = Black;
* Class Routines
*-----------------------------------------------*/
-void _gwinInit(void) {
+void _gwinInit(void)
+{
#if GWIN_NEED_WIDGET
extern void _gwidgetInit(void);
@@ -97,6 +98,20 @@ void _gwinInit(void) {
#endif
}
+void _gwinDeinit(void)
+{
+ #if GWIN_NEED_WIDGET
+ extern void _gwidgetDeinit(void);
+
+ _gwidgetDeinit();
+ #endif
+ #if GWIN_NEED_WINDOWMANAGER
+ extern void _gwmDeinit(void);
+
+ _gwmDeinit();
+ #endif
+}
+
// Internal routine for use by GWIN components only
// Initialise a window creating it dynamically if required.
GHandle _gwindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pInit, const gwinVMT *vmt, uint16_t flags) {
@@ -167,7 +182,9 @@ color_t gwinGetDefaultBgColor(void) {
GHandle gwinGWindowCreate(GDisplay *g, GWindowObject *pgw, const GWindowInit *pInit) {
if (!(pgw = _gwindowCreate(g, pgw, pInit, &basegwinVMT, 0)))
return 0;
+
gwinSetVisible(pgw, pInit->show);
+
return pgw;
}