pub struct Platform { /* private fields */ }Expand description
The sdl3 platform for egui
Implementations§
Source§impl Platform
impl Platform
Sourcepub fn handle_event(&mut self, event: &Event, video: &VideoSubsystem)
pub fn handle_event(&mut self, event: &Event, video: &VideoSubsystem)
Handle a sdl3 event
pub fn context(&self) -> &Context
Sourcepub fn begin_frame(&mut self, window: &Window) -> Context
pub fn begin_frame(&mut self, window: &Window) -> Context
Return the processed context
Sourcepub fn end_frame(&mut self, video: &mut VideoSubsystem) -> Result<FullOutput>
pub fn end_frame(&mut self, video: &mut VideoSubsystem) -> Result<FullOutput>
Stop drawing the egui frame and return the full output
Sourcepub fn tessellate(&self, full_output: &FullOutput) -> Vec<ClippedPrimitive>
pub fn tessellate(&self, full_output: &FullOutput) -> Vec<ClippedPrimitive>
Tessellate the egui frame
Auto Trait Implementations§
impl !RefUnwindSafe for Platform
impl !Send for Platform
impl !Sync for Platform
impl !UnwindSafe for Platform
impl Freeze for Platform
impl Unpin for Platform
impl UnsafeUnpin for Platform
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