[Pkg-e-commits] [SCM] Enlightenment DR17 graphical layout and animation library branch, upstream-vcs, updated. f5b4e4555670cc3b4a24802eb44d7d47c379bee4
raster
raster at alioth.debian.org
Fri May 23 22:08:44 UTC 2008
The following commit has been merged in the upstream-vcs branch:
commit f5b4e4555670cc3b4a24802eb44d7d47c379bee4
Author: raster <raster>
Date: Mon May 19 04:38:40 2008 +0000
lars get button mask call for edje embryo added
diff --git a/data/include/edje.inc b/data/include/edje.inc
index 24c5a9e..7d0fbd2 100644
--- a/data/include/edje.inc
+++ b/data/include/edje.inc
@@ -106,6 +106,7 @@ native set_text_class (class[], font[], Float:size);
native get_text_class (class[], font[], &Float:size);
native get_geometry (part_id, &x, &y, &w, &h);
native get_mouse (&x, &y);
+native get_mouse_buttons();
native stop_program (program_id);
native stop_programs_on (part_id);
native set_min_size (Float:w, Float:h);
diff --git a/src/lib/edje_embryo.c b/src/lib/edje_embryo.c
index 135e15f..2471c45 100644
--- a/src/lib/edje_embryo.c
+++ b/src/lib/edje_embryo.c
@@ -797,6 +797,17 @@ _edje_embryo_fn_get_mouse(Embryo_Program *ep, Embryo_Cell *params)
return 0;
}
+/* get_mouse_buttons() */
+static Embryo_Cell
+_edje_embryo_fn_get_mouse_buttons(Embryo_Program *ep, Embryo_Cell *params)
+{
+ Edje *ed;
+
+ CHKPARAM(0);
+ ed = embryo_program_data_get(ep);
+ return evas_pointer_button_down_mask_get(ed->evas);
+}
+
/* emit(sig[], src[]) */
static Embryo_Cell
_edje_embryo_fn_emit(Embryo_Program *ep, Embryo_Cell *params)
@@ -2273,6 +2284,7 @@ _edje_embryo_script_init(Edje *ed)
embryo_program_native_call_add(ep, "get_drag_page", _edje_embryo_fn_get_drag_page);
embryo_program_native_call_add(ep, "set_drag_page", _edje_embryo_fn_set_drag_page);
embryo_program_native_call_add(ep, "get_mouse", _edje_embryo_fn_get_mouse);
+ embryo_program_native_call_add(ep, "get_mouse_buttons", _edje_embryo_fn_get_mouse_buttons);
embryo_program_native_call_add(ep, "stop_program", _edje_embryo_fn_stop_program);
embryo_program_native_call_add(ep, "stop_programs_on", _edje_embryo_fn_stop_programs_on);
embryo_program_native_call_add(ep, "set_min_size", _edje_embryo_fn_set_min_size);
--
Enlightenment DR17 graphical layout and animation library
More information about the Pkg-e-commits
mailing list