pub struct EguiState {
    pub fuse_cursor: FusedCursor,
    pub pointer_pos: Pos2,
    pub input: RawInput,
    pub modifiers: Modifiers,
    pub physical_width: u32,
    pub physical_height: u32,
    pub pixels_per_point: f32,
    pub screen_rect: Rect,
    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: Pos2input: RawInputmodifiers: Modifiersphysical_width: u32physical_height: u32pixels_per_point: f32screen_rect: Rectclipboard: Clipboardscroll_factor: f32zoom_factor: f32

Implementations

Conveniece method bundling the necessary components for input/event handling

Convenience method for outputting what egui emits each frame

Updates the screen rect

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.