Struct tiny_game_framework::Imgui
source · pub struct Imgui {
pub ctx: Context,
/* private fields */
}
Fields§
§ctx: Context
Implementations§
source§impl Imgui
impl Imgui
pub fn new(window: &mut Window) -> Self
pub fn frame(&mut self, window: &mut Window) -> &mut Ui
pub fn on_mouse_move(&mut self, xpos: f32, ypos: f32)
pub fn on_mouse_click(&mut self, button: MouseButton, action: Action)
pub fn on_mouse_scroll(&mut self, x: f32, y: f32)
pub fn draw(&mut self)
Auto Trait Implementations§
impl !Freeze for Imgui
impl !RefUnwindSafe for Imgui
impl !Send for Imgui
impl !Sync for Imgui
impl Unpin for Imgui
impl !UnwindSafe for Imgui
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