Example #1
0
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

#include "Eo.h"
#include "eo_test_class_simple.h"

#define MY_CLASS SIMPLE_CLASS

EAPI Eo_Op SIMPLE_BASE_ID = 0;

EAPI const Eo_Event_Description _EV_A_CHANGED =
        EO_EVENT_DESCRIPTION("a,changed", "Called when a has changed.");

static void
_a_set(Eo *obj EINA_UNUSED, void *class_data, va_list *list)
{
   Simple_Public_Data *pd = class_data;
   int a;
   a = va_arg(*list, int);
   printf("%s %d\n", eo_class_name_get(MY_CLASS), a);
   pd->a = a;

   eo_do(obj, eo_event_callback_call(EV_A_CHANGED, &pd->a, NULL));
}

static void
_a_print(Eo *obj EINA_UNUSED, void *class_data, va_list *list)
{
   const Simple_Public_Data *pd = class_data;
   (void) list;
Example #2
0
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

#include "Eo.h"
#include "signals_simple.h"

typedef struct
{
   Simple_Public_Data pub;
   int a;
} Private_Data;

EAPI const Eo_Event_Description _EV_A_CHANGED =
        EO_EVENT_DESCRIPTION("a,changed");

#define MY_CLASS SIMPLE_CLASS

static void
_a_set(Eo *obj, void *class_data, int a)
{
   Private_Data *pd = class_data;
   pd->a = a;
   printf("%s %d\n", __func__, pd->a);

   eo_do(obj, eo_event_callback_call(EV_A_CHANGED, &pd->a));
}

Eina_Bool
_cb_added(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info)
{
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif

#include <Elementary.h>
#include "elm_priv.h"
#include "elm_app_server_eet.h"

EAPI Eo_Op ELM_APP_SERVER_BASE_ID = EO_NOOP;

#define MY_CLASS ELM_APP_SERVER_CLASS

#define MY_CLASS_NAME "Elm_App_Server"

EAPI const Eo_Event_Description _ELM_APP_SERVER_EV_TERMINATE =
    EO_EVENT_DESCRIPTION("terminate",
                         "Called when application must be terminated.");

typedef struct
{
    Eldbus_Connection *conn;
    Eldbus_Service_Interface *iface;
    Elm_App_Server_Create_View_Cb create_view_cb;
    Eina_Hash *views;

    int PID;
    Eina_Stringshare *title;
    Eina_Stringshare *icon_name;
    Eina_Stringshare *pkg;
    struct {
        unsigned int w, h;
        Eina_Bool has_alpha;
Example #4
0
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

#include <Elementary.h>

#include "Eo.h"
#include "evas_evas_obj.h"
#include "evas_elw_button.h"

EAPI Eo_Op ELW_BUTTON_BASE_ID = 0;

EAPI const Eo_Event_Description _EV_CLICKED =
        EO_EVENT_DESCRIPTION("clicked");

typedef struct
{
   Evas_Object *bt;
} Widget_Data;

#define MY_CLASS ELW_BUTTON_CLASS

static void
_position_set(Eo *obj, void *class_data EINA_UNUSED, va_list *list)
{
   (void) obj;
   Evas_Coord x, y;
   x = va_arg(*list, Evas_Coord);
   y = va_arg(*list, Evas_Coord);
   printf("But set position %d,%d\n", x, y);
   eo_do_super(obj, MY_CLASS, exevas_obj_position_set(x, y));
#include "evas_common_private.h"
#include "evas_private.h"

#include "Eo.h"

Eina_Hash* signals_hash_table = NULL;

EAPI const Eo_Event_Description _CLICKED_EVENT =
   EO_EVENT_DESCRIPTION("clicked", "");

EAPI const Eo_Event_Description _CLICKED_DOUBLE_EVENT =
   EO_EVENT_DESCRIPTION("clicked,double", "");

EAPI const Eo_Event_Description _CLICKED_TRIPLE_EVENT =
   EO_EVENT_DESCRIPTION("clicked,triple", "");

EAPI const Eo_Event_Description _PRESSED_EVENT =
   EO_EVENT_DESCRIPTION("pressed", "");

EAPI const Eo_Event_Description _UNPRESSED_EVENT =
   EO_EVENT_DESCRIPTION("unpressed", "");

EAPI const Eo_Event_Description _LONGPRESSED_EVENT =
   EO_EVENT_DESCRIPTION("longpressed", "");

EAPI const Eo_Event_Description _REPEATED_EVENT =
   EO_EVENT_DESCRIPTION("repeated", "");

EAPI const Eo_Event_Description _SCROLL_EVENT =
   EO_EVENT_DESCRIPTION("scroll", "");
Example #6
0
#include "evas_common_private.h"
#include "evas_private.h"

int _evas_event_counter = 0;

EVAS_MEMPOOL(_mp_pc);

extern Eina_Hash* signals_hash_table;

EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MOUSE_IN =
   EO_EVENT_DESCRIPTION("Mouse In", "Mouse In Event");
EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MOUSE_OUT =
   EO_EVENT_DESCRIPTION("Mouse Out", "Mouse Out Event");
EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MOUSE_DOWN =
   EO_EVENT_DESCRIPTION("Mouse Down", "Mouse Button Down Event");
EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MOUSE_UP =
   EO_EVENT_DESCRIPTION("Mouse Up", "Mouse Button Up Event");
EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MOUSE_MOVE =
   EO_EVENT_DESCRIPTION("Mouse Move", "Mouse Move Event");
EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MOUSE_WHEEL =
   EO_EVENT_DESCRIPTION("Mouse Wheel", "Mouse Wheel Event");
EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MULTI_DOWN =
   EO_EVENT_DESCRIPTION("Multi Down", "Mouse-touch Down Event");
EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MULTI_UP =
   EO_EVENT_DESCRIPTION("Multi Up", "Mouse-touch Up Event");
EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_MULTI_MOVE =
   EO_EVENT_DESCRIPTION("Multi Move", "Multi-touch Move Event");
EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_FREE =
   EO_EVENT_DESCRIPTION("Free", "Object Being Freed (Called after Del)");
EAPI const Eo_Event_Description _EVAS_OBJECT_EVENT_KEY_DOWN =
   EO_EVENT_DESCRIPTION("Key Down", "Key Press Event");