Struct easy_imgui::CurrentContext
source · pub struct CurrentContext<'a> { /* private fields */ }
Implementations§
source§impl CurrentContext<'_>
impl CurrentContext<'_>
pub fn set_allow_user_scaling(&mut self, val: bool)
pub fn want_capture_mouse(&self) -> bool
pub fn want_capture_keyboard(&self) -> bool
pub fn want_text_input(&self) -> bool
pub fn io(&self) -> &ImGuiIO
pub fn io_mut(&mut self) -> &mut ImGuiIO
pub unsafe fn add_config_flags(&mut self, flags: ConfigFlags)
pub unsafe fn remove_config_flags(&mut self, flags: ConfigFlags)
pub unsafe fn set_size(&mut self, size: Vector2, scale: f32)
pub unsafe fn size(&self) -> Vector2
pub unsafe fn scale(&self) -> f32
sourcepub fn invalidate_font_atlas(&mut self)
pub fn invalidate_font_atlas(&mut self)
The next time Self::do_frame()
is called, it will trigger a call to
UiBuilder::build_custom_atlas
.
pub unsafe fn update_atlas<'ui, A: UiBuilder>( &'ui mut self, app: &mut A ) -> bool
sourcepub unsafe fn do_frame<A: UiBuilder>(
&mut self,
app: &mut A,
pre_render: impl FnOnce(),
render: impl FnOnce(&ImDrawData)
)
pub unsafe fn do_frame<A: UiBuilder>( &mut self, app: &mut A, pre_render: impl FnOnce(), render: impl FnOnce(&ImDrawData) )
Builds and renders a UI frame.
app
:UiBuilder
to be used to build the frame.re_render
: function to be called afterapp.do_ui
but before rendering.render
: function to do the actual render.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CurrentContext<'a>
impl<'a> !Send for CurrentContext<'a>
impl<'a> !Sync for CurrentContext<'a>
impl<'a> Unpin for CurrentContext<'a>
impl<'a> !UnwindSafe for CurrentContext<'a>
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