pub struct EguiSDL2State {
pub raw_input: RawInput,
pub modifiers: Modifiers,
pub dpi_scaling: f32,
pub mouse_pointer_position: Pos2,
pub fused_cursor: FusedCursor,
}
Fields§
§raw_input: RawInput
§modifiers: Modifiers
§dpi_scaling: f32
§mouse_pointer_position: Pos2
§fused_cursor: FusedCursor
Implementations§
Source§impl EguiSDL2State
impl EguiSDL2State
pub fn sdl2_input_to_egui(&mut self, window: &Window, event: &Event)
pub fn update_screen_rect(&mut self, width: u32, height: u32)
pub fn update_time(&mut self, running_time: Option<f64>, delta: f32)
pub fn new(width: u32, height: u32, dpi_scaling: f32) -> Self
pub fn process_output(&mut self, window: &Window, egui_output: &PlatformOutput)
Auto Trait Implementations§
impl Freeze for EguiSDL2State
impl !RefUnwindSafe for EguiSDL2State
impl !Send for EguiSDL2State
impl !Sync for EguiSDL2State
impl Unpin for EguiSDL2State
impl !UnwindSafe for EguiSDL2State
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