New 1.17 API: evas.Object.paragraph_direction
This commit is contained in:
parent
cab804e69b
commit
11d3007f02
|
@ -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:
|
||||
|
||||
|
|
|
@ -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 ####
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue