2016-11-03 03:51:14 -07:00
|
|
|
type Elm_Web_Console_Message: __undefined_type; [[Elementary web console message type]]
|
|
|
|
type Elm_Web_Window_Open: __undefined_type; [[Elementary web window open type]]
|
|
|
|
type Elm_Web_Dialog_File_Selector: __undefined_type; [[Elementary web dialog file selector type]]
|
|
|
|
type Elm_Web_Dialog_Confirm: __undefined_type; [[Elementary web dialog confirm type]]
|
|
|
|
type Elm_Web_Dialog_Prompt: __undefined_type; [[Elementary web dialog prompt type]]
|
|
|
|
type Elm_Web_Dialog_Alert: __undefined_type; [[Elementary web dialog alert type]]
|
2016-04-19 08:58:36 -07:00
|
|
|
|
2019-01-18 05:34:04 -08:00
|
|
|
abstract Elm.Web extends Efl.Ui.Widget implements Efl.Ui.Legacy, Efl.Ui.Zoom
|
2014-03-27 03:57:07 -07:00
|
|
|
{
|
2016-11-07 06:58:11 -08:00
|
|
|
[[Elementary web view class]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_web;
|
2014-03-27 03:57:07 -07:00
|
|
|
eo_prefix: elm_obj_web;
|
2016-05-17 09:14:47 -07:00
|
|
|
event_prefix: elm_web;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
2017-01-13 06:44:09 -08:00
|
|
|
@property text_matches_highlight @pure_virtual {
|
2014-03-27 03:57:07 -07:00
|
|
|
set {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Sets whether to highlight the matched marks.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
If enabled, marks set with @.text_matches_mark will be
|
|
|
|
highlighted.
|
|
|
|
]]
|
2016-11-07 06:58:11 -08:00
|
|
|
return: bool; [[$true on success, $false otherwise]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Get whether highlighting marks is enabled.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 04:45:31 -07:00
|
|
|
highlight: bool; [[Whether to highlight the marks or not.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
@property useragent @pure_virtual {
|
2014-03-27 03:57:07 -07:00
|
|
|
set {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Change useragent of a elm_web object.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Return current useragent of elm_web object.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-05-31 08:02:26 -07:00
|
|
|
user_agent: string; [[String for useragent.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
@property url @pure_virtual {
|
2014-03-27 03:57:07 -07:00
|
|
|
set {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Sets the URL for the web object.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
It must be a full URL, with resource included, in the form
|
|
|
|
http://www.enlightenment.org or file:///tmp/something.html
|
|
|
|
]]
|
2016-11-07 06:58:11 -08:00
|
|
|
return: bool; [[$true on success, $false otherwise]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Get the current URL for the object.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
The returned string must not be freed and is guaranteed to be
|
|
|
|
stringshared.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-05-31 08:02:26 -07:00
|
|
|
url: string; [[The URL to set.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
@property bg_color @pure_virtual {
|
2014-03-27 03:57:07 -07:00
|
|
|
set {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Sets the background color to be used by the web object.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
This is the color that will be used by default when the
|
|
|
|
loaded page does not set it's own. Color values are
|
|
|
|
pre-multiplied.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Get the background color to be used by the web object.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
This is the color that will be used by default when the
|
|
|
|
loaded page does not set it's own. Color values are
|
|
|
|
pre-multiplied.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 04:45:31 -07:00
|
|
|
r: int; [[Red component.]]
|
|
|
|
g: int; [[Green component.]]
|
|
|
|
b: int; [[Blue component.]]
|
|
|
|
a: int; [[Alpha component.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
@property inwin_mode @pure_virtual {
|
2014-03-27 03:57:07 -07:00
|
|
|
set {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Sets the default dialogs to use an Inwin instead of a
|
|
|
|
normal window.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
If set, then the default implementation for the JavaScript
|
|
|
|
dialogs and file selector will be opened in an Inwin.
|
|
|
|
Otherwise they will use a normal separated window.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Get whether Inwin mode is set for the current object.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-11-07 06:58:11 -08:00
|
|
|
value: bool; [[$true if dialog will be opened as Inwin, $false otherwise]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
@property tab_propagate @pure_virtual {
|
2014-03-27 03:57:07 -07:00
|
|
|
set {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Sets whether to use tab propagation.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
If tab propagation is enabled, whenever the user presses the
|
|
|
|
Tab key, Elementary will handle it and switch focus to the
|
|
|
|
next widget. The default value is disabled, where WebKit
|
|
|
|
will handle the Tab key to cycle focus though its internal
|
|
|
|
objects, jumping to the next widget only when that cycle ends.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Get the status of the tab propagation.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 04:45:31 -07:00
|
|
|
propagate: bool; [[Whether to propagate Tab keys to Elementary or not.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
@property history_enabled @pure_virtual {
|
2014-03-27 03:57:07 -07:00
|
|
|
set {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Enables or disables the browsing history.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Get whether browsing history is enabled for the given object.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 04:45:31 -07:00
|
|
|
enable: bool; [[Whether to enable or disable the browsing history.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property console_message_hook {
|
2017-01-13 06:44:09 -08:00
|
|
|
set @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Sets the function to call when a console message is emitted
|
|
|
|
from JS.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
This hook will be called when a console message is emitted
|
|
|
|
from JavaScript. There is no default implementation for
|
|
|
|
this feature.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 04:45:31 -07:00
|
|
|
func: Elm_Web_Console_Message; [[The callback function to be used.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
data: void_ptr; [[User data.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property window_create_hook {
|
2017-01-13 06:44:09 -08:00
|
|
|
set @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Sets the function to call when a new window is requested.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
This hook will be called when a request to create a new
|
|
|
|
window is issued from the web page loaded.
|
|
|
|
There is no default implementation for this feature, so
|
|
|
|
leaving this unset or passing $null in $func will prevent
|
|
|
|
new windows from opening.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 04:45:31 -07:00
|
|
|
func: Elm_Web_Window_Open @nullable; [[The hook function to be called when a window is requested.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
data: void_ptr @optional; [[User data.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property dialog_file_selector_hook {
|
2017-01-13 06:44:09 -08:00
|
|
|
set @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Sets the function to call when an file selector dialog.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
This hook will be called when a JavaScript file selector
|
|
|
|
dialog is requested.
|
|
|
|
If no function is set or $null is passed in $func, the default
|
|
|
|
implementation will take place.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 04:45:31 -07:00
|
|
|
func: Elm_Web_Dialog_File_Selector @nullable; [[The callback function to be used.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
data: void_ptr @optional; [[User data.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property dialog_confirm_hook {
|
2017-01-13 06:44:09 -08:00
|
|
|
set @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Sets the function to call when an confirm dialog.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
This hook will be called when a JavaScript confirm dialog is
|
|
|
|
requested. If no function is set or $null is passed in $func,
|
|
|
|
the default implementation will take place.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 04:45:31 -07:00
|
|
|
func: Elm_Web_Dialog_Confirm @nullable; [[The callback function to be used.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
data: void_ptr @optional; [[User data.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property popup_selected {
|
2017-01-13 06:44:09 -08:00
|
|
|
set @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Tells the web object which index in the currently open popup
|
|
|
|
was selected.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
When the user handles the popup creation from the
|
|
|
|
"popup,created" signal, it needs to tell the web object
|
|
|
|
which item was selected by calling this function with
|
|
|
|
the index corresponding to the item.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 04:45:31 -07:00
|
|
|
idx: int; [[The index selected.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property dialog_prompt_hook {
|
2017-01-13 06:44:09 -08:00
|
|
|
set @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Sets the function to call when an prompt dialog.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
This hook will be called when a JavaScript prompt dialog is
|
|
|
|
requested. If no function is set or $null is passed in $func,
|
|
|
|
the default implementation will take place.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 04:45:31 -07:00
|
|
|
func: Elm_Web_Dialog_Prompt @nullable; [[The callback function to be used.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
data: void_ptr @optional; [[User data.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property dialog_alert_hook {
|
2017-01-13 06:44:09 -08:00
|
|
|
set @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Sets the function to call when an alert dialog.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
This hook will be called when a JavaScript alert dialog is
|
|
|
|
requested. If no function is set or $null is passed in $func,
|
|
|
|
the default implementation will take place.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-11-24 05:46:11 -08:00
|
|
|
func: Elm_Web_Dialog_Alert @nullable; [[Callback function to be used.]]
|
2016-06-02 04:54:59 -07:00
|
|
|
data: void_ptr @optional; [[User data.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property forward_possible {
|
2017-01-13 06:44:09 -08:00
|
|
|
get @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Queries whether it's possible to go forward in history.]]
|
2016-11-07 06:58:11 -08:00
|
|
|
return: bool; [[$true if it is possible to go forward, $false otherwise]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property webkit_view {
|
2017-01-13 06:44:09 -08:00
|
|
|
get @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Get internal ewk_view object from web object.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
Elementary may not provide some low level features of EWebKit,
|
|
|
|
instead of cluttering the API with proxy methods we opted to
|
|
|
|
return the internal reference. Be careful using it as it may
|
|
|
|
interfere with elm_web behavior.
|
|
|
|
]]
|
2016-06-20 21:26:15 -07:00
|
|
|
return: Efl.Canvas.Object; [[The internal ewk_view object or $null
|
2015-08-12 04:45:31 -07:00
|
|
|
if it does not exist. (Failure to
|
|
|
|
create or Elementary compiled
|
|
|
|
without ewebkit)]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property back_possible {
|
2017-01-13 06:44:09 -08:00
|
|
|
get @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Queries whether it's possible to go back in history.]]
|
2016-11-07 06:58:11 -08:00
|
|
|
return: bool; [[$true if it is possible to go back, $false otherwise]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property load_progress {
|
2017-01-13 06:44:09 -08:00
|
|
|
get @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Get the overall loading progress of the page.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
Returns the estimated loading progress of the page, with a
|
|
|
|
value between 0.0 and 1.0. This is an estimated progress
|
|
|
|
accounting for all the frames included in the page.
|
|
|
|
]]
|
|
|
|
return: double; [[A value between 0.0 and 1.0 indicating the
|
|
|
|
progress, or -1.0 on failure.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property selection {
|
2017-01-13 06:44:09 -08:00
|
|
|
get @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Get a copy of the currently selected text.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
The string returned must be freed by the user when it's done
|
|
|
|
with it.
|
|
|
|
]]
|
2019-01-14 11:12:32 -08:00
|
|
|
return: mstring @owned @warn_unused; [[A newly allocated string, or
|
2015-08-12 04:45:31 -07:00
|
|
|
$null if nothing is selected
|
|
|
|
or an error occurred.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property title {
|
2017-01-13 06:44:09 -08:00
|
|
|
get @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Get the current title.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
The returned string must not be freed and is guaranteed to be
|
|
|
|
stringshared.
|
|
|
|
]]
|
2017-09-15 08:05:30 -07:00
|
|
|
return: stringshare @owned @warn_unused; [[
|
2015-08-12 04:45:31 -07:00
|
|
|
A stringshared internal string with the current title, or $null on
|
|
|
|
failure.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
navigate @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Jumps the given number of steps in the browsing history.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
The $steps value can be a negative integer to back in history,
|
|
|
|
or a positive to move forward.
|
|
|
|
]]
|
|
|
|
return: bool; [[$true on success, $false on error or if not enough
|
|
|
|
history exists to jump the given number of steps]]
|
2014-03-27 03:57:07 -07:00
|
|
|
params {
|
2015-08-12 04:45:31 -07:00
|
|
|
@in steps: int; [[The number of steps to jump.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
back @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Goes back one step in the browsing history.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
This is equivalent to calling elm_web_object_navigate(obj, -1);
|
|
|
|
]]
|
2016-11-07 06:58:11 -08:00
|
|
|
return: bool; [[$true on success, $false otherwise]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
html_string_load @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Loads the specified $html string as the content of the web
|
|
|
|
object.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
External objects such as stylesheets or images referenced in
|
|
|
|
the HTML document are located relative to $base_url.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
If an $unreachable_url is passed it is used as the url for the
|
|
|
|
loaded content. This is typically used to display error pages
|
|
|
|
for a failed load.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
@since 1.9
|
|
|
|
]]
|
2016-11-07 06:58:11 -08:00
|
|
|
return: bool; [[$true on success, $false otherwise]]
|
2014-03-27 03:57:07 -07:00
|
|
|
params {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in html: string; [[HTML data to load.]]
|
|
|
|
@in base_url: string @optional; [[Base URL used for relative paths to external objects (optional).]]
|
|
|
|
@in unreachable_url: string @optional; [[URL that could not be reached (optional).]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
text_search @const @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Searches the given string in a document.]]
|
|
|
|
return: bool; [[$true if the given string was found, $false if not
|
|
|
|
or failure.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
params {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in string: string; [[String to search.]]
|
2015-08-12 04:45:31 -07:00
|
|
|
@in case_sensitive: bool; [[If search should be case sensitive or not.]]
|
|
|
|
@in forward: bool; [[If search is from cursor and on or backwards.]]
|
|
|
|
@in wrap: bool; [[If search should wrap at the end.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
popup_destroy @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Dismisses an open dropdown popup
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
When the popup from a dropdown widget is to be dismissed, either
|
|
|
|
after selecting an option or to cancel it, this function must be
|
|
|
|
called, which will later emit an "popup,willdelete" signal to
|
|
|
|
notify the user that any memory and objects related to this
|
|
|
|
popup can be freed.
|
|
|
|
]]
|
|
|
|
return: bool; [[$true if the menu was successfully destroyed, or
|
|
|
|
$false if there was no menu to destroy.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
region_show @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Shows the given region in the web object.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
params {
|
2015-08-12 04:45:31 -07:00
|
|
|
@in x: int; [[The x coordinate of the region to show.]]
|
|
|
|
@in y: int; [[The y coordinate of the region to show.]]
|
|
|
|
@in w: int; [[The width of the region to show.]]
|
|
|
|
@in h: int; [[The height of the region to show.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
forward @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Goes forward one step in the browsing history.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
This is equivalent to calling elm_web_object_navigate(obj, 1);
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
See also @.history_enabled.set, @.forward_possible.get,
|
|
|
|
@.back, @.navigate.
|
|
|
|
]]
|
|
|
|
return: bool; [[$true on success, $false otherwise.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
text_matches_mark @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Marks matches of the given string in a document.]]
|
|
|
|
return: uint; [[Number of matched $string.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
params {
|
2016-05-31 08:02:26 -07:00
|
|
|
@in string: string; [[String to match.]]
|
2015-08-12 04:45:31 -07:00
|
|
|
@in case_sensitive: bool; [[If match should be case sensitive or not.]]
|
|
|
|
@in highlight: bool; [[If matches should be highlighted.]]
|
|
|
|
@in limit: uint; [[Maximum amount of matches, or zero to unlimited.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
region_bring_in @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Brings in the region to the visible area.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
Like @.region_show, but it animates the scrolling of the object
|
|
|
|
to show the area.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
params {
|
2015-08-12 04:45:31 -07:00
|
|
|
@in x: int; [[The x coordinate of the region to show.]]
|
|
|
|
@in y: int; [[The y coordinate of the region to show.]]
|
|
|
|
@in w: int; [[The width of the region to show.]]
|
|
|
|
@in h: int; [[The height of the region to show.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
stop @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Stops loading the current page.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
Cancels the loading of the current page in the web object. This
|
|
|
|
will cause a "load,error" signal to be emitted, with the
|
|
|
|
is_cancellation flag set to $true.
|
|
|
|
]]
|
|
|
|
return: bool; [[$true if the cancel was successful, $false otherwise.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
navigate_possible_get @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Queries whether it's possible to jump the given number of steps.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
The $steps value can be a negative integer to back in history,
|
|
|
|
or positive to move forward.
|
|
|
|
]]
|
|
|
|
return: bool; [[$true if enough history exists to perform the
|
|
|
|
given jump, $false otherwise.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
params {
|
2015-08-12 04:45:31 -07:00
|
|
|
@in steps: int; [[The number of steps to check for.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
reload_full @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Requests a reload of the current document, avoiding any
|
|
|
|
existing caches.
|
|
|
|
]]
|
|
|
|
return: bool; [[$true on success, $false otherwise.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
text_matches_unmark_all @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Clears all marked matches in the document.]]
|
|
|
|
return: bool; [[$true on success, $false otherwise.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
2017-01-13 06:44:09 -08:00
|
|
|
reload @pure_virtual {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Requests a reload of the current document in the object.]]
|
|
|
|
return: bool; [[$true on success, $false otherwise.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2014-03-27 03:57:07 -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
|
|
|
/* FIXME: Nobody is emitting these
|
2016-11-07 06:58:11 -08:00
|
|
|
uri,changed; [[Called when URI changed]]
|
|
|
|
url,changed; [[Called when URL changed]]
|
|
|
|
windows,close,request; [[Called when window closed event was received]]
|
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
|
|
|
*/
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|