forked from enlightenment/efl
elm_general: remove linkage between legacy enums and eo types
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D8224
This commit is contained in:
parent
14df465ce3
commit
f733332a9c
|
@ -21,16 +21,17 @@
|
||||||
// Legacy types
|
// Legacy types
|
||||||
#include "elm_general.eot.h"
|
#include "elm_general.eot.h"
|
||||||
|
|
||||||
// EO types. Defined for legacy-only builds as legacy uses typedef of EO types.
|
|
||||||
#include "efl_ui.eot.h"
|
|
||||||
|
|
||||||
#define ELM_FOCUS_PREVIOUS EFL_UI_FOCUS_DIRECTION_PREVIOUS
|
typedef enum
|
||||||
#define ELM_FOCUS_NEXT EFL_UI_FOCUS_DIRECTION_NEXT
|
{
|
||||||
#define ELM_FOCUS_UP EFL_UI_FOCUS_DIRECTION_UP
|
ELM_FOCUS_PREVIOUS = 0, /**< previous direction */
|
||||||
#define ELM_FOCUS_DOWN EFL_UI_FOCUS_DIRECTION_DOWN
|
ELM_FOCUS_NEXT = 1, /**< next direction */
|
||||||
#define ELM_FOCUS_RIGHT EFL_UI_FOCUS_DIRECTION_RIGHT
|
ELM_FOCUS_UP = 2, /**< up direction */
|
||||||
#define ELM_FOCUS_LEFT EFL_UI_FOCUS_DIRECTION_LEFT
|
ELM_FOCUS_DOWN = 3, /**< down direction */
|
||||||
typedef Efl_Ui_Focus_Direction Elm_Focus_Direction;
|
ELM_FOCUS_RIGHT = 4, /**< right direction */
|
||||||
|
ELM_FOCUS_LEFT = 5, /**< left direction */
|
||||||
|
ELM_FOCUS_LAST = 6 /**< last direction */
|
||||||
|
} Elm_Focus_Direction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines couple of standard Evas_Object layers to be used
|
* Defines couple of standard Evas_Object layers to be used
|
||||||
|
@ -340,26 +341,50 @@ EAPI Elm_Process_State elm_process_state_get(void);
|
||||||
|
|
||||||
/* legacy to eo translation */
|
/* legacy to eo translation */
|
||||||
|
|
||||||
typedef Efl_Ui_Focus_Autoscroll_Mode Elm_Focus_Autoscroll_Mode;
|
typedef enum
|
||||||
#define ELM_FOCUS_AUTOSCROLL_MODE_SHOW EFL_UI_FOCUS_AUTOSCROLL_MODE_SHOW
|
{
|
||||||
#define ELM_FOCUS_AUTOSCROLL_MODE_NONE EFL_UI_FOCUS_AUTOSCROLL_MODE_NONE
|
ELM_FOCUS_AUTOSCROLL_MODE_SHOW = 0, /**< Directly show the focused region
|
||||||
#define ELM_FOCUS_AUTOSCROLL_MODE_BRING_IN EFL_UI_FOCUS_AUTOSCROLL_MODE_BRING_IN
|
* or item automatically. */
|
||||||
|
ELM_FOCUS_AUTOSCROLL_MODE_NONE, /**< Do not show the focused region or item
|
||||||
|
* automatically. */
|
||||||
|
ELM_FOCUS_AUTOSCROLL_MODE_BRING_IN /**< Bring in the focused region or item
|
||||||
|
* automatically which might invole the
|
||||||
|
* scrolling. */
|
||||||
|
} Elm_Focus_Autoscroll_Mode;
|
||||||
|
|
||||||
typedef Efl_Ui_Softcursor_Mode Elm_Softcursor_Mode;
|
typedef enum
|
||||||
#define ELM_SOFTCURSOR_MODE_AUTO EFL_UI_SOFTCURSOR_MODE_AUTO
|
{
|
||||||
#define ELM_SOFTCURSOR_MODE_ON EFL_UI_SOFTCURSOR_MODE_ON
|
ELM_SOFTCURSOR_MODE_AUTO = 0, /**< Auto-detect if a software cursor should
|
||||||
#define ELM_SOFTCURSOR_MODE_OFF EFL_UI_SOFTCURSOR_MODE_OFF
|
* be used (default). */
|
||||||
|
ELM_SOFTCURSOR_MODE_ON, /**< Always use a softcursor. */
|
||||||
|
ELM_SOFTCURSOR_MODE_OFF /**< Never use a softcursor. */
|
||||||
|
} Elm_Softcursor_Mode;
|
||||||
|
|
||||||
typedef Efl_Ui_Slider_Indicator_Visible_Mode Elm_Slider_Indicator_Visible_Mode;
|
typedef enum
|
||||||
#define ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT EFL_UI_SLIDER_INDICATOR_VISIBLE_MODE_ON_DRAG
|
{
|
||||||
#define ELM_SLIDER_INDICATOR_VISIBLE_MODE_ALWAYS EFL_UI_SLIDER_INDICATOR_VISIBLE_MODE_ALWAYS
|
ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT = 0, /**< show indicator on mouse
|
||||||
#define ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS EFL_UI_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS
|
* down or change in slider
|
||||||
#define ELM_SLIDER_INDICATOR_VISIBLE_MODE_NONE EFL_UI_SLIDER_INDICATOR_VISIBLE_MODE_NONE
|
* value */
|
||||||
|
ELM_SLIDER_INDICATOR_VISIBLE_MODE_ALWAYS, /**< Always show the indicator.
|
||||||
|
*/
|
||||||
|
ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS, /**< Show the indicator on
|
||||||
|
* focus */
|
||||||
|
ELM_SLIDER_INDICATOR_VISIBLE_MODE_NONE /**< Never show the indicator */
|
||||||
|
} Elm_Slider_Indicator_Visible_Mode;
|
||||||
|
|
||||||
typedef Efl_Ui_Focus_Move_Policy Elm_Focus_Move_Policy;
|
typedef enum
|
||||||
#define ELM_FOCUS_MOVE_POLICY_CLICK EFL_UI_FOCUS_MOVE_POLICY_CLICK
|
{
|
||||||
#define ELM_FOCUS_MOVE_POLICY_IN EFL_UI_FOCUS_MOVE_POLICY_IN
|
ELM_FOCUS_MOVE_POLICY_CLICK = 0, /**< Move focus by mouse click or touch.
|
||||||
#define ELM_FOCUS_MOVE_POLICY_KEY_ONLY EFL_UI_FOCUS_MOVE_POLICY_KEY_ONLY
|
* Elementary focus is set on mouse click
|
||||||
|
* and this is checked at mouse up time.
|
||||||
|
* (default) */
|
||||||
|
ELM_FOCUS_MOVE_POLICY_IN, /**< Move focus by mouse in. Elementary focus is
|
||||||
|
* set on mouse move when the mouse pointer is
|
||||||
|
* moved into an object. */
|
||||||
|
ELM_FOCUS_MOVE_POLICY_KEY_ONLY /**< Move focus by key. Elementary focus is
|
||||||
|
* set on key input like Left, Right, Up,
|
||||||
|
* Down, Tab, or Shift+Tab. */
|
||||||
|
} Elm_Focus_Move_Policy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
|
|
Loading…
Reference in New Issue