Expand description
This crate makes it easy to build applications with Dear ImGui as their main GUI.
§Features
clipboard
(default): clipboard integration, via thearboard
crate.freetype
: uselibfreetype
for TTF font loading. It requires a precompiled native FreeType shared library.
Re-exports§
pub use easy_imgui;
pub use easy_imgui_renderer;
pub use easy_imgui_sys;
pub use glutin;
pub use winit;
Modules§
- clipboard
- Easy wrapper for the clipboard functions.
- conv
- Helper module to convert between common types.
Structs§
- AppHandler
- Default implementation for
winit::application::ApplicationHandler
. - Args
- This type is an aggregate of values retured by
AppHandler
. - Event
Flags - These flags can be used to customize the
window_event
function. - Event
Result - The result of processing an event in the ImGui loop.
- Future
Back Caller - Helper type to get the application arguments during an idle future.
- Future
Handle - A handle to a running idle future.
- Future
Handle Guard - Helper newtype that cancels a future on drop.
- Local
Proxy - This type is a wrapper for
EventLoopProxy
that is notSend
. - Main
Window - This type represents a
winit
window and an OpenGL context. - Main
Window Idler - This struct handles the main loop going to idle when there is no user input for a while.
- Main
Window Pieces - Helper struct to call
window_event
without owning the Window. - Main
Window Status - This struct maintains basic window info to be kept across events.
- Main
Window With Renderer - This is a
MainWindow
plus aRenderer
. It is the ultimateeasy-imgui
object. Instead of a literalMainWindow
you can use any type that implementsMainWindowRef
. - NoScale
- NewType to disable the HiDPI scaling.
Enums§
- AppEvent
- The main event type to be used with
winit::EventLoop
.
Traits§
- Application
- Trait that connects a
UiBuilder
with anAppHandler
. - Event
Loop Ext - Helper trait to extend
winit::EventLoopProxy
with useful functions. - Main
Window Ref - This traits grants access to a Window.
Functions§
- about_
to_ wait - Corresponds to winit’s
ApplicationHandler::about_to_wait
. - new_
events - Corresponds to winit’s
ApplicationHandler::new_events
. - window_
event - Corresponds to winit’s
ApplicationHandler::window_event
.