Enlightenment CVS committal

Author  : barbieri
Project : e17
Module  : proto

Dir     : e17/proto/python-efl/python-evas/evas


Modified Files:
        __init__.py evas.c_evas.pxd evas.c_evas_object.pxi 


Log Message:
Support for selectable pointer_mode.

Evas now support objects that do not grab mouse down event (NOGRAB) aside
with the default (AUTOGRAB). API is meant to be extensible.


===================================================================
RCS file: /cvs/e/e17/proto/python-efl/python-evas/evas/__init__.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- __init__.py 19 Jul 2007 16:07:07 -0000      1.10
+++ __init__.py 24 Jul 2007 14:20:07 -0000      1.11
@@ -69,6 +69,9 @@
 EVAS_TEXT_STYLE_SOFT_SHADOW = 8
 EVAS_TEXT_STYLE_FAR_SOFT_SHADOW = 9
 
+EVAS_OBJECT_POINTER_MODE_AUTOGRAB = 0
+EVAS_OBJECT_POINTER_MODE_NOGRAB = 1
+
 EvasLoadError = c_evas.EvasLoadError
 Rect = c_evas.Rect
 
===================================================================
RCS file: /cvs/e/e17/proto/python-efl/python-evas/evas/evas.c_evas.pxd,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- evas.c_evas.pxd     5 Jun 2007 15:27:01 -0000       1.9
+++ evas.c_evas.pxd     24 Jul 2007 14:20:07 -0000      1.10
@@ -88,6 +88,11 @@
         EVAS_SMART_CLASS_VERSION
 
 
+    ctypedef enum Evas_Object_Pointer_Mode:
+        EVAS_OBJECT_POINTER_MODE_AUTOGRAB
+        EVAS_OBJECT_POINTER_MODE_NOGRAB
+
+
     ####################################################################
     # Structures
     #
@@ -371,6 +376,8 @@
     Evas_Bool evas_object_repeat_events_get(Evas_Object *obj)
     void evas_object_propagate_events_set(Evas_Object *obj, Evas_Bool prop)
     Evas_Bool evas_object_propagate_events_get(Evas_Object *obj)
+    void evas_object_pointer_mode_set(Evas_Object *obj, 
Evas_Object_Pointer_Mode setting)
+    Evas_Object_Pointer_Mode evas_object_pointer_mode_get(Evas_Object *obj)
 
     void evas_object_focus_set(Evas_Object *obj, Evas_Bool focus)
     Evas_Bool evas_object_focus_get(Evas_Object *obj)
===================================================================
RCS file: /cvs/e/e17/proto/python-efl/python-evas/evas/evas.c_evas_object.pxi,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- evas.c_evas_object.pxi      19 Jul 2007 15:06:44 -0000      1.7
+++ evas.c_evas_object.pxi      24 Jul 2007 14:20:07 -0000      1.8
@@ -678,6 +678,19 @@
         def __set__(self, int value):
             self.propagate_events_set(value)
 
+    def pointer_mode_get(self):
+        return <int>evas_object_pointer_mode_get(self.obj)
+
+    def pointer_mode_set(self, int value):
+        evas_object_pointer_mode_set(self.obj, <Evas_Object_Pointer_Mode>value)
+
+    property pointer_mode:
+        def __get__(self):
+            return self.pointer_mode_get()
+
+        def __set__(self, int value):
+            self.pointer_mode_set(value)
+
     def parent_get(self):
         "Get object's parent, in the case it was added to some SmartObject."
         cdef Evas_Object *obj



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to