Enlightenment API
Application programming interface to be used by modules to extend Enlightenment. More...
Data Structures | |
struct | _E_Before_Idler |
struct | _E_Rect |
Typedefs | |
typedef struct _E_Before_Idler | E_Before_Idler |
typedef struct _E_Rect | E_Rect |
Functions | |
void * | alloca (size_t) |
EAPI E_Before_Idler * | e_main_idler_before_add (int(*func)(void *data), void *data, int once) |
EAPI void | e_main_idler_before_del (E_Before_Idler *eb) |
EAPI double | e_main_ts (const char *str) |
EAPI void | e_alert_composite_win (Ecore_X_Window root, Ecore_X_Window win) |
Detailed Description
Application programming interface to be used by modules to extend Enlightenment.
Macro Definition Documentation
#define E_FREE_LIST | ( | list, | |
free | |||
) |
Value:
do \
{ \
void *_tmp_; \
EINA_LIST_FREE(list, _tmp_) \
{ \
free(_tmp_); \
} \
} \
while (0)
#define E_LIST_FOREACH | ( | list, | |
func | |||
) |
Value:
do \
{ \
void *_tmp_; \
const Eina_List *_list, *_list2; \
EINA_LIST_FOREACH_SAFE(list, _list, _list2, _tmp_) \
{ \
func(_tmp_); \
} \
} \
while (0)
#define E_LIST_HANDLER_APPEND | ( | list, | |
type, | |||
callback, | |||
data | |||
) |
Value:
do \
{ \
Ecore_Event_Handler *_eh; \
_eh = ecore_event_handler_add(type, (Ecore_Event_Handler_Cb)callback, data); \
if (_eh) \
list = eina_list_append(list, _eh); \
else \
fprintf(stderr, "E_LIST_HANDLER_APPEND\n"); \
} \
while (0)
#define E_RECTS_CLIP_TO_RECT | ( | _x, | |
_y, | |||
_w, | |||
_h, | |||
_cx, | |||
_cy, | |||
_cw, | |||
_ch | |||
) |
Value:
{ \
if (E_INTERSECTS(_x, _y, _w, _h, _cx, _cy, _cw, _ch)) \
{ \
if ((int)_x < (int)(_cx)) \
{ \
_w += _x - (_cx); \
_x = (_cx); \
if ((int)_w < 0) _w = 0; \
} \
if ((int)(_x + _w) > (int)((_cx) + (_cw))) \
_w = (_cx) + (_cw) - _x; \
if ((int)_y < (int)(_cy)) \
{ \
_h += _y - (_cy); \
_y = (_cy); \
if ((int)_h < 0) _h = 0; \
} \
if ((int)(_y + _h) > (int)((_cy) + (_ch))) \
_h = (_cy) + (_ch) - _y; \
} \
else \
{ \
_w = 0; _h = 0; \
} \
}