Struct Io

Source
pub struct Io(/* private fields */);

Implementations§

Source§

impl Io

Source

pub fn get(&self) -> &ImGuiIO

Gets a reference to the native wrapper struct.

Source§

impl Io

Source

pub fn get_mut(&mut self) -> &mut ImGuiIO

Source§

impl Io

Source

pub fn cast(r: &ImGuiIO) -> &Io

Converts a native reference into a wrapper reference.

Source

pub fn cast_mut(r: &mut ImGuiIO) -> &mut Io

Converts a native reference into a wrapper reference.

It is safe because if you have a reference to the native reference, you already can change anything.

Source§

impl Io

Source

pub fn font_atlas(&self) -> &FontAtlas

Source

pub fn want_capture_mouse(&self) -> bool

Source

pub fn want_capture_keyboard(&self) -> bool

Source

pub fn want_text_input(&self) -> bool

Source

pub fn display_size(&self) -> Vector2

Source

pub fn display_scale(&self) -> f32

Source

pub fn add_config_flags(&mut self, flags: ConfigFlags)

Source

pub fn remove_config_flags(&mut self, flags: ConfigFlags)

Source

pub fn add_backend_flags(&mut self, flags: BackendFlags)

Source

pub fn remove_backend_flags(&mut self, flags: BackendFlags)

Source

pub fn delta_time(&mut self) -> Duration

Source

pub fn set_delta_time(&mut self, d: Duration)

Methods from Deref<Target = ImGuiIO>§

Source

pub unsafe fn AddKeyEvent(&mut self, key: ImGuiKey, down: bool)

Source

pub unsafe fn AddKeyAnalogEvent(&mut self, key: ImGuiKey, down: bool, v: f32)

Source

pub unsafe fn AddMousePosEvent(&mut self, x: f32, y: f32)

Source

pub unsafe fn AddMouseButtonEvent(&mut self, button: i32, down: bool)

Source

pub unsafe fn AddMouseWheelEvent(&mut self, wheel_x: f32, wheel_y: f32)

Source

pub unsafe fn AddMouseSourceEvent(&mut self, source: ImGuiMouseSource)

Source

pub unsafe fn AddMouseViewportEvent(&mut self, id: u32)

Source

pub unsafe fn AddFocusEvent(&mut self, focused: bool)

Source

pub unsafe fn AddInputCharacter(&mut self, c: u32)

Source

pub unsafe fn AddInputCharacterUTF16(&mut self, c: u16)

Source

pub unsafe fn AddInputCharactersUTF8(&mut self, str_: *const i8)

Source

pub unsafe fn SetKeyEventNativeData( &mut self, key: ImGuiKey, native_keycode: i32, native_scancode: i32, native_legacy_index: i32, )

Source

pub unsafe fn SetAppAcceptingEvents(&mut self, accepting_events: bool)

Source

pub unsafe fn ClearEventsQueue(&mut self)

Source

pub unsafe fn ClearInputKeys(&mut self)

Source

pub unsafe fn ClearInputMouse(&mut self)

Trait Implementations§

Source§

impl Debug for Io

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for Io

Source§

type Target = ImGuiIO

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for Io

Source§

fn deref_mut(&mut self) -> &mut ImGuiIO

Mutably dereferences the value.

Auto Trait Implementations§

§

impl Freeze for Io

§

impl !RefUnwindSafe for Io

§

impl !Send for Io

§

impl !Sync for Io

§

impl Unpin for Io

§

impl !UnwindSafe for Io

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.