Evas_Object *win;
} app_data;
-static void
-_close_cb(void *data, Evas_Object *obj, void *event_info)
-{
- elm_exit();
-}
-
static void
_add_object_cb (void *data, Evas_Object *obj, void *event_info)
{
Evas_Coord x, y, w,h;
Evas_Object *img = event_info;
- app_data *d = data;
evas_object_geometry_get(img, &x, &y, &w, &h);
fprintf(stderr, "[ECOMP] _add_object_cb %p:%p(%dx%d+%d+%d)\n",obj, img, w, h, x, y);
app_data *d;
Evas_Object *win;
const char *comp_name;
- char border_path[64];
int ret = EXIT_FAILURE;
- int i, j;
d = calloc(1, sizeof(app_data));
main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
{
Evas_Object *win;
- Evas_Object *button, *rect;
+ Evas_Object *button, *rect=NULL;
Evas_Object *bx;
elm_init(argc, argv);
elm_win_resize_object_add(win, bx);
evas_object_show(bx);
+ rect = evas_object_rectangle_add(win);
+ evas_object_color_set(rect, 125, 0, 0, 255);
+ evas_object_size_hint_weight_set(rect, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(rect, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ elm_box_pack_end(bx, rect);
+ evas_object_show(rect);
+
button = elm_button_add(win);
evas_object_size_hint_weight_set(button, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(button, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_event_callback_add(button, EVAS_CALLBACK_MOUSE_UP, bt_cb, rect);
evas_object_show(button);
- rect = evas_object_rectangle_add(win);
- evas_object_color_set(rect, 125, 0, 0, 255);
- evas_object_size_hint_weight_set(rect, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(rect, EVAS_HINT_FILL, EVAS_HINT_FILL);
- elm_box_pack_end(bx, rect);
- evas_object_show(rect);
-
elm_run();
elm_shutdown();
_pepper_efl_output_cb_render_post(void *data, Evas *e EINA_UNUSED, void *event_info EINA_UNUSED)
{
pepper_efl_output_t *output = data;
- pepper_efl_surface_t *es;
struct timespec ts;
DBG("render post");
}
static void
-_pepper_efl_output_flush_surface(void *o, pepper_surface_t *surface)
+_pepper_efl_output_flush_surface(void *o, pepper_surface_t *surface, pepper_bool_t *keep_buffer)
{
(void)o;
(void)surface;
+ (void)keep_buffer;
}
static const struct pepper_output_backend output_interface =
xdg_surface_set_minimized,
};
+static void xdg_shell_cb_destroy(struct wl_client *client,
+ struct wl_resource *resource)
+{
+ DBG("-");
+}
+
static void
xdg_shell_cb_use_unstable_version(struct wl_client *client, struct wl_resource *resource, int32_t version)
{
}
static void
-xdg_shell_cb_popup_get(struct wl_client *client, struct wl_resource *resource, uint32_t id, struct wl_resource *surface_resource, struct wl_resource *parent_resource, struct wl_resource *seat_resource, uint32_t serial, int32_t x, int32_t y, uint32_t flags)
+xdg_shell_cb_popup_get(struct wl_client *client, struct wl_resource *resource, uint32_t id, struct wl_resource *surface_resource, struct wl_resource *parent_resource, struct wl_resource *seat_resource, uint32_t serial, int32_t x, int32_t y)
{
DBG("-");
}
}
static const struct xdg_shell_interface xdg_implementation = {
+ xdg_shell_cb_destroy,
xdg_shell_cb_use_unstable_version,
xdg_shell_cb_surface_get,
xdg_shell_cb_popup_get,