elm entry: Move the declaration of Elm_Cnp_Mode to elm_entry.eo

Move the enumeration Elm_Cnp_Mode to elm_entry.eo to make it more
accessible for binding generation.
Also rename it to Elm.Cnp_Mode.
This commit is contained in:
Vitor Sousa 2016-01-14 18:17:10 -02:00 committed by Felipe Magno de Almeida
parent 8a5d0a38f2
commit 45e9a15bd4
2 changed files with 15 additions and 13 deletions

View File

@ -96,6 +96,20 @@ enum Elm.Input.Hints
@since 1.12]]
}
enum Elm.Cnp_Mode
{
[[
Enum of entry's copy & paste policy.
See also @Elm.Entry.cnp_mode.set,
@Elm.Entry.cnp_mode.get.
]]
markup, [[ copy & paste text with markup tag ]]
no_image, [[ copy & paste text without item(image) tag ]]
plaintext, [[ copy & paste text without markup tag ]]
}
class Elm.Entry (Elm.Layout, Elm.Interface_Scrollable, Evas.Clickable_Interface,
Elm.Interface_Atspi_Text, Elm.Interface_Atspi_Editable_Text, Efl.File,
Evas.Selectable_Interface, Evas.Scrollable_Interface)
@ -172,7 +186,7 @@ class Elm.Entry (Elm.Layout, Elm.Interface_Scrollable, Evas.Clickable_Interface,
]]
}
values {
cnp_mode: Elm_Cnp_Mode; [[One of #Elm_Cnp_Mode: #ELM_CNP_MODE_MARKUP, #ELM_CNP_MODE_NO_IMAGE, #ELM_CNP_MODE_PLAINTEXT.]]
cnp_mode: Elm.Cnp_Mode; [[One of #Elm_Cnp_Mode: #ELM_CNP_MODE_MARKUP, #ELM_CNP_MODE_NO_IMAGE, #ELM_CNP_MODE_PLAINTEXT.]]
}
}
@property file_text_format {

View File

@ -227,18 +227,6 @@ struct _Elm_Entry_Filter_Accept_Set
*/
EAPI void elm_entry_filter_accept_set(void *data, Evas_Object *entry, char **text);
/**
* Enum of entry's copy & paste policy.
*
* @see elm_entry_cnp_mode_set()
* @see elm_entry_cnp_mode_get()
*/
typedef enum {
ELM_CNP_MODE_MARKUP, /**< copy & paste text with markup tag */
ELM_CNP_MODE_NO_IMAGE, /**< copy & paste text without item(image) tag */
ELM_CNP_MODE_PLAINTEXT /**< copy & paste text without markup tag */
} Elm_Cnp_Mode;
/**
* Get the text of the contextual menu item of entry.
*