pub struct Io(/* private fields */);Implementations§
Source§impl Io
impl Io
pub fn font_atlas(&self) -> &FontAtlas
pub fn want_capture_mouse(&self) -> bool
pub fn want_capture_keyboard(&self) -> bool
pub fn want_text_input(&self) -> bool
pub fn display_size(&self) -> Vector2
pub fn display_scale(&self) -> f32
Sourcepub fn config_color_edit_flags(&self) -> ColorEditFlags
pub fn config_color_edit_flags(&self) -> ColorEditFlags
Dear ImGui (io.ConfigColorEditFlags): Current settings for ColorEdit/ColorPicker widgets.
Sourcepub fn mouse_single_click_delay(&self) -> Duration
pub fn mouse_single_click_delay(&self) -> Duration
Dear ImGui (io.MouseSingleClickDelay): Time for a delayed click when using
get_item_clicked_count_with_single_click_delay() or is_mouse_released_with_delay(), in
seconds. Must be > io.MouseDoubleClickTime.
Sourcepub fn config_ini_settings_save_last_used_date(&self) -> bool
pub fn config_ini_settings_save_last_used_date(&self) -> bool
Dear ImGui (io.ConfigIniSettingsSaveLastUsedDate): Enable loading/saving last used day
(YYYYMMDD) in some .ini struct, making things easier to audit and allowing custom tools to
cleanup old data.
Sourcepub fn config_ini_settings_auto_discard_months(&self) -> i32
pub fn config_ini_settings_auto_discard_months(&self) -> i32
Dear ImGui (io.ConfigIniSettingsAutoDiscardMonths): [BETA] Set number of months after
which unused .ini entries are discarded on load. Require
PlatformIo::Platform_SessionDate to be set.
pub fn add_config_flags(&mut self, flags: ConfigFlags)
pub fn remove_config_flags(&mut self, flags: ConfigFlags)
pub fn add_backend_flags(&mut self, flags: BackendFlags)
pub fn remove_backend_flags(&mut self, flags: BackendFlags)
pub fn delta_time(&mut self) -> Duration
pub fn set_delta_time(&mut self, d: Duration)
Methods from Deref<Target = ImGuiIO>§
pub unsafe fn AddKeyEvent(&mut self, key: ImGuiKey, down: bool)
pub unsafe fn AddKeyAnalogEvent(&mut self, key: ImGuiKey, down: bool, v: f32)
pub unsafe fn AddMousePosEvent(&mut self, x: f32, y: f32)
pub unsafe fn AddMouseButtonEvent(&mut self, button: i32, down: bool)
pub unsafe fn AddMouseWheelEvent(&mut self, wheel_x: f32, wheel_y: f32)
pub unsafe fn AddMouseSourceEvent(&mut self, source: ImGuiMouseSource)
pub unsafe fn AddMouseViewportEvent(&mut self, id: u32)
pub unsafe fn AddFocusEvent(&mut self, focused: bool)
pub unsafe fn AddInputCharacter(&mut self, c: u32)
pub unsafe fn AddInputCharacterUTF16(&mut self, c: u16)
pub unsafe fn AddInputCharactersUTF8(&mut self, str_: *const i8)
pub unsafe fn SetKeyEventNativeData( &mut self, key: ImGuiKey, native_keycode: i32, native_scancode: i32, native_legacy_index: i32, )
pub unsafe fn SetAppAcceptingEvents(&mut self, accepting_events: bool)
pub unsafe fn ClearEventsQueue(&mut self)
pub unsafe fn ClearInputKeys(&mut self)
pub unsafe fn ClearInputMouse(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Io
impl !Send for Io
impl !Sync for Io
impl !UnwindSafe for Io
impl Freeze for Io
impl Unpin for Io
impl UnsafeUnpin for Io
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more