pub struct EguiState {
    pub fuse_cursor: FusedCursor,
    pub pointer_pos: Pos2,
    pub physical_width: u32,
    pub physical_height: u32,
    pub _pixels_per_point: f32,
    pub clipboard: Clipboard,
    pub scroll_factor: f32,
    pub zoom_factor: f32,
    /* private fields */
}
Expand description

Shuttles FLTK’s input and events to Egui

Fields

fuse_cursor: FusedCursorpointer_pos: Pos2physical_width: u32physical_height: u32_pixels_per_point: f32clipboard: Clipboardscroll_factor: f32

default value is 12.0

zoom_factor: f32

default value is 8.0

Implementations

Conveniece method bundling the necessary components for input/event handling

Convenience method for outputting what egui emits each frame

Set visual scale, e.g: 0.8, 1.5, 2.0 .etc (default is 1.0)

Set start time for egui timer related activity.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more