From 3a08f65cfcd884b454e835e6319d949e51e0b428 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sat, 18 Jan 2014 20:28:28 +0100 Subject: initial work on GGroup --- src/gwin/ggroup.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/gwin/ggroup.c (limited to 'src') 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 */ + -- cgit v1.2.3