Struct egui_inbox::RequestRepaintContext
source · pub struct RequestRepaintContext(/* private fields */);
Expand description
Usually holds a reference to egui::Context, but can also hold a boxed callback.
Implementations§
source§impl RequestRepaintContext
impl RequestRepaintContext
sourcepub fn from_callback<F>(f: F) -> Self
pub fn from_callback<F>(f: F) -> Self
Create a new RequestRepaintContext from a callback function.
sourcepub fn from_trait<T>(t: T) -> Self
pub fn from_trait<T>(t: T) -> Self
Create a new RequestRepaintContext from something that implements RequestRepaintTrait.
sourcepub fn from_egui_ctx(ctx: Context) -> Self
pub fn from_egui_ctx(ctx: Context) -> Self
Create a new RequestRepaintContext from an egui::Context.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestRepaintContext
impl !RefUnwindSafe for RequestRepaintContext
impl Send for RequestRepaintContext
impl Sync for RequestRepaintContext
impl Unpin for RequestRepaintContext
impl !UnwindSafe for RequestRepaintContext
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