Struct easy_imgui::Context
source · pub struct Context { /* private fields */ }Expand description
The main ImGui context.
Implementations§
source§impl Context
impl Context
pub unsafe fn new() -> Context
sourcepub unsafe fn set_current(&mut self) -> CurrentContext<'_>
pub unsafe fn set_current(&mut self) -> CurrentContext<'_>
Makes this context the current one.
SAFETY: Do not make two different contexts current at the same time in the same thread.
sourcepub fn invalidate_font_atlas(&mut self)
pub fn invalidate_font_atlas(&mut self)
The next time CurrentContext::do_frame() is called, it will trigger a call to
UiBuilder::build_custom_atlas.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin for Context
impl !UnwindSafe for Context
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