New 1.14 API: elm.Configuration.window_auto_focus_enable/window_auto_focus_animate

This commit is contained in:
Davide Andreoli 2015-04-14 20:44:10 +02:00
parent 0f0e84d792
commit e8172a5cfe
2 changed files with 38 additions and 1 deletions

View File

@ -174,6 +174,11 @@ cdef extern from "Elementary.h":
void elm_config_item_select_on_focus_disabled_set(Eina_Bool disabled)
Elm_Focus_Autoscroll_Mode elm_config_focus_autoscroll_mode_get()
void elm_config_focus_autoscroll_mode_set(Elm_Focus_Autoscroll_Mode mode)
Eina_Bool elm_config_window_auto_focus_enable_get()
void elm_config_window_auto_focus_enable_set(Eina_Bool enable)
Eina_Bool elm_config_window_auto_focus_animate_get()
void elm_config_window_auto_focus_animate_set(Eina_Bool enable)
Eina_Bool elm_config_mirrored_get()
void elm_config_mirrored_set(Eina_Bool mirrored)

View File

@ -1117,7 +1117,6 @@ cdef class Configuration(object):
def __set__(self, bint disabled):
elm_config_item_select_on_focus_disabled_set(disabled)
property focus_autoscroll_mode:
"""Focus Autoscroll Mode
@ -1135,7 +1134,40 @@ cdef class Configuration(object):
def __set__(self, Elm_Focus_Autoscroll_Mode mode):
elm_config_focus_autoscroll_mode_set(mode)
property window_auto_focus_enable:
"""The auto focus enable flag
This determines if elementary will show a focus box indicating the
focused widget automatically if keyboard controls like "Tab" are
used to switch focus between widgets. Mouse or touch control will
hide this auto shown focus, unless focus display has been explicitly
forced on for the window.
:type: bool
.. versionadded:: 1.14
"""
def __set__(self, bint enable):
elm_config_window_auto_focus_enable_set(enable)
def __get__(self):
return bool(elm_config_window_auto_focus_enable_get())
property window_auto_focus_animate:
"""The auto focus animate flag
If auto focus is enabled then this will determine if the focus
display will be animated or not.
:type: bool
.. versionadded:: 1.14
"""
def __set__(self, bint enable):
elm_config_window_auto_focus_animate_set(enable)
def __get__(self):
return bool(elm_config_window_auto_focus_animate_get())
property mirrored:
"""Get the system mirrored mode. This determines the default