ManaPlus
Macros
createwidget.h File Reference

(986a3bf)

Go to the source code of this file.

Macros

#define CREATEWIDGETV(var, type, ...)
 
#define CREATEWIDGET(type, ...)    (new type(__VA_ARGS__))->postInit()
 
#define CREATEWIDGETV0(var, type)
 
#define CREATEWIDGETR(type, ...)    static_cast<type*>(Widget::callPostInit(new type(__VA_ARGS__)))
 
#define CREATEWIDGETR0(type)    static_cast<type*>(Widget::callPostInit(new type))
 

Macro Definition Documentation

◆ CREATEWIDGET

#define CREATEWIDGET (   type,
  ... 
)     (new type(__VA_ARGS__))->postInit()

Definition at line 29 of file createwidget.h.

◆ CREATEWIDGETR

#define CREATEWIDGETR (   type,
  ... 
)     static_cast<type*>(Widget::callPostInit(new type(__VA_ARGS__)))

Definition at line 36 of file createwidget.h.

◆ CREATEWIDGETR0

#define CREATEWIDGETR0 (   type)     static_cast<type*>(Widget::callPostInit(new type))

Definition at line 39 of file createwidget.h.

◆ CREATEWIDGETV

#define CREATEWIDGETV (   var,
  type,
  ... 
)
Value:
var = new type(__VA_ARGS__); \
var->postInit()

Definition at line 25 of file createwidget.h.

◆ CREATEWIDGETV0

#define CREATEWIDGETV0 (   var,
  type 
)
Value:
var = new type; \
var->postInit()

Definition at line 32 of file createwidget.h.