diff options
author | Dave Andreoli <dave@gurumeditation.it> | 2016-01-23 18:34:13 +0100 |
---|---|---|
committer | Dave Andreoli <dave@gurumeditation.it> | 2016-01-23 18:34:13 +0100 |
commit | 11d3007f028d9eae4e1832d94b96ccc1f63378e5 (patch) | |
tree | b23a474db4f9064eb3c8f54f7b7c012a7474a6c3 /efl | |
parent | cab804e69b47c4792a8c56bc9e27ca7be1610683 (diff) |
New 1.17 API: evas.Object.paragraph_direction
Diffstat (limited to 'efl')
-rw-r--r-- | efl/evas/efl.evas.pyx | 6 | ||||
-rw-r--r-- | efl/evas/efl.evas_object.pxi | 18 |
2 files changed, 24 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 #### |