logo
#[repr(C)]
pub struct SCN_LOAD_DATA { pub code: UINT, pub hwnd: HWINDOW, pub uri: LPCWSTR, pub outData: LPCBYTE, pub outDataSize: UINT, pub dataType: RESOURCE_TYPE, pub request_id: HREQUEST, pub principal: HELEMENT, pub initiator: HELEMENT, }
Expand description

Notifies that Sciter is about to download a referred resource.

Fields

code: UINT

SC_LOAD_DATA here.

hwnd: HWINDOW

HWINDOW of the window this callback was attached to.

uri: LPCWSTR

[in] Zero terminated string, fully qualified uri, for example, “http://server/folder/file.ext”.

outData: LPCBYTE

[in,out] pointer to loaded data to return. If data exists in the cache then this field contain pointer to it.

outDataSize: UINT

[in,out] loaded data size to return.

dataType: RESOURCE_TYPE

[in] resource type category

request_id: HREQUEST

[in] request handle that can be used with Sciter request API.

principal: HELEMENT

[in] destination element for request.

initiator: HELEMENT

[in] source element for request.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.