Struct sciter::host::Host [] [src]

pub struct Host { /* fields omitted */ }

Sciter host runtime support.

Methods

impl Host
[src]

[src]

Attach Sciter host to existing window.

Usually Sciter window created by a sciter::Window::create(), but you can attach Sciter to an existing native window. In this case you need to mix-in window events processing with SciterProcND. Sciter engine will be initialized either on WM_CREATE or WM_INITDIALOG response or by calling SciterCreateOnDirectXWindow.

[src]

Attach dom::EventHandler to the Sciter window.

[src]

Register a native event handler for the specified behavior name.

[src]

Set debug mode for specific window or globally.

[src]

Get native window handle.

[src]

Get window root DOM element.

[src]

Load HTML document from file.

[src]

Load HTML document from memory.

[src]

This function is used as response to SC_LOAD_DATA request.

[src]

Use this function outside of SCN_LOAD_DATA request.

It can be used for the two purposes:

  1. Asynchronious resource loading in respect of SCN_LOAD_DATA requests (you must provide request_id in this case).
  2. Refresh of already loaded resource (for example, dynamic image updates).

[src]

Evaluate the given script in context of the current document.

This function returns Result<Value,Value> with script function result value or with sciter script error.

[src]

Call a script function defined in the global namespace.

This function returns Result<Value,Value> with script function result value or with sciter script error.

You can use the make_args!(args...) macro which helps you to construct script arguments from Rust types.

[src]

Deprecated since 0.5.40

: please use Window::set_options() instead.

Set various sciter engine options, see the SCITER_RT_OPTIONS.

[src]

Set home url for sciter resources.

If you will set it like set_home_url("https://sciter.com/modules/") then

<script src="sciter:lib/root-extender.tis"> will load root-extender.tis from

https://sciter.com/modules/lib/root-extender.tis.

[src]

Set media type of this sciter instance.

[src]

Set media variables (dictionary) for this sciter instance.

By default sciter window has "screen:true" and "desktop:true"/"handheld:true" media variables.

Media variables can be changed in runtime. This will cause styles of the document to be reset.

[src]

Set or append the master style sheet styles (globally).

[src]

Set (reset) style sheet of current document.

Trait Implementations

Auto Trait Implementations

impl !Send for Host

impl !Sync for Host