Message

Enum Message 

Source
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

Creates an instance of Sciter assotiated with the given handle.

Fields

§backend: GFX_LAYER

Graphics backend for rendering.

§transparent: bool

Background transparency option.

§

Destroy

Destroys the engine instance.

§

Size

Window size changes.

Fields

§width: u32

Width of the rendering surface.

§height: u32

Height of the rendering surface.

§

Resolution

Screen resolution changes.

Fields

§ppi: u32

Pixels per inch.

§

Focus

Window focus event.

Fields

§enter: bool

Whether the window has got or lost the input focus.

§

Heartbit

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

Fields

§milliseconds: u32

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

§

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§

Source§

impl Debug for Message

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Message

§

impl !RefUnwindSafe for Message

§

impl !Send for Message

§

impl !Sync for Message

§

impl Unpin for Message

§

impl !UnwindSafe for Message

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.