ManaPlus
Macros
createwidget.h File Reference

(642df39)

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 28 of file createwidget.h.

◆ CREATEWIDGETR

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

Definition at line 35 of file createwidget.h.

◆ CREATEWIDGETR0

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

Definition at line 38 of file createwidget.h.

◆ CREATEWIDGETV

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

Definition at line 24 of file createwidget.h.

◆ CREATEWIDGETV0

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

Definition at line 31 of file createwidget.h.