Ecore_Sdl.h File Reference

Ecore SDL system functions. More...

Data Structures

struct  _Ecore_Sdl_Event_Key_Down
 SDL Key Down event. More...
 
struct  _Ecore_Sdl_Event_Key_Up
 SDL Key Up event. More...
 
struct  _Ecore_Sdl_Event_Mouse_Button_Down
 SDL Mouse Down event. More...
 
struct  _Ecore_Sdl_Event_Mouse_Button_Up
 SDL Mouse Up event. More...
 
struct  _Ecore_Sdl_Event_Mouse_Move
 SDL Mouse Move event. More...
 
struct  _Ecore_Sdl_Event_Mouse_Wheel
 SDL Mouse Wheel event. More...
 
struct  _Ecore_Sdl_Event_Video_Resize
 

Typedefs

typedef struct _Ecore_Sdl_Event_Key_Down Ecore_Sdl_Event_Key_Down
 
typedef struct _Ecore_Sdl_Event_Key_Up Ecore_Sdl_Event_Key_Up
 
typedef struct _Ecore_Sdl_Event_Mouse_Button_Down Ecore_Sdl_Event_Mouse_Button_Down
 
typedef struct _Ecore_Sdl_Event_Mouse_Button_Up Ecore_Sdl_Event_Mouse_Button_Up
 
typedef struct _Ecore_Sdl_Event_Mouse_Move Ecore_Sdl_Event_Mouse_Move
 
typedef struct _Ecore_Sdl_Event_Mouse_Wheel Ecore_Sdl_Event_Mouse_Wheel
 
typedef struct _Ecore_Sdl_Event_Video_Resize Ecore_Sdl_Event_Video_Resize
 

Functions

EAPI int ecore_sdl_init (const char *name)
 Sets up the Ecore_Sdl library. More...
 
EAPI int ecore_sdl_shutdown (void)
 Shuts down the Ecore_Sdl library. More...
 
EAPI void ecore_sdl_feed_events (void)
 

Variables

EAPI int ECORE_SDL_EVENT_GOT_FOCUS
 
EAPI int ECORE_SDL_EVENT_LOST_FOCUS
 
EAPI int ECORE_SDL_EVENT_RESIZE
 
EAPI int ECORE_SDL_EVENT_EXPOSE
 

Detailed Description

Ecore SDL system functions.

Function Documentation

EAPI int ecore_sdl_init ( const char *  name)

Sets up the Ecore_Sdl library.

Parameters
namedevice target name
Returns
0 on failure. Otherwise, the number of times the library has been initialised without being shut down.

References EAPI, ecore_event_type_new(), eina_log_domain_register(), and EINA_LOG_ERR.

EAPI int ecore_sdl_shutdown ( void  )

Shuts down the Ecore_Sdl library.

Returns
The number of times the system has been initialised without being shut down.

References EAPI, ecore_event_add(), ecore_main_loop_quit(), ecore_time_get(), EINA_C_ARRAY_LENGTH, eina_log_domain_unregister(), EINA_RBTREE_CMP_KEY_CB, EINA_RBTREE_CMP_NODE_CB, EINA_RBTREE_GET, eina_rbtree_inline_insert(), and eina_rbtree_inline_remove().