logo
pub enum Message {
    Create {
        backend: GFX_LAYER,
        transparent: bool,
    },
    Destroy,
    Size {
        width: u32,
        height: u32,
    },
    Resolution {
        ppi: u32,
    },
    Focus {
        enter: bool,
    },
    Heartbit {
        milliseconds: u32,
    },
    Redraw,
    Paint(PaintLayer),
    RenderTo(RenderEvent),
    RenderToDxgiSurface(DxgiRenderEvent),
    Mouse(MouseEvent),
    Keyboard(KeyboardEvent),
}
Expand description

Application-provided events to notify Sciter.

Variants

Create

Fields

backend: GFX_LAYER

Graphics backend for rendering.

transparent: bool

Background transparency option.

Creates an instance of Sciter assotiated with the given handle.

Destroy

Destroys the engine instance.

Size

Fields

width: u32

Width of the rendering surface.

height: u32

Height of the rendering surface.

Window size changes.

Resolution

Fields

ppi: u32

Pixels per inch.

Screen resolution changes.

Focus

Fields

enter: bool

Whether the window has got or lost the input focus.

Window focus event.

Heartbit

Fields

milliseconds: u32

Absolute steady clock value, e.g. GetTickCount() or glfwGetTime().

Time changes in order to process animations, timers and other timed things.

Redraw

Redraw the whole document.

Paint(PaintLayer)

Redraw the specific layer.

RenderTo(RenderEvent)

Render to a bitmap.

RenderToDxgiSurface(DxgiRenderEvent)

Render to a DXGI surface (Windows only, since 4.4.3.27).

Mouse(MouseEvent)

Mouse input.

Keyboard(KeyboardEvent)

Keyboard input.

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.