summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Andreoli <dave@gurumeditation.it>2010-11-08 21:10:49 +0000
committerDavide Andreoli <dave@gurumeditation.it>2010-11-08 21:10:49 +0000
commit4284678987b08217982a4739e7029586174a68bc (patch)
treeb38348cfbfe7fc9e0264e4f19a95d0f7aa0c696b
parent6bfceeeafd95b980b7f997ad62c9c7662167090a (diff)
implemented missed calls: evas_event_feed_*
SVN revision: 54349
-rw-r--r--evas/evas.c_evas_canvas.pxi72
-rw-r--r--include/evas/c_evas.pxd12
2 files changed, 84 insertions, 0 deletions
diff --git a/evas/evas.c_evas_canvas.pxi b/evas/evas.c_evas_canvas.pxi
index b9a5f43..5c1b9a5 100644
--- a/evas/evas.c_evas_canvas.pxi
+++ b/evas/evas.c_evas_canvas.pxi
@@ -737,7 +737,79 @@ cdef public class Canvas [object PyEvasCanvas, type PyEvasCanvas_Type]:
737 self.event_callback_del(EVAS_CALLBACK_RENDER_FLUSH_POST, func) 737 self.event_callback_del(EVAS_CALLBACK_RENDER_FLUSH_POST, func)
738 738
739 # Event feeding 739 # Event feeding
740 def feed_mouse_down(self, int b, Evas_Button_Flags flags,
741 unsigned int timestamp):
742 """ Emit a mouse_down event in the canvas """
743 evas_event_feed_mouse_down(self.obj, b, flags, timestamp, NULL)
744
745 def feed_mouse_up(self, int b, Evas_Button_Flags flags,
746 unsigned int timestamp):
747 """ Emit a mouse_up event in the canvas """
748 evas_event_feed_mouse_up(self.obj, b, flags, timestamp, NULL)
749
750 def feed_mouse_cancel(self, unsigned int timestamp):
751 """ Emit a mouse_cancel event in the canvas """
752 evas_event_feed_mouse_cancel(self.obj, timestamp, NULL)
753
754 def feed_mouse_wheel(self, int direction, int z, unsigned int timestamp):
755 """ Emit a mouse_wheel event in the canvas """
756 evas_event_feed_mouse_wheel(self.obj, direction, z, timestamp, NULL)
757
758 def feed_mouse_move(self, int x, int y, unsigned int timestamp):
759 """ Emit a mouse_move event in the canvas """
760 evas_event_feed_mouse_move(self.obj, x, y, timestamp, NULL)
761
762 def feed_mouse_in(self, unsigned int timestamp):
763 """ Emit a mouse_in event in the canvas """
764 evas_event_feed_mouse_in(self.obj, timestamp, NULL)
765
766 def feed_mouse_out(self, unsigned int timestamp):
767 """ Emit a mouse_out event in the canvas """
768 evas_event_feed_mouse_out(self.obj, timestamp, NULL)
769
770 def feed_multi_down(self, int d, int x, int y,
771 double rad, double radx, double rady,
772 double pres, double ang,
773 double fx, double fy,
774 Evas_Button_Flags flags,
775 unsigned int timestamp):
776 """ Emit a multi_down event in the canvas """
777 evas_event_feed_multi_down(self.obj, d, x, y, rad, radx, rady, pres,
778 ang, fx, fy, flags, timestamp, NULL)
779
780 def feed_multi_up(self, int d, int x, int y,
781 double rad, double radx, double rady,
782 double pres, double ang,
783 double fx, double fy,
784 Evas_Button_Flags flags,
785 unsigned int timestamp):
786 """ Emit a multi_up event in the canvas """
787 evas_event_feed_multi_up(self.obj, d, x, y, rad, radx, rady, pres,
788 ang, fx, fy, flags, timestamp, NULL)
789
790 def feed_multi_move(self, int d, int x, int y,
791 double rad, double radx, double rady,
792 double pres, double ang,
793 double fx, double fy,
794 unsigned int timestamp):
795 """ Emit a multi_move event in the canvas """
796 evas_event_feed_multi_move(self.obj, d, x, y, rad, radx, rady, pres,
797 ang, fx, fy, timestamp, NULL)
798
799 def feed_key_down(self, char *keyname, char *key, char *string,
800 char *compose, int timestamp):
801 """ Emit a key_down event in the canvas """
802 evas_event_feed_key_down(self.obj, keyname, key, string,
803 compose, timestamp, NULL)
804
805 def feed_key_up(self, char *keyname, char *key, char *string,
806 char *compose, int timestamp):
807 """ Emit a key_up event in the canvas """
808 evas_event_feed_key_up(self.obj, keyname, key, string,
809 compose, timestamp, NULL)
810
740 def feed_hold(self, int hold, unsigned int timestamp): 811 def feed_hold(self, int hold, unsigned int timestamp):
812 """ Emit a feed_hold event in the canvas """
741 evas_event_feed_hold(self.obj, hold, timestamp, NULL) 813 evas_event_feed_hold(self.obj, hold, timestamp, NULL)
742 814
743 # Factory 815 # Factory
diff --git a/include/evas/c_evas.pxd b/include/evas/c_evas.pxd
index 45183b9..a86e17a 100644
--- a/include/evas/c_evas.pxd
+++ b/include/evas/c_evas.pxd
@@ -553,6 +553,18 @@ cdef extern from "Evas.h":
553 void evas_event_thaw(Evas *e) 553 void evas_event_thaw(Evas *e)
554 int evas_event_freeze_get(const_Evas *e) 554 int evas_event_freeze_get(const_Evas *e)
555 555
556 void evas_event_feed_mouse_down(Evas *e, int b, Evas_Button_Flags flags, unsigned int timestamp, const_void *data)
557 void evas_event_feed_mouse_up(Evas *e, int b, Evas_Button_Flags flags, unsigned int timestamp, const_void *data)
558 void evas_event_feed_mouse_cancel(Evas *e, unsigned int timestamp, const_void *data)
559 void evas_event_feed_mouse_wheel(Evas *e, int direction, int z, unsigned int timestamp, const_void *data)
560 void evas_event_feed_mouse_move(Evas *e, int x, int y, unsigned int timestamp, const_void *data)
561 void evas_event_feed_mouse_in(Evas *e, unsigned int timestamp, const_void *data)
562 void evas_event_feed_mouse_out(Evas *e, unsigned int timestamp, const_void *data)
563 void evas_event_feed_multi_down(Evas *e, int d, int x, int y, double rad, double radx, double rady, double pres, double ang, double fx, double fy, Evas_Button_Flags flags, unsigned int timestamp, const_void *data)
564 void evas_event_feed_multi_up(Evas *e, int d, int x, int y, double rad, double radx, double rady, double pres, double ang, double fx, double fy, Evas_Button_Flags flags, unsigned int timestamp, const_void *data)
565 void evas_event_feed_multi_move(Evas *e, int d, int x, int y, double rad, double radx, double rady, double pres, double ang, double fx, double fy, unsigned int timestamp, const_void *data)
566 void evas_event_feed_key_down(Evas *e, const_char_ptr keyname, const_char_ptr key, const_char_ptr string, const_char_ptr compose, unsigned int timestamp, const_void *data)
567 void evas_event_feed_key_up(Evas *e, const_char_ptr keyname, const_char_ptr key, const_char_ptr string, const_char_ptr compose, unsigned int timestamp, const_void *data)
556 void evas_event_feed_hold(Evas *e, int hold, unsigned int timestamp, const_void *data) 568 void evas_event_feed_hold(Evas *e, int hold, unsigned int timestamp, const_void *data)
557 569
558 void evas_font_path_clear(Evas *e) 570 void evas_font_path_clear(Evas *e)