7
8
9
10
11
12
13
14
16#include <gimbal/gimbal_meta.h>
17#include <gumball/types/gumball_renderer.h>
35
36
37
38
39
40
41
42#define GUM_draw(...) GUM_draw_
(__VA_OPT__(__VA_ARGS__,) nullptr)
58#define GUM_add_child(self, child) (GblObject_addChild(GBL_OBJECT(self), GBL_OBJECT(child)))
61#define GUM_remove_child(self, child) (GblObject_removeChild(GBL_OBJECT(self), GBL_OBJECT(child)))
64
65
66
67
68
69
70#define GUM_get_child_at(self, index) (GblObject_findChildByIndex(GBL_OBJECT(self), index))
74#define GUM_unref(obj) ((GUM_unref)(GBL_OBJECT(obj)))
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94#define GUM_connect(emitter, signal, callback, ...) (GBL_CONNECT(emitter, signal, emitter, callback __VA_OPT__(,) __VA_ARGS__))
97#define GUM_userData() GblClosure_currentUserdata()
100#define GUM_property(obj, name, ...) (GblObject_property(GBL_OBJECT(obj), name, __VA_ARGS__))
103#define GUM_setProperty(obj, name, ...) (GblObject_setProperty(GBL_OBJECT(obj), name, __VA_ARGS__))
107#define GUM_draw_(renderer, ...) (GUM_draw)(renderer)
109GBL_EXPORT GBL_RESULT (GUM_draw) (GUM_Renderer *pRenderer) GBL_NOEXCEPT;
110GBL_EXPORT GBL_RESULT (GUM_update) (
void) GBL_NOEXCEPT;
111GBL_EXPORT GBL_RESULT (GUM_update_disable) (GblObject *pSelf) GBL_NOEXCEPT;
112GBL_EXPORT GBL_RESULT (GUM_update_enable) (GblObject *pSelf) GBL_NOEXCEPT;
113GBL_EXPORT GBL_RESULT (GUM_update_disableAll)(GblObject *pSelf) GBL_NOEXCEPT;
114GBL_EXPORT GBL_RESULT (GUM_update_enableAll)(GblObject *pSelf) GBL_NOEXCEPT;
115GBL_EXPORT GBL_RESULT (GUM_unref) (GblObject *pSelf) GBL_NOEXCEPT;
116GBL_EXPORT
void (GUM_draw_enable) (GblObject *pSelf) GBL_NOEXCEPT;
117GBL_EXPORT
void (GUM_draw_disable) (GblObject *pSelf) GBL_NOEXCEPT;
118GBL_EXPORT
void (GUM_draw_enableAll) (GblObject *pSelf) GBL_NOEXCEPT;
119GBL_EXPORT
void (GUM_draw_disableAll) (GblObject *pSelf) GBL_NOEXCEPT;
#define GUM_update_disable(element)
Disables updating for a given element.
Definition gumball_common.h:23
#define GUM_draw(...)
Draws all the UI elements in the draw queue.
Definition gumball_common.h:42
#define GUM_draw_enableAll(obj)
Enables drawing for a given element and all of its children.
Definition gumball_common.h:55
#define GUM_draw_disable(obj)
Disables drawing for a given element.
Definition gumball_common.h:46
#define GUM_draw_enable(obj)
Enables drawing for a given element.
Definition gumball_common.h:49
#define GUM_update_disableAll(element)
Disables updating for a given element and all of its children.
Definition gumball_common.h:29
#define GUM_update()
Updates all the UI elements.
Definition gumball_common.h:20
#define GUM_update_enable(element)
Enables updating for a given element.
Definition gumball_common.h:26
#define GUM_unref(obj)
Decrements the reference count of a UI element, freeing it if it reaches zero.
Definition gumball_common.h:74
#define GUM_draw_disableAll(obj)
Disables drawing for a given element and all of its children.
Definition gumball_common.h:52
#define GUM_update_enableAll(element)
Enables updating for a given element and all of its children.
Definition gumball_common.h:32