Struct egui_fltk_frontend::EguiState
source · [−]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: f32default value is 12.0
zoom_factor: f32default value is 8.0
Implementations
sourceimpl EguiState
impl EguiState
sourcepub fn fuse_input(&mut self, win: &mut Window, event: Event)
pub fn fuse_input(&mut self, win: &mut Window, event: Event)
Conveniece method bundling the necessary components for input/event handling
pub fn window_resized(&mut self) -> bool
pub fn mouse_btn_pressed(&self) -> bool
sourcepub fn fuse_output(&mut self, win: &mut Window, egui_output: PlatformOutput)
pub fn fuse_output(&mut self, win: &mut Window, egui_output: PlatformOutput)
Convenience method for outputting what egui emits each frame
sourcepub fn set_visual_scale(&mut self, size: f32)
pub fn set_visual_scale(&mut self, size: f32)
Set visual scale, e.g: 0.8, 1.5, 2.0 .etc (default is 1.0)
pub fn pixels_per_point(&self) -> f32
pub fn take_input(&mut self) -> RawInput
sourcepub fn start_time(&mut self, elapsed: f64)
pub fn start_time(&mut self, elapsed: f64)
Set start time for egui timer related activity.
Auto Trait Implementations
impl !RefUnwindSafe for EguiState
impl Send for EguiState
impl !Sync for EguiState
impl Unpin for EguiState
impl !UnwindSafe for EguiState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more