2007-10-20 06:14:52 -07:00
|
|
|
#define D_(str) dgettext(PACKAGE, str)
|
|
|
|
|
|
|
|
#ifndef E_MOD_MAIN_H
|
|
|
|
#define E_MOD_MAIN_H
|
|
|
|
|
|
|
|
#define _RET_NONE_VALUE 0
|
|
|
|
#define _RET_BOTTOM_VALUE 1
|
|
|
|
#define _RET_TOP_VALUE 2
|
|
|
|
#define _RET_LEFT_VALUE 3
|
|
|
|
#define _RET_RIGHT_VALUE 4
|
|
|
|
|
|
|
|
#define ID_WALKER 1
|
|
|
|
#define ID_FALLER 2
|
|
|
|
#define ID_CLIMBER 3
|
|
|
|
#define ID_FLOATER 4
|
|
|
|
#define ID_SPLATTER 5
|
|
|
|
#define ID_FLYER 6
|
2007-11-13 07:57:57 -08:00
|
|
|
#define ID_BOMBER 7
|
2007-11-21 21:07:38 -08:00
|
|
|
#define ID_ANGEL 8
|
2007-10-20 06:14:52 -07:00
|
|
|
|
|
|
|
typedef struct _Config Config;
|
|
|
|
typedef struct _Population Population;
|
|
|
|
typedef struct _Penguin Penguin;
|
|
|
|
typedef struct _Action Action;
|
|
|
|
typedef struct _Custom_Action Custom_Action;
|
|
|
|
|
|
|
|
struct _Config
|
|
|
|
{
|
|
|
|
double zoom;
|
|
|
|
int penguins_count;
|
2007-11-12 13:17:53 -08:00
|
|
|
const char *theme;
|
2007-10-20 06:14:52 -07:00
|
|
|
int alpha;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _Population
|
|
|
|
{
|
|
|
|
E_Module *module;
|
2008-10-22 06:53:03 -07:00
|
|
|
Eina_List *cons;
|
2007-10-20 06:14:52 -07:00
|
|
|
Evas *canvas;
|
|
|
|
Ecore_Animator *animator;
|
2008-10-22 06:53:03 -07:00
|
|
|
Eina_List *penguins;
|
2007-10-20 06:14:52 -07:00
|
|
|
Evas_Hash *actions;
|
2008-10-22 06:53:03 -07:00
|
|
|
Eina_List *customs;
|
2007-10-20 06:14:52 -07:00
|
|
|
int custom_num;
|
2008-10-22 06:53:03 -07:00
|
|
|
Eina_List *themes;
|
2007-10-20 06:14:52 -07:00
|
|
|
|
|
|
|
E_Config_DD *conf_edd;
|
|
|
|
Config *conf;
|
|
|
|
Evas_Coord width, height;
|
|
|
|
E_Config_Dialog *config_dialog;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _Action
|
|
|
|
{
|
|
|
|
char *name;
|
|
|
|
int id;
|
|
|
|
Evas_Coord w,h;
|
|
|
|
int speed;
|
|
|
|
};
|
|
|
|
struct _Custom_Action
|
|
|
|
{
|
|
|
|
char *name;
|
|
|
|
Evas_Coord w,h;
|
|
|
|
int h_speed;
|
|
|
|
int v_speed;
|
|
|
|
int r_min;
|
|
|
|
int r_max;
|
|
|
|
char *left_program_name;
|
|
|
|
char *right_program_name;
|
|
|
|
};
|
|
|
|
struct _Penguin
|
|
|
|
{
|
|
|
|
Evas_Object *obj;
|
|
|
|
int reverse;
|
|
|
|
double x, y;
|
|
|
|
int faller_h;
|
|
|
|
int r_count;
|
|
|
|
Action *action;
|
|
|
|
Custom_Action *custom;
|
|
|
|
Population *pop;
|
|
|
|
};
|
|
|
|
|
2007-11-07 20:18:22 -08:00
|
|
|
extern E_Module *penguins_mod;
|
|
|
|
|
2007-10-20 06:14:52 -07:00
|
|
|
EAPI extern E_Module_Api e_modapi;
|
|
|
|
|
|
|
|
EAPI void *e_modapi_init(E_Module *m);
|
|
|
|
EAPI int e_modapi_shutdown(E_Module *m);
|
|
|
|
EAPI int e_modapi_save(E_Module *m);
|
|
|
|
|
|
|
|
void _penguins_cb_config_updated(void *data);
|
|
|
|
|
|
|
|
#endif
|