2015-07-08 04:42:17 -07:00
|
|
|
import elm_general;
|
2016-04-19 08:12:54 -07:00
|
|
|
import elm_icon;
|
|
|
|
|
|
|
|
type Elm_Entry_Item_Provider_Cb: __undefined_type;
|
|
|
|
type Elm_Entry_Filter_Cb: __undefined_type;
|
2015-07-08 04:42:17 -07:00
|
|
|
|
2015-07-01 10:30:23 -07:00
|
|
|
enum Elm.Text_Format
|
|
|
|
{
|
|
|
|
[[Text Format types.
|
2015-07-08 07:49:38 -07:00
|
|
|
|
|
|
|
See also @Elm.Entry.file_text_format.
|
2015-07-01 10:30:23 -07:00
|
|
|
]]
|
|
|
|
plain_utf8, [[ Plain UTF8 type ]]
|
|
|
|
markup_utf8 [[ Markup UTF8 type ]]
|
|
|
|
}
|
|
|
|
|
2015-07-07 06:51:28 -07:00
|
|
|
enum Elm.Input.Panel.Layout
|
|
|
|
{
|
2015-07-08 07:49:38 -07:00
|
|
|
[[Input panel (virtual keyboard) layout types.
|
2015-07-07 06:51:28 -07:00
|
|
|
Type of input panel (virtual keyboard) to use - this is a hint and may not provide exactly what is desired.
|
2015-07-08 07:49:38 -07:00
|
|
|
See also @Elm.Entry.input_panel_layout.set.
|
2015-07-07 06:51:28 -07:00
|
|
|
]]
|
|
|
|
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.]]
|
|
|
|
terminal, [[Command-line terminal layout including esc, alt, ctrl key, so on (no auto-correct, no auto-capitalization).]]
|
|
|
|
password, [[Like normal, but no auto-correct, no auto-capitalization etc.]]
|
2015-07-08 07:49:38 -07:00
|
|
|
datetime, [[Date and time layout
|
|
|
|
|
|
|
|
@since 1.8]]
|
|
|
|
emoticon [[Emoticon layout
|
|
|
|
|
|
|
|
@since 1.10]]
|
2015-07-07 06:51:28 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
enum Elm.Input.Panel.Lang
|
|
|
|
{
|
2015-07-08 07:49:38 -07:00
|
|
|
[[Input panel (virtual keyboard) language modes.
|
2015-07-07 06:51:28 -07:00
|
|
|
|
2015-07-08 07:49:38 -07:00
|
|
|
See also @Elm.Entry.input_panel_language.set.
|
2015-07-07 06:51:28 -07:00
|
|
|
]]
|
|
|
|
automatic, [[Automatic]]
|
|
|
|
alphabet [[Alphabet]]
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Elm.Autocapital.Type
|
|
|
|
{
|
2015-07-08 07:49:38 -07:00
|
|
|
[[Autocapitalization Types.
|
2015-07-07 06:51:28 -07:00
|
|
|
Choose method of auto-capitalization.
|
|
|
|
|
2015-07-08 07:49:38 -07:00
|
|
|
See also @Elm.Entry.autocapital_type.set.
|
2015-07-07 06:51:28 -07:00
|
|
|
]]
|
|
|
|
none, [[No auto-capitalization when typing.]]
|
|
|
|
word, [[Autocapitalize each word typed.]]
|
|
|
|
sentence, [[Autocapitalize the start of each sentence.]]
|
|
|
|
allcharacter [[Autocapitalize all letters.]]
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Elm.Input.Panel.Return_Key.Type
|
|
|
|
{
|
2015-07-08 07:49:38 -07:00
|
|
|
[["Return" Key types on the input panel (virtual keyboard).
|
|
|
|
See also @Elm.Entry.input_panel_return_key_type.set.
|
2015-07-07 06:51:28 -07:00
|
|
|
|
|
|
|
]]
|
|
|
|
default, [[Default.]]
|
|
|
|
done, [[Done.]]
|
|
|
|
go, [[Go.]]
|
|
|
|
join, [[Join.]]
|
|
|
|
login, [[Login.]]
|
|
|
|
next, [[Next.]]
|
|
|
|
search, [[Search string or magnifier icon.]]
|
|
|
|
send, [[Send.]]
|
2015-07-08 07:49:38 -07:00
|
|
|
signin [[Sign-in
|
|
|
|
|
|
|
|
@since 1.8]]
|
2015-07-07 06:51:28 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
enum Elm.Input.Hints
|
|
|
|
{
|
2015-07-08 07:49:38 -07:00
|
|
|
[[Enumeration that defines the types of Input Hints.
|
|
|
|
|
|
|
|
@since 1.12
|
2015-07-07 06:51:28 -07:00
|
|
|
]]
|
|
|
|
legacy: elm_input_hint;
|
2015-07-08 07:49:38 -07:00
|
|
|
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]]
|
2015-07-07 06:51:28 -07:00
|
|
|
}
|
|
|
|
|
2016-01-14 12:17:10 -08:00
|
|
|
|
|
|
|
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 ]]
|
|
|
|
}
|
|
|
|
|
2016-01-11 02:38:57 -08:00
|
|
|
class Elm.Entry (Elm.Layout, Elm.Interface_Scrollable, Evas.Clickable_Interface,
|
|
|
|
Elm.Interface_Atspi_Text, Elm.Interface_Atspi_Editable_Text, Efl.File,
|
2016-03-22 04:17:48 -07:00
|
|
|
Evas.Selectable_Interface, Evas.Scrollable_Interface)
|
2014-03-22 10:44:29 -07:00
|
|
|
{
|
|
|
|
eo_prefix: elm_obj_entry;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property scrollable {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Enable or disable scrolling in entry
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
Normally the entry is not scrollable unless you enable it with this call.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get the scrollable state of the entry
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
Normally the entry is not scrollable. This gets the scrollable state
|
|
|
|
of the entry.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
scroll: bool; [[$true if it is to be scrollable, $false otherwise.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property input_panel_show_on_demand {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Set the attribute to show the input panel in case of only an user's explicit Mouse Up event.
|
|
|
|
It doesn't request to show the input panel even though it has focus.
|
2015-08-12 11:13:29 -07:00
|
|
|
|
|
|
|
@since 1.9
|
2015-08-07 05:04:27 -07:00
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get the attribute to show the input panel in case of only an user's explicit Mouse Up event.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
@since 1.9
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
ondemand: bool; [[If true, the input panel will be shown in case of only Mouse up event.
|
2014-03-22 10:44:29 -07:00
|
|
|
(Focus event will be ignored.)
|
2015-08-12 11:13:29 -07:00
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property context_menu_disabled {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This disables the entry's contextual (longpress) menu.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This returns whether the entry's contextual (longpress) menu is
|
|
|
|
disabled.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
disabled: bool; [[If $true, the menu is disabled.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property cnp_mode {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Control pasting of text and images for the widget.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
Normally the entry allows both text and images to be pasted.
|
|
|
|
By setting cnp_mode to be #ELM_CNP_MODE_NO_IMAGE, this prevents images from being copy or past.
|
|
|
|
By setting cnp_mode to be #ELM_CNP_MODE_PLAINTEXT, this remove all tags in text .
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
Note: This only changes the behaviour of text.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Getting elm_entry text paste/drop mode.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
Normally the entry allows both text and images to be pasted.
|
|
|
|
This gets the copy & paste mode of the entry.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-01-14 12:17:10 -08:00
|
|
|
cnp_mode: Elm.Cnp_Mode; [[One of #Elm_Cnp_Mode: #ELM_CNP_MODE_MARKUP, #ELM_CNP_MODE_NO_IMAGE, #ELM_CNP_MODE_PLAINTEXT.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-07-01 10:30:23 -07:00
|
|
|
@property file_text_format {
|
|
|
|
[[Text format used to load and save the file, which could be plain text or markup text.
|
|
|
|
|
2015-07-08 07:49:38 -07:00
|
|
|
Default is $ELM_TEXT_FORMAT_PLAIN_UTF8, if you want to use
|
|
|
|
$ELM_TEXT_FORMAT_MARKUP_UTF8 then you need to set the text format
|
|
|
|
before calling @Efl.File.file.set.
|
2015-07-01 10:30:23 -07:00
|
|
|
|
2015-07-08 07:49:38 -07:00
|
|
|
You could also set it before a call to @.file_save
|
2015-07-01 10:30:23 -07:00
|
|
|
in order to save with the given format.
|
|
|
|
]]
|
|
|
|
|
|
|
|
set {
|
2015-07-08 07:49:38 -07:00
|
|
|
[[Use it before calling @Efl.File.file.set or @.file_save.]]
|
2015-07-01 10:30:23 -07:00
|
|
|
}
|
|
|
|
values {
|
|
|
|
format: Elm.Text_Format(Elm.Text_Format.plain_utf8); [[ The file format ]]
|
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property input_panel_language {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Set the language mode of the input panel.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
This API can be used if you want to show the alphabet keyboard mode.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get the language mode of the input panel.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
lang: Elm.Input.Panel.Lang; [[language to be set to the input panel.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property selection_handler_disabled {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This disabled the entry's selection handlers.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This returns whether the entry's selection handlers are disabled.]]
|
2014-08-11 07:46:11 -07:00
|
|
|
legacy: null;
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
disabled: bool; [[If $true, the selection handlers are disabled.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property input_panel_layout_variation {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Set the input panel layout variation of the entry
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get the input panel layout variation of the entry
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
variation: int; [[layout variation type.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property autocapital_type {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Set the autocapitalization type on the immodule.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get the autocapitalization type on the immodule.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
autocapital_type: Elm.Autocapital.Type; [[The type of autocapitalization.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2016-03-22 04:17:48 -07:00
|
|
|
@property editable {
|
|
|
|
set {
|
|
|
|
[[Sets if the entry is to be editable or not.
|
|
|
|
|
|
|
|
By default, entries are editable and when focused, any text input by the
|
|
|
|
user will be inserted at the current cursor position. But calling this
|
|
|
|
function with $editable as $false will prevent the user from
|
|
|
|
inputting text into the entry.
|
|
|
|
|
|
|
|
The only way to change the text of a non-editable entry is to use
|
|
|
|
\@ref elm_object_text_set, \@ref elm_entry_entry_insert and other related
|
|
|
|
functions.
|
|
|
|
]]
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
[[Get whether the entry is editable or not.]]
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
editable: bool; [[If $true, user input will be inserted in the entry,
|
|
|
|
if not, the entry is read-only and no user input is allowed.]]
|
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property anchor_hover_style {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Set the style that the hover should use
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
When creating the popup hover, entry will request that it's
|
|
|
|
themed according to $style.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
Setting style no $null means disabling automatic hover.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get the style that the hover should use.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
style: const(char)* @nullable; [[The style to use for the underlying hover.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property single_line {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Sets the entry to single line mode.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
In single line mode, entries don't ever wrap when the text reaches the
|
|
|
|
edge, and instead they keep growing horizontally. Pressing the $Enter
|
|
|
|
key will generate an $"activate" event instead of adding a new line.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
When $single_line is $false, line wrapping takes effect again
|
|
|
|
and pressing enter will break the text into a different line
|
|
|
|
without generating any events.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get whether the entry is set to be single line.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
single_line: bool; [[If true, the text in the entry
|
|
|
|
will be on a single line.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property password {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Sets the entry to password mode.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
In password mode, entries are implicitly single line and the display of
|
|
|
|
any text in them is replaced with asterisks (*).
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get whether the entry is set to password mode.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
password: bool; [[If true, password mode is enabled.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property input_panel_return_key_disabled {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Set the return key on the input panel to be disabled.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get whether the return key on the input panel should be disabled or not.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
disabled: bool; [[The state to put in in: $true for
|
|
|
|
disabled, $false for enabled.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property autosave {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This sets the entry object to 'autosave' the loaded text file or not.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This gets the entry object's 'autosave' status.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
auto_save: bool; [[Autosave the loaded file or not.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property anchor_hover_parent {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Set the parent of the hover popup
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
Sets the parent object to use by the hover created by the entry
|
|
|
|
when an anchor is clicked.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get the parent of the hover popup
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
Get the object used as parent for the hover created by the entry
|
|
|
|
widget. If no parent is set, the same entry object will be used.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
parent: Evas.Object * @nullable; [[The object to use as parent for the hover.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property prediction_allow {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Set whether the entry should allow to use the text prediction.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get whether the entry should allow to use the text prediction.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
prediction: bool; [[Whether the entry should allow to use the text prediction.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property input_hint {
|
2014-09-01 03:04:05 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Sets the input hint which allows input methods to fine-tune their behavior.]]
|
2014-09-01 03:04:05 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Gets the value of input hint.]]
|
2014-09-01 03:04:05 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
hints: Elm.Input.Hints; [[Input hint.]]
|
2014-09-01 03:04:05 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property input_panel_layout {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Set the input panel layout of the entry.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get the input panel layout of the entry.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
layout: Elm.Input.Panel.Layout(Elm.Input.Panel.Layout.invalid); [[layout type.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property input_panel_return_key_type {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Set the "return" key type. This type is used to set string or icon on the "return" key of the input panel.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
An input panel displays the string or icon associated with this type.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get the "return" key type.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
return_key_type: Elm.Input.Panel.Return_Key.Type; [[The type of "return" key on the input panel.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property input_panel_enabled {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Sets the attribute to show the input panel automatically.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get the attribute to show the input panel automatically.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
enabled: bool; [[If true, the input panel is appeared when entry is clicked or has a focus.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property line_wrap {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Set the line wrap type to use on multi-line entries.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
Sets the wrap type used by the entry to any of the specified in
|
|
|
|
Elm_Wrap_Type. This tells how the text will be implicitly cut into a new
|
|
|
|
line (without inserting a line break or paragraph separator) when it
|
|
|
|
reaches the far edge of the widget.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
Note that this only makes sense for multi-line entries. A widget set
|
|
|
|
to be single line will never wrap.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get the wrap mode the entry was set to use.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
wrap: Elm.Wrap.Type; [[The wrap mode to use. See Elm_Wrap_Type for details on them.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property cursor_pos {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Sets the cursor position in the entry to the given value
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
The value in $pos is the index of the character position within the
|
|
|
|
contents of the string as returned by @.cursor_pos.get.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get the current position of the cursor in the entry.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
pos: int; [[The position of the cursor.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property icon_visible {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Sets the visibility of the left-side widget of the entry,
|
|
|
|
set by \@ref elm_object_part_content_set.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
setting: bool; [[$true if the object should be displayed,
|
|
|
|
$false if not.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property cursor_line_end {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This moves the cursor to the end of the current line.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property select_region {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This selects a region of text within the entry.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
@since 1.9
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
2016-02-12 03:18:05 -08:00
|
|
|
get {
|
|
|
|
[[Get the current position of the selection cursors in the entry.
|
|
|
|
|
|
|
|
@since 1.18
|
|
|
|
]]
|
|
|
|
}
|
2014-03-22 10:44:29 -07:00
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
start: int; [[The starting position.]]
|
|
|
|
end: int; [[The end position.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property input_panel_return_key_autoenabled {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Set whether the return key on the input panel is disabled automatically when entry has no text.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
If $enabled is $true, The return key on input panel is disabled when the entry has no text.
|
|
|
|
The return key on the input panel is automatically enabled when the entry has text.
|
|
|
|
The default value is $false.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
enabled: bool; [[If $enabled is true, the return key is automatically disabled when the entry has no text.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property end_visible {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Sets the visibility of the end widget of the entry, set by
|
|
|
|
\@ref elm_object_part_content_set(ent, "end", content).]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
setting: bool; [[true if the object should be displayed,
|
|
|
|
false if not.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property cursor_begin {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This moves the cursor to the beginning of the entry.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property cursor_line_begin {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This moves the cursor to the beginning of the current line.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property cursor_end {
|
2014-03-22 10:44:29 -07:00
|
|
|
set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This moves the cursor to the end of the entry.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property textblock {
|
2014-03-22 10:44:29 -07:00
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[
|
|
|
|
Returns the actual textblock object of the entry.
|
|
|
|
|
|
|
|
This function exposes the internal textblock object that actually
|
|
|
|
contains and draws the text. This should be used for low-level
|
|
|
|
manipulations that are otherwise not possible.
|
|
|
|
|
|
|
|
Changing the textblock directly from here will not notify edje/elm to
|
|
|
|
recalculate the textblock size automatically, so any modifications
|
|
|
|
done to the textblock returned by this function should be followed by
|
|
|
|
a call to \@ref elm_entry_calc_force.
|
|
|
|
|
|
|
|
The return value is marked as const as an additional warning.
|
|
|
|
One should not use the returned object with any of the generic evas
|
|
|
|
functions (geometry_get/resize/move and etc), but only with the textblock
|
|
|
|
functions; The former will either not work at all, or break the correct
|
|
|
|
functionality.
|
|
|
|
|
|
|
|
IMPORTANT: Many functions may change (i.e delete and create a new one)
|
|
|
|
the internal textblock object. Do NOT cache the returned object, and try
|
|
|
|
not to mix calls on this object with regular elm_entry calls (which may
|
|
|
|
change the internal textblock object). This applies to all cursors
|
|
|
|
returned from textblock calls, and all the other derivative values.
|
|
|
|
]]
|
2015-06-26 07:36:43 -07:00
|
|
|
return: Evas.Object *;
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property cursor_geometry {
|
2014-03-22 10:44:29 -07:00
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This function returns the geometry of the cursor.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
It's useful if you want to draw something on the cursor (or where it is),
|
|
|
|
or for example in the case of scrolled entry where you want to show the
|
|
|
|
cursor.
|
|
|
|
]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-07 05:04:27 -07:00
|
|
|
x: Evas.Coord; [[returned geometry.]]
|
|
|
|
y: Evas.Coord; [[returned geometry.]]
|
|
|
|
w: Evas.Coord; [[returned geometry.]]
|
|
|
|
h: Evas.Coord; [[returned geometry.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property imf_context {
|
2014-03-22 10:44:29 -07:00
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Returns the input method context of the entry.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
This function exposes the internal input method context.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
IMPORTANT: Many functions may change (i.e delete and create a new one)
|
|
|
|
the internal input method context. Do NOT cache the returned object.
|
|
|
|
]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: void *;
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property cursor_is_format {
|
2014-03-22 10:44:29 -07:00
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get whether a format node exists at the current cursor position.
|
|
|
|
|
|
|
|
A format node is anything that defines how the text is rendered. It can
|
|
|
|
be a visible format node, such as a line break or a paragraph separator,
|
|
|
|
or an invisible one, such as bold begin or end tag.
|
|
|
|
This function returns whether any format node exists at the current
|
|
|
|
cursor position.
|
|
|
|
]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property cursor_content {
|
2014-03-22 10:44:29 -07:00
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get the character pointed by the cursor at its current position.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
This function returns a string with the utf8 character stored at the
|
|
|
|
current cursor position.
|
|
|
|
Only the text is returned, any format that may exist will not be part
|
|
|
|
of the return value. You must free the string when done with \@ref free.
|
|
|
|
]]
|
2015-04-23 03:46:48 -07:00
|
|
|
return: own(char *) @warn_unused;
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property selection {
|
2014-03-22 10:44:29 -07:00
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get any selected text within the entry.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
If there's any selected text in the entry, this function returns it as
|
|
|
|
a string in markup format. $null is returned if no selection exists or
|
|
|
|
if an error occurred.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
The returned value points to an internal string and should not be freed
|
|
|
|
or modified in any way. If the $entry object is deleted or its
|
|
|
|
contents are changed, the returned pointer should be considered invalid.
|
|
|
|
]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: const(char)*;
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property cursor_is_visible_format {
|
2014-03-22 10:44:29 -07:00
|
|
|
get {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get if the current cursor position holds a visible format node.]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
cursor_prev {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This moves the cursor one place to the left within the entry.]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
text_style_user_pop {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Remove the style in the top of user style stack.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
@since 1.7
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
item_provider_prepend {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This prepends a custom item provider to the list for that entry
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
This prepends the given callback.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
params {
|
2015-08-07 05:04:27 -07:00
|
|
|
@in func: Elm_Entry_Item_Provider_Cb; [[The function called to provide the item object.]]
|
|
|
|
@in data: void * @optional; [[The data passed to $func.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
input_panel_show {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Show the input panel (virtual keyboard) based on the input panel property of entry such as layout, autocapital types, and so on.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
Note that input panel is shown or hidden automatically according to the focus state of entry widget.
|
|
|
|
This API can be used in the case of manually controlling by using @.input_panel_enabled.set(en, $false).
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
imf_context_reset {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Reset the input method context of the entry if needed.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
This can be necessary in the case where modifying the buffer would confuse on-going input method behavior.
|
|
|
|
This will typically cause the Input Method Context to clear the preedit state.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
calc_force {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Forces calculation of the entry size and text layouting.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
This should be used after modifying the textblock object directly. See
|
|
|
|
@.textblock.get for more information.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
anchor_hover_end {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Ends the hover popup in the entry
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
When an anchor is clicked, the entry widget will create a hover
|
|
|
|
object to use as a popup with user provided content. This function
|
|
|
|
terminates this popup, returning the entry to its normal state.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
cursor_selection_begin {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This begins a selection within the entry as though
|
|
|
|
the user were holding down the mouse button to make a selection.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
cursor_down {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This moves the cursor one line down within the entry.]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
file_save {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This function writes any changes made to the file set with
|
|
|
|
\@ref elm_entry_file_set.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
selection_copy {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This executes a "copy" action on the selected text in the entry.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
text_style_user_push {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Push the style to the top of user style stack.
|
|
|
|
If there is styles in the user style stack, the properties in the top style
|
|
|
|
of user style stack will replace the properties in current theme.
|
|
|
|
The input style is specified in format tag='property=value' (i.e. DEFAULT='font=Sans font_size=60'hilight=' + font_weight=Bold').
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
@since 1.7
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
params {
|
2015-08-07 05:04:27 -07:00
|
|
|
@in style: const(char)*; [[The style user to push.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
item_provider_remove {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This removes a custom item provider to the list for that entry
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
This removes the given callback. See @.item_provider_append for
|
|
|
|
more information
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
params {
|
2015-08-07 05:04:27 -07:00
|
|
|
@in func: Elm_Entry_Item_Provider_Cb; [[The function called to provide the item object.]]
|
|
|
|
@in data: void * @optional; [[The data passed to $func.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
text_style_user_peek @const {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get the style on the top of user style stack.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
See also @.text_style_user_push.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
@since 1.7
|
|
|
|
]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: const(char)*;
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
context_menu_clear {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This clears and frees the items in a entry's contextual (longpress)
|
|
|
|
menu.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
See also @.context_menu_item_add.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
cursor_up {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This moves the cursor one line up within the entry.]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
entry_insert {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Inserts the given text into the entry at the current cursor position.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
This inserts text at the cursor position as if it was typed
|
|
|
|
by the user (note that this also allows markup which a user
|
|
|
|
can't just "type" as it would be converted to escaped text, so this
|
|
|
|
call can be used to insert things like emoticon items or bold push/pop
|
|
|
|
tags, other font and color change tags etc.)
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
If any selection exists, it will be replaced by the inserted text.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
The inserted text is subject to any filters set for the widget.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
See also @.markup_filter_append.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
params {
|
2015-08-07 05:04:27 -07:00
|
|
|
@in entry: const(char)*; [[The text to insert.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
input_panel_imdata_set {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Set the input panel-specific data to deliver to the input panel.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
This API is used by applications to deliver specific data to the input panel.
|
|
|
|
The data format MUST be negotiated by both application and the input panel.
|
|
|
|
The size and format of data are defined by the input panel.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
params {
|
2015-08-07 05:04:27 -07:00
|
|
|
@in data: const(void)*; [[The specific data to be set to the input panel.]]
|
|
|
|
@in len: int; [[The length of data, in bytes, to send to the input panel.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
input_panel_imdata_get @const {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get the specific data of the current input panel.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
params {
|
2015-08-07 05:04:27 -07:00
|
|
|
@out data: void; [[The specific data to be got from the input panel.]]
|
|
|
|
@out len: int; [[The length of data.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
selection_paste {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This executes a "paste" action in the entry.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
cursor_next {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This moves the cursor one place to the right within the entry.]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
select_none {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This drops any existing text selection within the entry.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
input_panel_hide {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Hide the input panel (virtual keyboard).
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
Note that input panel is shown or hidden automatically according to the focus state of entry widget.
|
|
|
|
This API can be used in the case of manually controlling by using @.input_panel_enabled.set(en, $false)
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
select_all {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This selects all text within the entry.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
cursor_selection_end {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This ends a selection within the entry as though
|
|
|
|
the user had just released the mouse button while making a selection.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
selection_cut {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This executes a "cut" action on the selected text in the entry.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
2014-07-22 09:13:52 -07:00
|
|
|
is_empty @const {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Get whether the entry is empty.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
Empty means no text at all. If there are any markup tags, like an item
|
|
|
|
tag for which no provider finds anything, and no text is displayed, this
|
|
|
|
function still returns $false.
|
|
|
|
]]
|
2015-02-08 20:09:05 -08:00
|
|
|
return: bool(true);
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
markup_filter_remove {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Remove a markup filter from the list
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
Removes the given callback from the filter list. See
|
|
|
|
@.markup_filter_append for more information.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
params {
|
2015-08-07 05:04:27 -07:00
|
|
|
@in func: Elm_Entry_Filter_Cb; [[The filter function to remove.]]
|
|
|
|
@in data: void * @optional; [[The user data passed when adding the function.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
item_provider_append {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This appends a custom item provider to the list for that entry
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
This appends the given callback. The list is walked from beginning to end
|
|
|
|
with each function called given the item href string in the text. If the
|
|
|
|
function returns an object handle other than $null (it should create an
|
|
|
|
object to do this), then this object is used to replace that item. If
|
|
|
|
not the next provider is called until one provides an item object, or the
|
|
|
|
default provider in entry does.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
See also \@ref entry-items.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
params {
|
2015-08-07 05:04:27 -07:00
|
|
|
@in func: Elm_Entry_Item_Provider_Cb; [[The function called to provide the item object.]]
|
|
|
|
@in data: void * @optional; [[The data passed to $func.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
markup_filter_append {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Append a markup filter function for text inserted in the entry
|
|
|
|
|
|
|
|
Append the given callback to the list. This functions will be called
|
|
|
|
whenever any text is inserted into the entry, with the text to be inserted
|
|
|
|
as a parameter. The type of given text is always markup.
|
|
|
|
The callback function is free to alter the text in any way it wants, but
|
|
|
|
it must remember to free the given pointer and update it.
|
|
|
|
If the new text is to be discarded, the function can free it and set its
|
|
|
|
text parameter to $null. This will also prevent any following filters from
|
|
|
|
being called.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
params {
|
2015-08-07 05:04:27 -07:00
|
|
|
@in func: Elm_Entry_Filter_Cb; [[The function to use as text filter.]]
|
|
|
|
@in data: void * @optional; [[User data to pass to $func.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
entry_append {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Appends $str to the text of the entry.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
Adds the text in $str to the end of any text already present in the
|
|
|
|
widget.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
The appended text is subject to any filters set for the widget.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
See also @.markup_filter_append.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
params {
|
2015-08-07 05:04:27 -07:00
|
|
|
@in str: const(char)*; [[The text to be appended.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
context_menu_item_add {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[This adds an item to the entry's contextual menu.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
A longpress on an entry will make the contextual menu show up, if this
|
|
|
|
hasn't been disabled with @.context_menu_disabled.set.
|
|
|
|
By default, this menu provides a few options like enabling selection mode,
|
|
|
|
which is useful on embedded devices that need to be explicit about it,
|
|
|
|
and when a selection exists it also shows the copy and cut actions.
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
With this function, developers can add other options to this menu to
|
|
|
|
perform any action they deem necessary.
|
|
|
|
]]
|
2014-03-22 10:44:29 -07:00
|
|
|
params {
|
2015-08-07 05:04:27 -07:00
|
|
|
@in label: const(char)* @optional; [[The item's text label.]]
|
|
|
|
@in icon_file: const(char)* @optional; [[The item's icon file.]]
|
2016-01-14 12:11:20 -08:00
|
|
|
@in icon_type: Elm.Icon.Type; [[The item's icon type.]]
|
2015-08-07 05:04:27 -07:00
|
|
|
@in func: Evas_Smart_Cb @optional; [[The callback to execute when the item is clicked.]]
|
|
|
|
@in data: const(void)* @optional; [[The data to associate with the item for related functions.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
markup_filter_prepend {
|
2015-08-07 05:04:27 -07:00
|
|
|
[[Prepend a markup filter function for text inserted in the entry
|
2014-03-22 10:44:29 -07:00
|
|
|
|
2015-08-07 05:04:27 -07:00
|
|
|
Prepend the given callback to the list.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
params {
|
2015-08-07 05:04:27 -07:00
|
|
|
@in func: Elm_Entry_Filter_Cb; [[The function to use as text filter.]]
|
|
|
|
@in data: void * @optional; [[User data to pass to $func.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2014-06-27 15:36:05 -07:00
|
|
|
Eo.Base.constructor;
|
|
|
|
Evas.Object_Smart.move;
|
|
|
|
Evas.Object_Smart.member_add;
|
|
|
|
Evas.Object_Smart.add;
|
|
|
|
Evas.Object_Smart.resize;
|
|
|
|
Evas.Object_Smart.del;
|
|
|
|
Evas.Object_Smart.show;
|
|
|
|
Evas.Object_Smart.hide;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.activate;
|
|
|
|
Elm.Widget.focus_direction_manager_is;
|
|
|
|
Elm.Widget.theme_apply;
|
|
|
|
Elm.Widget.on_focus;
|
|
|
|
Elm.Widget.on_focus_region;
|
|
|
|
Elm.Widget.disable;
|
|
|
|
Elm.Widget.sub_object_del;
|
|
|
|
Elm.Widget.focus_next_manager_is;
|
2016-04-19 22:55:26 -07:00
|
|
|
Efl.Container.content_unset;
|
|
|
|
Efl.Container.content.set;
|
2015-04-22 04:37:40 -07:00
|
|
|
Elm.Layout.theme_enable;
|
|
|
|
Elm.Layout.sizing_eval;
|
2014-12-09 10:41:16 -08:00
|
|
|
Elm.Layout.text.get;
|
2015-04-22 04:37:40 -07:00
|
|
|
Elm.Layout.signal_callback_add;
|
|
|
|
Elm.Layout.signal_callback_del;
|
|
|
|
Elm.Layout.signal_emit;
|
2014-12-09 10:41:16 -08:00
|
|
|
Elm.Layout.text.set;
|
2015-04-22 04:37:40 -07:00
|
|
|
Elm.Layout.content_aliases.get;
|
2016-01-11 02:38:57 -08:00
|
|
|
Elm.Interface_Scrollable.policy.set;
|
|
|
|
Elm.Interface_Scrollable.bounce_allow.set;
|
|
|
|
Elm.Interface_Atspi_Accessible.state_set.get;
|
|
|
|
Elm.Interface_Atspi_Accessible.name.get;
|
|
|
|
Elm.Interface_Atspi_Text.text.get;
|
|
|
|
Elm.Interface_Atspi_Text.string.get;
|
|
|
|
Elm.Interface_Atspi_Text.attribute.get;
|
|
|
|
Elm.Interface_Atspi_Text.attributes.get;
|
|
|
|
Elm.Interface_Atspi_Text.default_attributes.get;
|
|
|
|
Elm.Interface_Atspi_Text.caret_offset.get;
|
|
|
|
Elm.Interface_Atspi_Text.caret_offset.set;
|
|
|
|
Elm.Interface_Atspi_Text.character.get;
|
|
|
|
Elm.Interface_Atspi_Text.character_extents.get;
|
|
|
|
Elm.Interface_Atspi_Text.character_count.get;
|
|
|
|
Elm.Interface_Atspi_Text.offset_at_point.get;
|
|
|
|
Elm.Interface_Atspi_Text.bounded_ranges.get;
|
|
|
|
Elm.Interface_Atspi_Text.range_extents.get;
|
|
|
|
Elm.Interface_Atspi_Text.selection.get;
|
|
|
|
Elm.Interface_Atspi_Text.selections_count.get;
|
|
|
|
Elm.Interface_Atspi_Text.selection_add;
|
|
|
|
Elm.Interface_Atspi_Text.selection_remove;
|
|
|
|
Elm.Interface_Atspi_Text.selection.set;
|
|
|
|
Elm.Interface_Atspi_Editable_Text.content.set;
|
|
|
|
Elm.Interface_Atspi_Editable_Text.insert;
|
|
|
|
Elm.Interface_Atspi_Editable_Text.copy;
|
|
|
|
Elm.Interface_Atspi_Editable_Text.cut;
|
|
|
|
Elm.Interface_Atspi_Editable_Text.delete;
|
|
|
|
Elm.Interface_Atspi_Editable_Text.paste;
|
2015-07-01 10:30:23 -07:00
|
|
|
Efl.File.file.set;
|
|
|
|
Efl.File.file.get;
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
events {
|
2014-04-29 05:59:59 -07:00
|
|
|
activated;
|
2014-05-28 00:09:39 -07:00
|
|
|
changed;
|
|
|
|
changed,user;
|
2015-04-02 02:37:37 -07:00
|
|
|
validate;
|
2015-06-03 02:41:13 -07:00
|
|
|
context,open;
|
2015-05-10 07:50:04 -07:00
|
|
|
anchor,clicked;
|
|
|
|
rejected;
|
|
|
|
maxlength,reached;
|
|
|
|
preedit,changed;
|
|
|
|
press;
|
|
|
|
redo,request;
|
|
|
|
undo,request;
|
|
|
|
text,set,done;
|
|
|
|
aborted;
|
|
|
|
anchor,down;
|
|
|
|
anchor,hover,opened;
|
|
|
|
anchor,in;
|
|
|
|
anchor,out;
|
|
|
|
anchor,up;
|
|
|
|
cursor,changed;
|
|
|
|
cursor,changed,manual;
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|