2012-04-05 08:31:15 -07:00
|
|
|
#ifndef ELW_BOX_H
|
|
|
|
#define ELW_BOX_H
|
|
|
|
|
2012-05-01 00:40:14 -07:00
|
|
|
#include "Eo.h"
|
2012-04-05 08:31:15 -07:00
|
|
|
|
2012-05-01 00:40:14 -07:00
|
|
|
extern EAPI Eo_Op ELW_BOX_BASE_ID;
|
2012-04-05 08:31:15 -07:00
|
|
|
|
|
|
|
enum {
|
|
|
|
ELW_BOX_SUB_ID_PACK_END,
|
|
|
|
ELW_BOX_SUB_ID_LAST
|
|
|
|
};
|
|
|
|
|
|
|
|
#define ELW_BOX_ID(sub_id) (ELW_BOX_BASE_ID + sub_id)
|
|
|
|
|
2012-04-23 05:32:34 -07:00
|
|
|
/**
|
2012-04-24 01:56:49 -07:00
|
|
|
* @def elw_box_pack_end(obj)
|
2012-04-23 05:32:34 -07:00
|
|
|
* @brief Pack object to the end of the box
|
|
|
|
* @param[in] obj object to pack into box
|
|
|
|
*/
|
2012-05-01 00:40:14 -07:00
|
|
|
#define elw_box_pack_end(obj) ELW_BOX_ID(ELW_BOX_SUB_ID_PACK_END), EO_TYPECHECK(Eo *, obj)
|
2012-04-05 08:31:15 -07:00
|
|
|
|
|
|
|
#define ELW_BOX_CLASS elw_box_class_get()
|
2012-06-10 07:56:15 -07:00
|
|
|
const Eo_Class *elw_box_class_get(void);
|
2012-04-05 08:31:15 -07:00
|
|
|
|
|
|
|
#endif
|