ugfx/src/gwin/ggroup.c

27 lines
637 B
C
Raw Normal View History

2014-01-18 19:28:28 +00:00
/*
* 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"
2014-01-29 21:58:41 +00:00
GHandle _ggroupCreate(GDisplay *g, GGroupObject *go, const GWindowInit *pInit, const ggroupVMT *vmt) {
if (!(go = (GGroupObject *)_gwindowCreate(g, &go->g, pInit, &vmt->g, GWIN_FLG_GROUP|GWIN_FLG_ENABLED)))
2014-01-18 19:28:28 +00:00
return NULL;
go->parent = NULL;
go->sibling = NULL;
go->child = NULL;
return &go->g;
}
#endif /* GFX_USE_GWIN && GWIN_NEED_GROUPS */