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
Destroy
Destroys the engine instance.
Size
Window size changes.
Resolution
Screen resolution changes.
Focus
Window focus event.
Heartbit
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§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more