Enum sciter::windowless::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
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
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
Auto Trait Implementations
impl !RefUnwindSafe for Message
impl !Send for Message
impl !Sync for Message
impl Unpin for Message
impl !UnwindSafe for Message
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more