diff --git a/src/lib/edje/Edje_Common.h b/src/lib/edje/Edje_Common.h index aa6b66267f..27bc080984 100644 --- a/src/lib/edje/Edje_Common.h +++ b/src/lib/edje/Edje_Common.h @@ -1,5 +1,146 @@ #include "edje_types.eot.h" +/** All available cursor states + * + * @ingroup Edje + */ +typedef enum +{ + EDJE_CURSOR_MAIN = 0, /**< Main cursor state */ + EDJE_CURSOR_SELECTION_BEGIN, /**< Selection begin cursor state */ + EDJE_CURSOR_SELECTION_END, /**< Selection end cursor state */ + EDJE_CURSOR_PREEDIT_START, /**< Pre-edit start cursor state */ + EDJE_CURSOR_PREEDIT_END, /**< Pre-edit end cursor state */ + EDJE_CURSOR_USER, /**< User cursor state */ + EDJE_CURSOR_USER_EXTRA /**< User extra cursor state */ +} Edje_Cursor; + +/** All Text auto capital mode type values + * + * @ingroup Edje_Text + */ +typedef enum +{ + EDJE_TEXT_AUTOCAPITAL_TYPE_NONE = 0, /**< None mode value */ + EDJE_TEXT_AUTOCAPITAL_TYPE_WORD, /**< Word mode value */ + EDJE_TEXT_AUTOCAPITAL_TYPE_SENTENCE, /**< Sentence mode value */ + EDJE_TEXT_AUTOCAPITAL_TYPE_ALLCHARACTER /**< All characters mode value */ +} Edje_Text_Autocapital_Type; + +/** Input hints + * + * @ingroup Edje + */ +typedef enum +{ + EDJE_INPUT_HINT_NONE = 0, /**< No active hints + * + * @since 1.12 */ + EDJE_INPUT_HINT_AUTO_COMPLETE = 1 /* 1 >> 0 */, /**< Suggest word auto + * completion + * + * @since 1.12 */ + EDJE_INPUT_HINT_SENSITIVE_DATA = 2 /* 1 >> 1 */ /**< Typed text should not be + * stored. + * + * @since 1.12 */ +} Edje_Input_Hints; + +/** Input panel language + * + * @ingroup Edje_Input_Panel + */ +typedef enum +{ + EDJE_INPUT_PANEL_LANG_AUTOMATIC = 0, /**< Automatic + * + * @since 1.2 */ + EDJE_INPUT_PANEL_LANG_ALPHABET /**< Alphabet + * + * @since 1.2 */ +} Edje_Input_Panel_Lang; + +/** Input panel return key types + * + * @ingroup Edje_Input_Panel + */ +typedef enum +{ + EDJE_INPUT_PANEL_RETURN_KEY_TYPE_DEFAULT = 0, /**< Default + * + * @since 1.2 */ + EDJE_INPUT_PANEL_RETURN_KEY_TYPE_DONE, /**< Done + * + * @since 1.2 */ + EDJE_INPUT_PANEL_RETURN_KEY_TYPE_GO, /**< Go + * + * @since 1.2 */ + EDJE_INPUT_PANEL_RETURN_KEY_TYPE_JOIN, /**< Join + * + * @since 1.2 */ + EDJE_INPUT_PANEL_RETURN_KEY_TYPE_LOGIN, /**< Login + * + * @since 1.2 */ + EDJE_INPUT_PANEL_RETURN_KEY_TYPE_NEXT, /**< Next + * + * @since 1.2 */ + EDJE_INPUT_PANEL_RETURN_KEY_TYPE_SEARCH, /**< Search or magnifier icon + * + * @since 1.2 */ + EDJE_INPUT_PANEL_RETURN_KEY_TYPE_SEND, /**< Send + * + * @since 1.2 */ + EDJE_INPUT_PANEL_RETURN_KEY_TYPE_SIGNIN /**< Sign-in + * + * @since 1.8 */ +} Edje_Input_Panel_Return_Key_Type; + +/** Input panel layout + * + * @ingroup Edje_Input_Panel + */ +typedef enum +{ + EDJE_INPUT_PANEL_LAYOUT_NORMAL = 0, /**< Default layout */ + EDJE_INPUT_PANEL_LAYOUT_NUMBER, /**< Number layout */ + EDJE_INPUT_PANEL_LAYOUT_EMAIL, /**< Email layout */ + EDJE_INPUT_PANEL_LAYOUT_URL, /**< URL layout */ + EDJE_INPUT_PANEL_LAYOUT_PHONENUMBER, /**< Phone Number layout */ + EDJE_INPUT_PANEL_LAYOUT_IP, /**< IP layout */ + EDJE_INPUT_PANEL_LAYOUT_MONTH, /**< Month layout */ + EDJE_INPUT_PANEL_LAYOUT_NUMBERONLY, /**< Number Only layout */ + EDJE_INPUT_PANEL_LAYOUT_INVALID, /**< Never use this */ + EDJE_INPUT_PANEL_LAYOUT_HEX, /**< Hexadecimal layout + * + * @since 1.2 */ + EDJE_INPUT_PANEL_LAYOUT_TERMINAL, /**< Command-line terminal layout including + * esc, alt, ctrl key, so on (no + * auto-correct, no auto-capitalization) + * + * @since 1.2 */ + EDJE_INPUT_PANEL_LAYOUT_PASSWORD, /**< Like normal, but no auto-correct, no + * auto-capitalization etc. + * + * @since 1.2 */ + EDJE_INPUT_PANEL_LAYOUT_DATETIME, /**< Date and time layout + * + * @since 1.8 */ + EDJE_INPUT_PANEL_LAYOUT_EMOTICON, /**< Emoticon layout + * + * @since 1.10 */ + EDJE_INPUT_PANEL_LAYOUT_VOICE /**< Voice layout, but if the IME does not + * support voice layout, then normal layout + * will be shown. + * + * @since 1.19 */ +} Edje_Input_Panel_Layout; + +/** Perspective info for maps inside edje objects + * + * @ingroup Edje + */ +typedef struct _Edje_Perspective Edje_Perspective; + /** * @internal * @ingroup Edje_General_Group diff --git a/src/lib/edje/edje_types.eot b/src/lib/edje/edje_types.eot index 87a5cc3b1d..b3eee20d18 100644 --- a/src/lib/edje/edje_types.eot +++ b/src/lib/edje/edje_types.eot @@ -21,123 +21,3 @@ enum @beta Efl.Canvas.Layout_Part_Type vector = 17, [[Vector @since 1.18.]] last = 18 [[Last type value.]] } - - -/* TODO: Rename to Efl.Canvas.Layout.Blah */ - -enum Edje.Cursor { - [[All available cursor states]] - main, [[Main cursor state]] - selection_begin, [[Selection begin cursor state]] - selection_end, [[Selection end cursor state]] - preedit_start, [[Pre-edit start cursor state]] - preedit_end, [[Pre-edit end cursor state]] - user, [[User cursor state]] - user_extra [[User extra cursor state]] -} - -enum Edje.Text.Autocapital_Type { - [[All Text auto capital mode type values]] - none, [[None mode value]] - word, [[Word mode value]] - sentence, [[Sentence mode value]] - allcharacter [[All characters mode value]] -} - -enum Edje.Input_Hints { - [[Input hints]] - legacy: Edje_Input_Hint; - - none = 0, [[No active hints - - @since 1.12]] - auto_complete = 1 << 0, [[Suggest word auto completion - - @since 1.12]] - sensitive_data = 1 << 1 [[Typed text should not be stored. - - @since 1.12]] -} - -enum Edje.Input_Panel.Lang { - [[Input panel language]] - automatic, [[Automatic - - @since 1.2]] - alphabet [[Alphabet - - @since 1.2]] -} - -enum Edje.Input_Panel.Return_Key_Type { - [[Input panel return key types]] - default, [[Default - - @since 1.2]] - done, [[Done - - @since 1.2]] - go, [[Go - - @since 1.2]] - join, [[Join - - @since 1.2]] - login, [[Login - - @since 1.2]] - next, [[Next - - @since 1.2]] - search, [[Search or magnifier icon - - @since 1.2]] - send, [[Send - - @since 1.2]] - signin [[Sign-in - - @since 1.8]] -} - -enum Edje.Input_Panel.Layout { - [[Input panel layout]] - normal, [[Default layout]] - number, [[Number layout]] - email, [[Email layout]] - url, [[URL layout]] - phonenumber, [[Phone Number layout]] - ip, [[IP layout]] - month, [[Month layout]] - numberonly, [[Number Only layout]] - invalid, [[Never use this]] - hex, [[Hexadecimal layout - - @since 1.2]] - terminal, [[Command-line terminal layout including esc, alt, ctrl key, - so on (no auto-correct, no auto-capitalization) - - @since 1.2]] - password, [[Like normal, but no auto-correct, no auto-capitalization etc. - - @since 1.2]] - datetime, [[Date and time layout - - @since 1.8]] - emoticon, [[Emoticon layout - - @since 1.10]] - voice [[Voice layout, but if the IME does not support voice layout, then normal layout will be shown. - - @since 1.19]] -} - -struct Edje.Perspective; [[Perspective info for maps inside edje objects]] - -/* FIXME-cb: Ignore cb types that should be fixed. */ -type Edje.Signal_Cb: __undefined_type; [[Edje signal callback type]] -type Edje.Markup_Filter_Cb: __undefined_type; [[Edje markup filter callback type]] -type Edje.Text.Filter_Cb: __undefined_type; [[Edje text filter callback type]] -type Edje.Text.Change_Cb: __undefined_type; [[Edje text change callback type]] -type Edje.Item_Provider_Cb: __undefined_type; [[Edje item provider callback type]] -type Edje.Message_Handler_Cb: __undefined_type; [[Edje message handler callback type]]