pub struct ConfigFlags(/* private fields */);Expand description
The configuration flags for the ImGui I/O context.
Implementations§
source§impl ConfigFlags
impl ConfigFlags
sourcepub fn flags(&self) -> ImGuiConfigFlags
pub fn flags(&self) -> ImGuiConfigFlags
Returns the configuration flags.
Enables or disables the keyboard navigation
Enables or disables the gamepad navigation
Enables or disables the mouse navigation
sourcepub fn allow_docking(self, enable: bool) -> Self
pub fn allow_docking(self, enable: bool) -> Self
Enables or disables docking support.
sourcepub fn allow_viewports(self, enable: bool) -> Self
pub fn allow_viewports(self, enable: bool) -> Self
Enables or disables viewports.
sourcepub fn no_mouse_cursor_change(self, enable: bool) -> Self
pub fn no_mouse_cursor_change(self, enable: bool) -> Self
Sets whether the mouse cursor should change.
sourcepub fn dpi_scale_viewports(self, enable: bool) -> Self
pub fn dpi_scale_viewports(self, enable: bool) -> Self
Sets whether viewports should be DPI-scaled.
sourcepub fn dpi_scale_fonts(self, enable: bool) -> Self
pub fn dpi_scale_fonts(self, enable: bool) -> Self
Sets whether fonts should be DPI-scaled.
sourcepub fn set_touchscreen(self, enable: bool) -> Self
pub fn set_touchscreen(self, enable: bool) -> Self
Sets whether the application is a touch screen.
Trait Implementations§
source§impl Clone for ConfigFlags
impl Clone for ConfigFlags
source§fn clone(&self) -> ConfigFlags
fn clone(&self) -> ConfigFlags
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ConfigFlags
impl Debug for ConfigFlags
source§impl Default for ConfigFlags
impl Default for ConfigFlags
source§fn default() -> ConfigFlags
fn default() -> ConfigFlags
Returns the “default value” for a type. Read more
source§impl Ord for ConfigFlags
impl Ord for ConfigFlags
source§fn cmp(&self, other: &ConfigFlags) -> Ordering
fn cmp(&self, other: &ConfigFlags) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ConfigFlags
impl PartialEq for ConfigFlags
source§impl PartialOrd for ConfigFlags
impl PartialOrd for ConfigFlags
impl Copy for ConfigFlags
impl Eq for ConfigFlags
impl StructuralPartialEq for ConfigFlags
Auto Trait Implementations§
impl Freeze for ConfigFlags
impl RefUnwindSafe for ConfigFlags
impl Send for ConfigFlags
impl Sync for ConfigFlags
impl Unpin for ConfigFlags
impl UnwindSafe for ConfigFlags
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)