|
ManaPlus
|
Go to the documentation of this file.
22 #ifndef GUI_WIDGETS_CREATEWIDGET_H
23 #define GUI_WIDGETS_CREATEWIDGET_H
25 #define CREATEWIDGETV(var, type, ...) \
26 var = new type(__VA_ARGS__); \
29 #define CREATEWIDGET(type, ...) \
30 (new type(__VA_ARGS__))->postInit()
32 #define CREATEWIDGETV0(var, type) \
36 #define CREATEWIDGETR(type, ...) \
37 static_cast<type*>(Widget::callPostInit(new type(__VA_ARGS__)))
39 #define CREATEWIDGETR0(type) \
40 static_cast<type*>(Widget::callPostInit(new type))