aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/ggroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gwin/ggroup.c')
-rw-r--r--src/gwin/ggroup.c26
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 */
+