Add the missed prop elm.Object.tooltip_orient
This commit is contained in:
parent
1dc4053ce5
commit
d0026d6103
|
@ -278,6 +278,79 @@ Selection modes
|
|||
No select mode with no finger size rule
|
||||
|
||||
|
||||
.. _Elm_Tooltip_Orient:
|
||||
|
||||
Tooltip orientation
|
||||
-------------------
|
||||
|
||||
.. data:: ELM_TOOLTIP_ORIENT_NONE
|
||||
|
||||
Default value, Tooltip moves with mouse pointer
|
||||
|
||||
.. versionadded:: 1.16
|
||||
|
||||
.. data:: ELM_TOOLTIP_ORIENT_TOP_LEFT
|
||||
|
||||
Tooltip should appear at the top left of parent
|
||||
|
||||
.. versionadded:: 1.16
|
||||
|
||||
.. data:: ELM_TOOLTIP_ORIENT_TOP
|
||||
|
||||
Tooltip should appear at the top of parent
|
||||
|
||||
.. versionadded:: 1.16
|
||||
|
||||
.. data:: ELM_TOOLTIP_ORIENT_TOP_RIGHT
|
||||
|
||||
Tooltip should appear at the top right of parent
|
||||
|
||||
.. versionadded:: 1.16
|
||||
|
||||
.. data:: ELM_TOOLTIP_ORIENT_LEFT
|
||||
|
||||
Tooltip should appear at the left of parent
|
||||
|
||||
.. versionadded:: 1.16
|
||||
|
||||
.. data:: ELM_TOOLTIP_ORIENT_CENTER
|
||||
|
||||
Tooltip should appear at the center of parent
|
||||
|
||||
.. versionadded:: 1.16
|
||||
|
||||
.. data:: ELM_TOOLTIP_ORIENT_RIGHT
|
||||
|
||||
Tooltip should appear at the right of parent
|
||||
|
||||
.. versionadded:: 1.16
|
||||
|
||||
.. data:: ELM_TOOLTIP_ORIENT_BOTTOM_LEFT
|
||||
|
||||
Tooltip should appear at the bottom left of parent
|
||||
|
||||
.. versionadded:: 1.16
|
||||
|
||||
.. data:: ELM_TOOLTIP_ORIENT_BOTTOM
|
||||
|
||||
Tooltip should appear at the bottom of parent
|
||||
|
||||
.. versionadded:: 1.16
|
||||
|
||||
.. data:: ELM_TOOLTIP_ORIENT_BOTTOM_RIGHT
|
||||
|
||||
Tooltip should appear at the bottom right of parent
|
||||
|
||||
.. versionadded:: 1.16
|
||||
|
||||
.. data:: ELM_TOOLTIP_ORIENT_LAST
|
||||
|
||||
Sentinel value, don't use
|
||||
|
||||
.. versionadded:: 1.16
|
||||
|
||||
|
||||
|
||||
Inheritance diagram
|
||||
===================
|
||||
|
||||
|
|
|
@ -1251,6 +1251,24 @@ cdef class Object(SmartObject):
|
|||
def tooltip_style_get(self):
|
||||
return _ctouni(elm_object_tooltip_style_get(self.obj))
|
||||
|
||||
property tooltip_orient:
|
||||
"""The orientation of the tooltip around the owner region.
|
||||
|
||||
:type: :ref:`Elm_Tooltip_Orient`
|
||||
|
||||
.. versionadded:: 1.16
|
||||
|
||||
"""
|
||||
def __get__(self):
|
||||
return elm_object_tooltip_orient_get(self.obj)
|
||||
def __set__(self, Elm_Tooltip_Orient orient):
|
||||
elm_object_tooltip_orient_set(self.obj, orient)
|
||||
|
||||
def tooltip_orient_set(self, Elm_Tooltip_Orient orient):
|
||||
elm_object_tooltip_orient_set(self.obj, orient)
|
||||
def tooltip_orient_get(self):
|
||||
return elm_object_tooltip_orient_get(self.obj)
|
||||
|
||||
property tooltip_window_mode:
|
||||
def __get__(self):
|
||||
return bool(elm_object_tooltip_window_mode_get(self.obj))
|
||||
|
|
|
@ -34,3 +34,15 @@ from . import ELM_XDND_ACTION_ASK
|
|||
from . import ELM_XDND_ACTION_LIST
|
||||
from . import ELM_XDND_ACTION_LINK
|
||||
from . import ELM_XDND_ACTION_DESCRIPTION
|
||||
|
||||
from . import ELM_TOOLTIP_ORIENT_NONE
|
||||
from . import ELM_TOOLTIP_ORIENT_TOP_LEFT
|
||||
from . import ELM_TOOLTIP_ORIENT_TOP
|
||||
from . import ELM_TOOLTIP_ORIENT_TOP_RIGHT
|
||||
from . import ELM_TOOLTIP_ORIENT_LEFT
|
||||
from . import ELM_TOOLTIP_ORIENT_CENTER
|
||||
from . import ELM_TOOLTIP_ORIENT_RIGHT
|
||||
from . import ELM_TOOLTIP_ORIENT_BOTTOM_LEFT
|
||||
from . import ELM_TOOLTIP_ORIENT_BOTTOM
|
||||
from . import ELM_TOOLTIP_ORIENT_BOTTOM_RIGHT
|
||||
from . import ELM_TOOLTIP_ORIENT_LAST
|
||||
|
|
|
@ -77,6 +77,20 @@ cdef extern from "Elementary.h":
|
|||
ctypedef enum Elm_Xdnd_Action:
|
||||
pass
|
||||
|
||||
cpdef enum Elm_Tooltip_Orient:
|
||||
ELM_TOOLTIP_ORIENT_NONE
|
||||
ELM_TOOLTIP_ORIENT_TOP_LEFT
|
||||
ELM_TOOLTIP_ORIENT_TOP
|
||||
ELM_TOOLTIP_ORIENT_TOP_RIGHT
|
||||
ELM_TOOLTIP_ORIENT_LEFT
|
||||
ELM_TOOLTIP_ORIENT_CENTER
|
||||
ELM_TOOLTIP_ORIENT_RIGHT
|
||||
ELM_TOOLTIP_ORIENT_BOTTOM_LEFT
|
||||
ELM_TOOLTIP_ORIENT_BOTTOM
|
||||
ELM_TOOLTIP_ORIENT_BOTTOM_RIGHT
|
||||
ELM_TOOLTIP_ORIENT_LAST
|
||||
ctypedef enum Elm_Tooltip_Orient:
|
||||
pass
|
||||
|
||||
ctypedef struct Elm_Theme
|
||||
|
||||
|
@ -203,6 +217,8 @@ cdef extern from "Elementary.h":
|
|||
void elm_object_tooltip_move_freeze_push(Evas_Object *obj)
|
||||
void elm_object_tooltip_move_freeze_pop(Evas_Object *obj)
|
||||
int elm_object_tooltip_move_freeze_get(const Evas_Object *obj)
|
||||
void elm_object_tooltip_orient_set(Evas_Object *obj, Elm_Tooltip_Orient orient)
|
||||
Elm_Tooltip_Orient elm_object_tooltip_orient_get(const Evas_Object *obj)
|
||||
|
||||
# Object - Translatable text (elm_general.h) (py3: DONE)
|
||||
void elm_object_domain_translatable_part_text_set(Evas_Object *obj, const char *part, const char *domain, const char *text)
|
||||
|
|
Loading…
Reference in New Issue