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

pub struct Host { /* fields omitted */ }

Sciter host runtime support.

Methods

impl Host
[src]

Attach Sciter host to existing window.

Usually Sciter window created by sciter::Window::create(), but you can attach Sciter to the 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.

Set callback for Sciter engine events.

Attach dom::EventHandler to the Sciter window.

Set debug mode for specific window or globally.

Get native window handle.

Get window root DOM element.

Load HTML document from file.

Load HTML document from memory.

This function is used as response to SC_LOAD_DATA request.

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).

Evaluate script in context of current document.

Call scripting 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!(a,b,c) macro which help you construct script arguments from Rust types.

Set various sciter engine options, see the SCITER_RT_OPTIONS.

Set home url for sciter resources.

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

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

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

Set media type of this sciter instance.

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.

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

Set (reset) style sheet of current document.