summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-01-23 18:34:13 +0100
committerDave Andreoli <dave@gurumeditation.it>2016-01-23 18:34:13 +0100
commit11d3007f028d9eae4e1832d94b96ccc1f63378e5 (patch)
treeb23a474db4f9064eb3c8f54f7b7c012a7474a6c3
parentcab804e69b47c4792a8c56bc9e27ca7be1610683 (diff)
New 1.17 API: evas.Object.paragraph_direction
-rw-r--r--efl/evas/efl.evas.pyx6
-rw-r--r--efl/evas/efl.evas_object.pxi18
-rw-r--r--include/efl.evas.pxd4
3 files changed, 28 insertions, 0 deletions
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
111 111
112 Right to left direction. 112 Right to left direction.
113 113
114.. data:: EVAS_BIDI_DIRECTION_INHERIT
115
116 Inherit direction from parent object.
117
118 .. versionadded:: 1.17
119
114 120
115.. _Evas_Callback_Type: 121.. _Evas_Callback_Type:
116 122
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):
684 def is_frame_object_get(self): 684 def is_frame_object_get(self):
685 return bool(evas_object_is_frame_object_get(self.obj)) 685 return bool(evas_object_is_frame_object_get(self.obj))
686 686
687 property paragraph_direction:
688 """This handles text paragraph direction of the object.
689
690 Even if the object is not textblock or text, its smart child objects
691 can inherit the paragraph direction from the object.
692
693 The default paragraph direction is EVAS_BIDI_DIRECTION_INHERIT.
694
695 :type: :ref:`Evas_BiDi_Direction`
696
697 .. versionadded:: 1.17
698
699 """
700 def __set__(self, Evas_BiDi_Direction direction):
701 evas_object_paragraph_direction_set(self.obj, direction)
702
703 def __get__(self):
704 return evas_object_paragraph_direction_get(self.obj)
687 705
688 ################## 706 ##################
689 #### Stacking #### 707 #### 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":
61 EVAS_BIDI_DIRECTION_NEUTRAL 61 EVAS_BIDI_DIRECTION_NEUTRAL
62 EVAS_BIDI_DIRECTION_LTR 62 EVAS_BIDI_DIRECTION_LTR
63 EVAS_BIDI_DIRECTION_RTL 63 EVAS_BIDI_DIRECTION_RTL
64 EVAS_BIDI_DIRECTION_INHERIT
64 ctypedef enum Evas_BiDi_Direction: 65 ctypedef enum Evas_BiDi_Direction:
65 pass 66 pass
66 67
@@ -803,6 +804,9 @@ cdef extern from "Evas.h":
803 void evas_object_is_frame_object_set(Evas_Object *obj, Eina_Bool is_frame) 804 void evas_object_is_frame_object_set(Evas_Object *obj, Eina_Bool is_frame)
804 Eina_Bool evas_object_is_frame_object_get(Evas_Object *obj) 805 Eina_Bool evas_object_is_frame_object_get(Evas_Object *obj)
805 806
807 void evas_object_paragraph_direction_set(Evas_Object *obj, Evas_BiDi_Direction direction)
808 Evas_BiDi_Direction evas_object_paragraph_direction_get(Evas_Object *obj)
809
806 810
807 #################################################################### 811 ####################################################################
808 # Smart Object 812 # Smart Object