2016-04-19 08:58:36 -07:00
|
|
|
type Elm_Web_Console_Message: __undefined_type;
|
|
|
|
type Elm_Web_Window_Open: __undefined_type;
|
|
|
|
type Elm_Web_Dialog_File_Selector: __undefined_type;
|
|
|
|
type Elm_Web_Dialog_Confirm: __undefined_type;
|
|
|
|
type Elm_Web_Dialog_Prompt: __undefined_type;
|
|
|
|
type Elm_Web_Dialog_Alert: __undefined_type;
|
|
|
|
|
2016-02-25 13:54:09 -08:00
|
|
|
enum Elm.Web.Zoom_Mode
|
|
|
|
{
|
|
|
|
[[Types of zoom available.]]
|
|
|
|
manual = 0, [[Zoom controlled normally by elm_web_zoom_set]]
|
|
|
|
auto_fit, [[Zoom until content fits in web object]]
|
|
|
|
auto_fill, [[Zoom until content fills web object]]
|
|
|
|
last [[Sentinel value to indicate end]]
|
|
|
|
}
|
|
|
|
|
2015-04-22 04:43:05 -07:00
|
|
|
class Elm.Web (Elm.Widget)
|
2014-03-27 03:57:07 -07:00
|
|
|
{
|
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 {
|
2016-05-12 07:41:56 -07:00
|
|
|
@property text_matches_highlight @virtual_pure {
|
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.
|
|
|
|
]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
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
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
@property useragent @virtual_pure {
|
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 {
|
2015-08-12 04:45:31 -07:00
|
|
|
user_agent: const(char)*; [[String for useragent.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
@property url @virtual_pure {
|
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
|
|
|
|
]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
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 {
|
2015-08-12 04:45:31 -07:00
|
|
|
url: const(char)*; [[The URL to set.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
@property bg_color @virtual_pure {
|
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
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
@property inwin_mode @virtual_pure {
|
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 {
|
2015-08-12 04:45:31 -07:00
|
|
|
value: bool;
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
@property tab_propagate @virtual_pure {
|
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
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
@property history_enabled @virtual_pure {
|
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
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
@property zoom_mode @virtual_pure {
|
2014-03-27 03:57:07 -07:00
|
|
|
set {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Sets the zoom mode to use.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
The modes can be any of those defined in .Elm_Web_Zoom_Mode,
|
|
|
|
except .ELM_WEB_ZOOM_MODE_LAST. The default is
|
|
|
|
.ELM_WEB_ZOOM_MODE_MANUAL.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
.ELM_WEB_ZOOM_MODE_MANUAL means the zoom level will be
|
|
|
|
controlled with the @.zoom.set function.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
.ELM_WEB_ZOOM_MODE_AUTO_FIT will calculate the needed zoom
|
|
|
|
level to make sure the entirety of the web object's contents
|
|
|
|
are shown.
|
|
|
|
|
|
|
|
.ELM_WEB_ZOOM_MODE_AUTO_FILL will calculate the needed zoom
|
|
|
|
level to fit the contents in the web object's size, without
|
|
|
|
leaving any space unused.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Get the currently set zoom mode.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-02-25 13:54:09 -08:00
|
|
|
mode: Elm.Web.Zoom_Mode; [[The mode to set.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
@property zoom @virtual_pure {
|
2014-03-27 03:57:07 -07:00
|
|
|
set {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Sets the zoom level of the web object.
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
Zoom level matches the Webkit API, so 1.0 means normal zoom,
|
|
|
|
with higher values meaning zoom in and lower meaning zoom out.
|
|
|
|
This function will only affect the zoom level if the mode set
|
|
|
|
with @.zoom_mode.set is .ELM_WEB_ZOOM_MODE_MANUAL.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Get the current zoom level set on the web object
|
2014-03-27 03:57:07 -07:00
|
|
|
|
2015-08-12 04:45:31 -07:00
|
|
|
Note that this is the zoom level set on the web object and
|
|
|
|
not that of the underlying Webkit one. In the
|
|
|
|
.ELM_WEB_ZOOM_MODE_MANUAL mode, the two zoom levels should
|
|
|
|
match, but for the other two modes the Webkit zoom is
|
|
|
|
calculated internally to match the chosen mode without
|
|
|
|
changing the zoom level set for the web object.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-08-12 04:45:31 -07:00
|
|
|
zoom: double; [[The zoom level to set.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property console_message_hook {
|
2016-05-12 07:41:56 -07:00
|
|
|
set @virtual_pure {
|
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.]]
|
|
|
|
data: void *; [[User data.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property window_create_hook {
|
2016-05-12 07:41:56 -07:00
|
|
|
set @virtual_pure {
|
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.]]
|
|
|
|
data: void * @optional; [[User data.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property dialog_file_selector_hook {
|
2016-05-12 07:41:56 -07:00
|
|
|
set @virtual_pure {
|
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.]]
|
|
|
|
data: void * @optional; [[User data.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property dialog_confirm_hook {
|
2016-05-12 07:41:56 -07:00
|
|
|
set @virtual_pure {
|
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.]]
|
|
|
|
data: void * @optional; [[User data.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property popup_selected {
|
2016-05-12 07:41:56 -07:00
|
|
|
set @virtual_pure {
|
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 {
|
2016-05-12 07:41:56 -07:00
|
|
|
set @virtual_pure {
|
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.]]
|
|
|
|
data: void * @optional; [[User data.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property dialog_alert_hook {
|
2016-05-12 07:41:56 -07:00
|
|
|
set @virtual_pure {
|
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 {
|
2015-08-12 04:45:31 -07:00
|
|
|
func: Elm_Web_Dialog_Alert @nullable; [[callback function to be used.]]
|
|
|
|
data: void * @optional; [[User data.]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property forward_possible {
|
2016-05-12 07:41:56 -07:00
|
|
|
get @virtual_pure {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Queries whether it's possible to go forward in history.]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property webkit_view {
|
2016-05-12 07:41:56 -07:00
|
|
|
get @virtual_pure {
|
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.
|
|
|
|
]]
|
|
|
|
return: Evas.Object *; [[The internal ewk_view object or $null
|
|
|
|
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 {
|
2016-05-12 07:41:56 -07:00
|
|
|
get @virtual_pure {
|
2015-08-12 04:45:31 -07:00
|
|
|
[[Queries whether it's possible to go back in history.]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property load_progress {
|
2016-05-12 07:41:56 -07:00
|
|
|
get @virtual_pure {
|
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 {
|
2016-05-12 07:41:56 -07:00
|
|
|
get @virtual_pure {
|
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.
|
|
|
|
]]
|
|
|
|
return: own(const(char)*) @warn_unused; [[A newly allocated string, or
|
|
|
|
$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 {
|
2016-05-12 07:41:56 -07:00
|
|
|
get @virtual_pure {
|
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.
|
|
|
|
]]
|
|
|
|
return: free(own(const(char)*), eina_stringshare_del) @warn_unused; [[
|
|
|
|
A stringshared internal string with the current title, or $null on
|
|
|
|
failure.
|
|
|
|
]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
navigate @virtual_pure {
|
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
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
back @virtual_pure {
|
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);
|
|
|
|
]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
html_string_load @virtual_pure {
|
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
|
|
|
|
]]
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-27 03:57:07 -07:00
|
|
|
params {
|
2015-08-12 04:45:31 -07:00
|
|
|
@in html: const(char)*; [[HTML data to load.]]
|
|
|
|
@in base_url: const(char)* @optional; [[Base URL used for relative paths to external objects (optional).]]
|
|
|
|
@in unreachable_url: const(char)* @optional; [[URL that could not be reached (optional).]]
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
text_search @const @virtual_pure {
|
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 {
|
2015-08-12 04:45:31 -07:00
|
|
|
@in string: const(char)*; [[String to search.]]
|
|
|
|
@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
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
popup_destroy @virtual_pure {
|
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
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
region_show @virtual_pure {
|
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
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
forward @virtual_pure {
|
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
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
text_matches_mark @virtual_pure {
|
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 {
|
2015-08-12 04:45:31 -07:00
|
|
|
@in string: const(char)*; [[String to match.]]
|
|
|
|
@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
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
region_bring_in @virtual_pure {
|
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
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
stop @virtual_pure {
|
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
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
navigate_possible_get @virtual_pure {
|
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
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
reload_full @virtual_pure {
|
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
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
text_matches_unmark_all @virtual_pure {
|
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
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
reload @virtual_pure {
|
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;
|
2014-06-27 15:36:05 -07:00
|
|
|
Eo.Base.constructor;
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
events {
|
2015-08-12 04:45:31 -07:00
|
|
|
uri,changed;
|
|
|
|
url,changed;
|
2015-05-07 04:51:46 -07:00
|
|
|
windows,close,request;
|
2014-03-27 03:57:07 -07:00
|
|
|
}
|
|
|
|
}
|