 |
ManaPlus
|
Go to the documentation of this file.
21 #ifndef GUI_WIDGETS_CREATEWIDGET_H
22 #define GUI_WIDGETS_CREATEWIDGET_H
24 #define CREATEWIDGETV(var, type, ...) \
25 var = new type(__VA_ARGS__); \
28 #define CREATEWIDGET(type, ...) \
29 (new type(__VA_ARGS__))->postInit()
31 #define CREATEWIDGETV0(var, type) \
35 #define CREATEWIDGETR(type, ...) \
36 static_cast<type*>(Widget::callPostInit(new type(__VA_ARGS__)))
38 #define CREATEWIDGETR0(type) \
39 static_cast<type*>(Widget::callPostInit(new type))
41 #endif // GUI_WIDGETS_CREATEWIDGET_H