aboutsummaryrefslogtreecommitdiffstats
path: root/include/gwin/ggroup.h
blob: b58f415b2557f7845c6b7db46c7e7d237991fdf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * 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
 */

/**
 * @file    include/gwin/ggroup.h
 * @brief   GWIN Widgets header file.
 */

#ifndef _GGROUP_H
#define _GGROUP_H

/* This file is included within "gwin/gwin.h" */

/**
 * @defgroup Widget Widget
 * @ingroup GWIN
 *
 * @details		Groups provide parent/child relation features and dynamic layouts.
 *
 * @pre			GFX_NEED_GWIN needs to be set to TRUE in your gfxconf.h.
 * @pre			GWIN_NEED_GROUPS needs to be set to TRUE in your gfxconf.h.
 *
 * @{
 */

/**
 * @brief	A group object structure
 * @note	Do not access the members directly. Treat it as a black-box and use the method functions.
 * @{
 */
typedef struct GGroupObject {
	GWindowObject		g;

	GHandle				parent;				// @< The parent widget
	GHandle				sibling;			// @< The widget to its left (add right later as well)
	GHandle				child;				// @< The child widget
} GGroupObject;
/** @} */


#endif /* _GGROUP_H */