Struct ImGuiIO

Source
#[repr(C)]
pub struct ImGuiIO {
Show 55 fields pub DisplaySize: ImVec2, pub DeltaTime: c_float, pub IniSavingRate: c_float, pub IniFilename: *const c_char, pub LogFilename: *const c_char, pub MouseDoubleClickTime: c_float, pub MouseDoubleClickMaxDist: c_float, pub MouseDragThreshold: c_float, pub KeyMap: [c_int; 19], pub KeyRepeatDelay: c_float, pub KeyRepeatRate: c_float, pub UserData: *mut c_void, pub Fonts: *mut ImFontAtlas, pub FontGlobalScale: c_float, pub FontAllowUserScaling: u8, pub DisplayFramebufferScale: ImVec2, pub DisplayVisibleMin: ImVec2, pub DisplayVisibleMax: ImVec2, pub RenderDrawListsFn: Option<unsafe extern "C" fn(data: *mut ImDrawData)>, pub GetClipboardTextFn: Option<extern "C" fn() -> *const c_char>, pub SetClipboardTextFn: Option<unsafe extern "C" fn(text: *const c_char)>, pub MemAllocFn: Option<extern "C" fn(sz: size_t) -> *mut c_void>, pub MemFreeFn: Option<unsafe extern "C" fn(ptr: *mut c_void)>, pub ImeSetInputScreenPosFn: Option<extern "C" fn(x: c_int, y: c_int)>, pub ImeWindowHandle: *mut c_void, pub MousePos: ImVec2, pub MouseDown: [u8; 5], pub MouseWheel: c_float, pub MouseDrawCursor: u8, pub KeyCtrl: u8, pub KeyShift: u8, pub KeyAlt: u8, pub KeysDown: [u8; 512], pub InputCharacters: [ImWchar; 17], pub WantCaptureMouse: u8, pub WantCaptureKeyboard: u8, pub WantTextInput: u8, pub Framerate: c_float, pub MetricsAllocs: c_int, pub MetricsRenderVertices: c_int, pub MetricsRenderIndices: c_int, pub MetricsActiveWindows: c_int, pub MousePosPrev: ImVec2, pub MouseDelta: ImVec2, pub MouseClicked: [u8; 5], pub MouseClickedPos: [ImVec2; 5], pub MouseClickedTime: [c_float; 5], pub MouseDoubleClicked: [u8; 5], pub MouseReleased: [u8; 5], pub MouseDownOwned: [u8; 5], pub MouseDownDuration: [c_float; 5], pub MouseDownDurationPrev: [c_float; 5], pub MouseDragMaxDistanceSqr: [c_float; 5], pub KeysDownDuration: [c_float; 512], pub KeysDownDurationPrev: [c_float; 512],
}

Fields§

§DisplaySize: ImVec2§DeltaTime: c_float§IniSavingRate: c_float§IniFilename: *const c_char§LogFilename: *const c_char§MouseDoubleClickTime: c_float§MouseDoubleClickMaxDist: c_float§MouseDragThreshold: c_float§KeyMap: [c_int; 19]§KeyRepeatDelay: c_float§KeyRepeatRate: c_float§UserData: *mut c_void§Fonts: *mut ImFontAtlas§FontGlobalScale: c_float§FontAllowUserScaling: u8§DisplayFramebufferScale: ImVec2§DisplayVisibleMin: ImVec2§DisplayVisibleMax: ImVec2§RenderDrawListsFn: Option<unsafe extern "C" fn(data: *mut ImDrawData)>§GetClipboardTextFn: Option<extern "C" fn() -> *const c_char>§SetClipboardTextFn: Option<unsafe extern "C" fn(text: *const c_char)>§MemAllocFn: Option<extern "C" fn(sz: size_t) -> *mut c_void>§MemFreeFn: Option<unsafe extern "C" fn(ptr: *mut c_void)>§ImeSetInputScreenPosFn: Option<extern "C" fn(x: c_int, y: c_int)>§ImeWindowHandle: *mut c_void§MousePos: ImVec2§MouseDown: [u8; 5]§MouseWheel: c_float§MouseDrawCursor: u8§KeyCtrl: u8§KeyShift: u8§KeyAlt: u8§KeysDown: [u8; 512]§InputCharacters: [ImWchar; 17]§WantCaptureMouse: u8§WantCaptureKeyboard: u8§WantTextInput: u8§Framerate: c_float§MetricsAllocs: c_int§MetricsRenderVertices: c_int§MetricsRenderIndices: c_int§MetricsActiveWindows: c_int§MousePosPrev: ImVec2§MouseDelta: ImVec2§MouseClicked: [u8; 5]§MouseClickedPos: [ImVec2; 5]§MouseClickedTime: [c_float; 5]§MouseDoubleClicked: [u8; 5]§MouseReleased: [u8; 5]§MouseDownOwned: [u8; 5]§MouseDownDuration: [c_float; 5]§MouseDownDurationPrev: [c_float; 5]§MouseDragMaxDistanceSqr: [c_float; 5]§KeysDownDuration: [c_float; 512]§KeysDownDurationPrev: [c_float; 512]

Trait Implementations§

Source§

impl Clone for ImGuiIO

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for ImGuiIO

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for ImGuiIO

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.