davemds pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=11d3007f028d9eae4e1832d94b96ccc1f63378e5

commit 11d3007f028d9eae4e1832d94b96ccc1f63378e5
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Sat Jan 23 18:34:13 2016 +0100

    New 1.17 API: evas.Object.paragraph_direction
---
 efl/evas/efl.evas.pyx        |  6 ++++++
 efl/evas/efl.evas_object.pxi | 18 ++++++++++++++++++
 include/efl.evas.pxd         |  4 ++++
 3 files changed, 28 insertions(+)

diff --git a/efl/evas/efl.evas.pyx b/efl/evas/efl.evas.pyx
index 3be00c0..cb1fa52 100644
--- a/efl/evas/efl.evas.pyx
+++ b/efl/evas/efl.evas.pyx
@@ -111,6 +111,12 @@ Evas_BiDi_Direction
 
     Right to left direction.
 
+.. data:: EVAS_BIDI_DIRECTION_INHERIT
+
+    Inherit direction from parent object.
+
+    .. versionadded:: 1.17
+
 
 .. _Evas_Callback_Type:
 
diff --git a/efl/evas/efl.evas_object.pxi b/efl/evas/efl.evas_object.pxi
index b981854..c203e89 100644
--- a/efl/evas/efl.evas_object.pxi
+++ b/efl/evas/efl.evas_object.pxi
@@ -684,6 +684,24 @@ cdef class Object(Eo):
     def is_frame_object_get(self):
         return bool(evas_object_is_frame_object_get(self.obj))
 
+    property paragraph_direction:
+        """This handles text paragraph direction of the object.
+
+        Even if the object is not textblock or text, its smart child objects
+        can inherit the paragraph direction from the object.
+
+        The default paragraph direction is EVAS_BIDI_DIRECTION_INHERIT.
+
+        :type: :ref:`Evas_BiDi_Direction`
+
+        .. versionadded:: 1.17
+
+        """
+        def __set__(self, Evas_BiDi_Direction direction):
+            evas_object_paragraph_direction_set(self.obj, direction)
+
+        def __get__(self):
+            return evas_object_paragraph_direction_get(self.obj)
 
     ##################
     #### Stacking ####
diff --git a/include/efl.evas.pxd b/include/efl.evas.pxd
index d6f7350..96228cc 100644
--- a/include/efl.evas.pxd
+++ b/include/efl.evas.pxd
@@ -61,6 +61,7 @@ cdef extern from "Evas.h":
         EVAS_BIDI_DIRECTION_NEUTRAL
         EVAS_BIDI_DIRECTION_LTR
         EVAS_BIDI_DIRECTION_RTL
+        EVAS_BIDI_DIRECTION_INHERIT
     ctypedef enum Evas_BiDi_Direction:
         pass
 
@@ -803,6 +804,9 @@ cdef extern from "Evas.h":
     void         evas_object_is_frame_object_set(Evas_Object *obj, Eina_Bool 
is_frame)
     Eina_Bool    evas_object_is_frame_object_get(Evas_Object *obj)
 
+    void                 evas_object_paragraph_direction_set(Evas_Object *obj, 
Evas_BiDi_Direction direction)
+    Evas_BiDi_Direction  evas_object_paragraph_direction_get(Evas_Object *obj)
+
 
     ####################################################################
     # Smart Object

-- 


Reply via email to