2015-07-08 04:42:17 -07:00
|
|
|
import elm_general;
|
2016-04-19 08:12:54 -07:00
|
|
|
|
2016-11-03 03:51:14 -07:00
|
|
|
type Elm_Entry_Item_Provider_Cb: __undefined_type; [[Elementary entry item provider callback type]]
|
|
|
|
type Elm_Entry_Filter_Cb: __undefined_type; [[Elementary entry filter callback type]]
|
2015-07-08 04:42:17 -07:00
|
|
|
|
2019-02-27 10:17:16 -08:00
|
|
|
class Elm.Entry extends Efl.Ui.Layout_Base implements Elm.Interface_Scrollable, Efl.Ui.Clickable,
|
2017-09-25 01:15:44 -07:00
|
|
|
Efl.Access.Text, Efl.Access.Editable.Text, Efl.File,
|
2018-01-23 22:50:58 -08:00
|
|
|
Efl.Ui.Selectable, Efl.Ui.Scrollable, Efl.Access.Widget.Action,
|
2019-01-18 05:22:23 -08:00
|
|
|
Efl.Ui.Legacy
|
2014-03-22 10:44:29 -07:00
|
|
|
{
|
2016-11-17 07:30:05 -08:00
|
|
|
[[Elementary entry class]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_entry;
|
2014-03-22 10:44:29 -07:00
|
|
|
eo_prefix: elm_obj_entry;
|
2016-05-17 09:14:47 -07:00
|
|
|
event_prefix: elm_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 {
|
2016-11-17 07:30:05 -08: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
|
2019-02-27 10:17:09 -08:00
|
|
|
before calling @Efl.File.load.
|
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 {
|
2019-02-27 10:17:09 -08:00
|
|
|
[[Use it before calling @Efl.File.load 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 {
|
2016-11-17 07:30:05 -08: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 {
|
2016-11-17 07:30:05 -08: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 {
|
2016-05-31 08:02:26 -07:00
|
|
|
style: string @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 {
|
2016-11-17 07:30:05 -08:00
|
|
|
single_line: bool; [[If $true, the text in the entry
|
2015-08-07 05:04:27 -07:00
|
|
|
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 {
|
2016-11-17 07:30:05 -08: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 {
|
2016-06-20 21:26:15 -07:00
|
|
|
parent: Efl.Canvas.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 {
|
2016-11-17 07:30:05 -08: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.
|
2016-08-23 01:11:01 -07:00
|
|
|
|
|
|
|
Regardless of return key type, "activated" event will be generated when pressing return key in single line entry.
|
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 "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 {
|
2016-11-17 07:30:05 -08: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 {
|
2016-11-17 07:30:05 -08: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 {
|
2016-11-17 07:30:05 -08:00
|
|
|
setting: bool; [[$true if the object should be displayed,
|
2015-08-07 05:04:27 -07:00
|
|
|
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.
|
|
|
|
]]
|
2016-11-17 07:30:05 -08:00
|
|
|
return: Efl.Canvas.Object; [[Textblock object]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2018-02-14 18:14:52 -08:00
|
|
|
@property textblock_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.
|
|
|
|
]]
|
2018-02-14 18:14:52 -08:00
|
|
|
legacy: elm_entry_cursor_geometry_get;
|
2016-11-17 07:30:05 -08:00
|
|
|
return: bool; [[$true on success, $false otherwise]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
values {
|
2017-05-15 01:23:11 -07:00
|
|
|
x: int; [[X coordinate]]
|
|
|
|
y: int; [[Y coordinate]]
|
|
|
|
w: int; [[Width]]
|
|
|
|
h: int; [[Height]]
|
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.
|
|
|
|
]]
|
2016-11-17 07:30:05 -08:00
|
|
|
return: void_ptr; [[Input method context]]
|
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.
|
|
|
|
]]
|
2016-11-17 07:30:05 -08:00
|
|
|
return: bool; [[$true if format node exists, $false otherwise]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2018-02-14 18:14:52 -08:00
|
|
|
@property textblock_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.
|
|
|
|
]]
|
2018-02-14 18:14:52 -08:00
|
|
|
legacy: elm_entry_cursor_content_get;
|
2017-09-22 08:10:42 -07:00
|
|
|
return: mstring @owned @warn_unused; [[Character]]
|
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.
|
|
|
|
]]
|
2016-11-17 07:30:05 -08:00
|
|
|
return: string; [[Selected string]]
|
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.]]
|
2016-11-17 07:30:05 -08:00
|
|
|
return: bool; [[$true if position has a visible format, $false otherwise]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2016-05-11 19:10:42 -07:00
|
|
|
@property select_allow {
|
2016-08-12 08:24:27 -07:00
|
|
|
[[Allow selection in the entry.
|
2016-08-12 06:58:46 -07:00
|
|
|
|
2016-08-12 08:24:27 -07:00
|
|
|
@since 1.18
|
|
|
|
]]
|
|
|
|
set {
|
2016-05-11 19:10:42 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
allow: bool; [[If $allow is true, the text selection is allowed.]]
|
|
|
|
}
|
|
|
|
}
|
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.]]
|
2016-11-17 07:30:05 -08:00
|
|
|
return: bool; [[$true on success, $false otherwise]]
|
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.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
@in data: void_ptr @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
|
|
|
}
|
|
|
|
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.]]
|
2016-11-17 07:30:05 -08:00
|
|
|
return: bool; [[$true on success, $false otherwise]]
|
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 {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in style: string; [[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.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
@in data: void_ptr @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
|
|
|
|
]]
|
2016-11-17 07:30:05 -08:00
|
|
|
return: string; [[Style]]
|
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.]]
|
2016-11-17 07:30:05 -08:00
|
|
|
return: bool; [[$true on success, $false otherwise]]
|
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 {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in entry: string; [[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 {
|
2016-06-02 04:54:59 -07:00
|
|
|
@in data: const(void_ptr); [[The specific data to be set to the input panel.]]
|
2015-08-07 05:04:27 -07:00
|
|
|
@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 {
|
2016-06-30 04:32:02 -07:00
|
|
|
@out data: void; [[The specific data to be got from the input panel.]]
|
2015-08-07 05:04:27 -07:00
|
|
|
@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.]]
|
2016-11-17 07:30:05 -08:00
|
|
|
return: bool; [[$true on success, $false otherwise]]
|
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.
|
|
|
|
]]
|
2016-11-17 07:30:05 -08:00
|
|
|
return: bool(true); [[$true if empty, $false otherwise]]
|
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.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
@in data: void_ptr @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.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
@in data: void_ptr @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.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
@in data: void_ptr @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 {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in str: string; [[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 {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in label: string @optional; [[The item's text label.]]
|
|
|
|
@in icon_file: string @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.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
@in data: const(void_ptr) @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.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
@in data: void_ptr @optional; [[User data to pass to $func.]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|
2017-06-25 21:44:58 -07:00
|
|
|
prediction_hint_set {
|
2017-06-26 01:53:04 -07:00
|
|
|
[[Sets the prediction hint to use an intelligent reply suggestion service.
|
|
|
|
|
|
|
|
@since 1.20
|
|
|
|
]]
|
2017-06-25 21:44:58 -07:00
|
|
|
params {
|
|
|
|
prediction_hint: string; [[The prediction hint text.]]
|
|
|
|
}
|
|
|
|
}
|
2018-05-22 19:26:30 -07:00
|
|
|
prediction_hint_hash_set {
|
|
|
|
[[Sets the prediction hint data at the specified key.
|
|
|
|
|
|
|
|
@since 1.21
|
|
|
|
]]
|
|
|
|
return: bool; [[$true on success, $false otherwise]]
|
|
|
|
params {
|
|
|
|
key: string; [[The key of the prediction hint.]]
|
|
|
|
value: string; [[The data to replace.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
prediction_hint_hash_del {
|
|
|
|
[[Removes the prediction hint data identified by a key.
|
|
|
|
|
|
|
|
@since 1.21
|
|
|
|
]]
|
|
|
|
return: bool; [[$true on success, $false otherwise]]
|
|
|
|
params {
|
|
|
|
key: string; [[The key of the prediction hint.]]
|
|
|
|
}
|
|
|
|
}
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2018-04-05 01:47:26 -07:00
|
|
|
Efl.Gfx.Entity.visible { set; }
|
|
|
|
Efl.Gfx.Entity.position { set; }
|
|
|
|
Efl.Gfx.Entity.size { set; }
|
2016-06-17 01:26:08 -07:00
|
|
|
Efl.Canvas.Group.group_member_add;
|
2017-12-04 21:39:20 -08:00
|
|
|
Efl.Layout.Signal.signal_callback_add;
|
|
|
|
Efl.Layout.Signal.signal_callback_del;
|
|
|
|
Efl.Layout.Signal.signal_emit;
|
2018-02-14 18:14:52 -08:00
|
|
|
Efl.Layout.Calc.calc_force;
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.on_access_activate;
|
|
|
|
Efl.Ui.Widget.theme_apply;
|
2018-05-16 10:30:28 -07:00
|
|
|
Efl.Ui.Widget_Focus_Manager.focus_manager_create;
|
2018-01-19 00:25:47 -08:00
|
|
|
Efl.Ui.Focus.Object.on_focus_update;
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.interest_region { get; }
|
2019-02-27 11:00:14 -08:00
|
|
|
Efl.Ui.Widget.disabled {set;}
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.widget_sub_object_del;
|
2016-12-27 10:15:41 -08:00
|
|
|
Elm.Interface_Scrollable.policy { set; }
|
|
|
|
Elm.Interface_Scrollable.bounce_allow { set; }
|
2018-04-03 04:27:30 -07:00
|
|
|
Efl.Access.Object.state_set { get; }
|
|
|
|
Efl.Access.Object.i18n_name { get; }
|
2018-02-14 18:14:52 -08:00
|
|
|
Efl.Access.Text.access_text { get; }
|
2017-09-25 01:15:44 -07:00
|
|
|
Efl.Access.Text.string { get; }
|
|
|
|
Efl.Access.Text.attribute { get; }
|
2018-02-14 18:14:52 -08:00
|
|
|
Efl.Access.Text.text_attributes { get; }
|
2017-09-25 01:15:44 -07:00
|
|
|
Efl.Access.Text.default_attributes { get; }
|
|
|
|
Efl.Access.Text.caret_offset { get; set; }
|
|
|
|
Efl.Access.Text.character { get; }
|
|
|
|
Efl.Access.Text.character_extents { get; }
|
|
|
|
Efl.Access.Text.character_count { get; }
|
|
|
|
Efl.Access.Text.offset_at_point { get; }
|
|
|
|
Efl.Access.Text.bounded_ranges { get; }
|
|
|
|
Efl.Access.Text.range_extents { get; }
|
2018-02-14 18:14:52 -08:00
|
|
|
Efl.Access.Text.access_selection { get; set; }
|
2017-09-25 01:15:44 -07:00
|
|
|
Efl.Access.Text.selections_count { get; }
|
|
|
|
Efl.Access.Text.selection_add;
|
|
|
|
Efl.Access.Text.selection_remove;
|
2018-02-14 18:14:52 -08:00
|
|
|
Efl.Access.Editable.Text.text_content { set; }
|
2017-09-25 01:15:44 -07:00
|
|
|
Efl.Access.Editable.Text.insert;
|
|
|
|
Efl.Access.Editable.Text.copy;
|
|
|
|
Efl.Access.Editable.Text.cut;
|
|
|
|
Efl.Access.Editable.Text.delete;
|
|
|
|
Efl.Access.Editable.Text.paste;
|
2017-11-27 16:56:32 -08:00
|
|
|
Efl.Access.Widget.Action.elm_actions { get; }
|
2019-02-27 10:17:09 -08:00
|
|
|
Efl.File.file { set; }
|
|
|
|
Efl.File.load;
|
2018-05-03 16:34:17 -07:00
|
|
|
Efl.Part.part_get;
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
events {
|
efl: Add missing event types
Summary:
All events must have a type now, otherwise bindings don't know how to handle
the event_info field.
Most of the missing event types were actually "void" (no event_info present).
Some struct definitions had to be moved to eo instead of h files, so they
are available to bindings. Some have not, and are marked with FIXME.
Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb).
In general, there are hundreds of changed files, but mostly to add a type which
was not present before, so there's no harm done.
Also, A lot of FIXMEs have been added which should be, like, fixed.
For example, some events can send different types of event_info, which is
very inconvenient (and error prone).
Test Plan: make with c# bindings works, make check and make examples work too.
Reviewers: cedric, q66, lauromoura
Subscribers: zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6169
2018-05-11 08:20:40 -07:00
|
|
|
activated: void; [[Called when entry got activated]]
|
|
|
|
changed: void; [[Called when entry changed]]
|
|
|
|
/* FIXME: Canm be NULL but @nullable does not work on events */
|
|
|
|
changed,user: Elm.Entry_Change_Info; [[Called when the object changed due to user interaction]]
|
|
|
|
validate: Elm.Validate_Content; [[Called when validating]]
|
|
|
|
context,open: void; [[Called when context menu was opened]]
|
|
|
|
anchor,clicked: Elm.Entry_Anchor_Info; [[Called when anchor was clicked]]
|
|
|
|
rejected: void; [[Called when entry was rejected]]
|
|
|
|
maxlength,reached: void; [[Called when maximum entry length has been reached]]
|
|
|
|
preedit,changed: void; [[Called when entry preedit changed]]
|
|
|
|
press: void; [[Called when entry pressed]]
|
|
|
|
redo,request: void; [[Called when redo was requested]]
|
|
|
|
undo,request: void; [[Called when undo was requested]]
|
|
|
|
text,set,done: void; [[Called when text set finished]]
|
|
|
|
aborted: void; [[Called when entry was aborted]]
|
|
|
|
anchor,down: Elm.Entry_Anchor_Info; [[Called on anchor down]]
|
|
|
|
anchor,hover,opened: Elm.Entry_Anchor_Hover_Info; [[Called when hover opened]]
|
|
|
|
anchor,in: Elm.Entry_Anchor_Info; [[Called on anchor in]]
|
|
|
|
anchor,out: Elm.Entry_Anchor_Info; [[Called on anchor out]]
|
|
|
|
anchor,up: Elm.Entry_Anchor_Info; [[called on anchor up]]
|
|
|
|
cursor,changed: void; [[Called on cursor changed]]
|
|
|
|
cursor,changed,manual: void; [[Called on manual cursor change]]
|
2014-03-22 10:44:29 -07:00
|
|
|
}
|
|
|
|
}
|