diff options
author | Joel Bodenmann <joel@unormal.org> | 2014-01-18 20:28:28 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2014-01-18 20:28:28 +0100 |
commit | 3a08f65cfcd884b454e835e6319d949e51e0b428 (patch) | |
tree | f722f8dcec5f9bff6a00b6ea79122473578eaf38 /src | |
parent | ac690d1d295ec27f4c01064bd692d521c7f8b363 (diff) | |
download | uGFX-3a08f65cfcd884b454e835e6319d949e51e0b428.tar.gz uGFX-3a08f65cfcd884b454e835e6319d949e51e0b428.tar.bz2 uGFX-3a08f65cfcd884b454e835e6319d949e51e0b428.zip |
initial work on GGroup
Diffstat (limited to 'src')
-rw-r--r-- | src/gwin/ggroup.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/gwin/ggroup.c b/src/gwin/ggroup.c new file mode 100644 index 00000000..3bfefe38 --- /dev/null +++ b/src/gwin/ggroup.c @@ -0,0 +1,26 @@ +/* + * This file is subject to the terms of the GFX License. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://ugfx.org/license.html + */ + +#include "gfx.h" + +#if GFX_USE_GWIN && GWIN_NEED_GROUPS + +#include "gwin/class_gwin.h" + +GHandle _ggroupCreate(GDisplay *g, GGroupObject *go, const GGroupInit *pInit) { + if (!(go = (GGroupObject *)_gwindowCreate(g, &go->g, &pInit->g, &vmt->g, GWIN_FLG_GROUP|GWIN_FLG_ENABLED))) + return NULL; + + go->parent = NULL; + go->sibling = NULL; + go->child = NULL; + + return &go->g; +} + +#endif /* GFX_USE_GWIN && GWIN_NEED_GROUPS */ + |