[−]Struct imgui::ImGuiInputTextFlags
Flags for text inputs
Methods
impl ImGuiInputTextFlags
pub const CharsDecimal: ImGuiInputTextFlags
Allow 0123456789.+-*/
pub const CharsHexadecimal: ImGuiInputTextFlags
Allow 0123456789ABCDEFabcdef
pub const CharsUppercase: ImGuiInputTextFlags
Turn a..z into A..Z
pub const CharsNoBlank: ImGuiInputTextFlags
Filter out spaces, tabs
pub const AutoSelectAll: ImGuiInputTextFlags
Select entire text when first taking mouse focus
pub const EnterReturnsTrue: ImGuiInputTextFlags
Return 'true' when Enter is pressed (as opposed to when the value was modified)
pub const CallbackCompletion: ImGuiInputTextFlags
Call user function on pressing TAB (for completion handling)
pub const CallbackHistory: ImGuiInputTextFlags
Call user function on pressing Up/Down arrows (for history handling)
pub const CallbackAlways: ImGuiInputTextFlags
Call user function every time. User code may query cursor position, modify text buffer.
pub const CallbackCharFilter: ImGuiInputTextFlags
Call user function to filter character.
pub const AllowTabInput: ImGuiInputTextFlags
Pressing TAB input a '\t' character into the text field
pub const CtrlEnterForNewLine: ImGuiInputTextFlags
In multi-line mode, unfocus with Enter, add new line with Ctrl+Enter (default is opposite: unfocus with Ctrl+Enter, add line with Enter).
pub const NoHorizontalScroll: ImGuiInputTextFlags
Disable following the cursor horizontally
pub const AlwaysInsertMode: ImGuiInputTextFlags
Insert mode
pub const ReadOnly: ImGuiInputTextFlags
Read-only mode
pub const Password: ImGuiInputTextFlags
Password mode, display all characters as '*'
pub const NoUndoRedo: ImGuiInputTextFlags
Disable undo/redo.
pub const CharsScientific: ImGuiInputTextFlags
Allow 0123456789.+-*/eE (Scientific notation input)
pub const CallbackResize: ImGuiInputTextFlags
Allow buffer capacity resize + notify when the string wants to be resized
pub const fn empty() -> ImGuiInputTextFlags
Returns an empty set of flags
pub const fn all() -> ImGuiInputTextFlags
Returns the set containing all flags.
pub const fn bits(&self) -> c_int
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: c_int) -> Option<ImGuiInputTextFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: c_int) -> ImGuiInputTextFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: ImGuiInputTextFlags) -> bool
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: ImGuiInputTextFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: ImGuiInputTextFlags)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: ImGuiInputTextFlags)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: ImGuiInputTextFlags)
Toggles the specified flags in-place.
pub fn set(&mut self, other: ImGuiInputTextFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Eq for ImGuiInputTextFlags
impl Clone for ImGuiInputTextFlags
fn clone(&self) -> ImGuiInputTextFlags
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Extend<ImGuiInputTextFlags> for ImGuiInputTextFlags
fn extend<T: IntoIterator<Item = ImGuiInputTextFlags>>(&mut self, iterator: T)
impl PartialOrd<ImGuiInputTextFlags> for ImGuiInputTextFlags
fn partial_cmp(&self, other: &ImGuiInputTextFlags) -> Option<Ordering>
fn lt(&self, other: &ImGuiInputTextFlags) -> bool
fn le(&self, other: &ImGuiInputTextFlags) -> bool
fn gt(&self, other: &ImGuiInputTextFlags) -> bool
fn ge(&self, other: &ImGuiInputTextFlags) -> bool
impl Ord for ImGuiInputTextFlags
fn cmp(&self, other: &ImGuiInputTextFlags) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ImGuiInputTextFlags> for ImGuiInputTextFlags
fn eq(&self, other: &ImGuiInputTextFlags) -> bool
fn ne(&self, other: &ImGuiInputTextFlags) -> bool
impl Copy for ImGuiInputTextFlags
impl Hash for ImGuiInputTextFlags
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Debug for ImGuiInputTextFlags
impl Sub<ImGuiInputTextFlags> for ImGuiInputTextFlags
type Output = ImGuiInputTextFlags
The resulting type after applying the -
operator.
fn sub(self, other: ImGuiInputTextFlags) -> ImGuiInputTextFlags
Returns the set difference of the two sets of flags.
impl SubAssign<ImGuiInputTextFlags> for ImGuiInputTextFlags
fn sub_assign(&mut self, other: ImGuiInputTextFlags)
Disables all flags enabled in the set.
impl Not for ImGuiInputTextFlags
type Output = ImGuiInputTextFlags
The resulting type after applying the !
operator.
fn not(self) -> ImGuiInputTextFlags
Returns the complement of this set of flags.
impl BitAnd<ImGuiInputTextFlags> for ImGuiInputTextFlags
type Output = ImGuiInputTextFlags
The resulting type after applying the &
operator.
fn bitand(self, other: ImGuiInputTextFlags) -> ImGuiInputTextFlags
Returns the intersection between the two sets of flags.
impl BitOr<ImGuiInputTextFlags> for ImGuiInputTextFlags
type Output = ImGuiInputTextFlags
The resulting type after applying the |
operator.
fn bitor(self, other: ImGuiInputTextFlags) -> ImGuiInputTextFlags
Returns the union of the two sets of flags.
impl BitXor<ImGuiInputTextFlags> for ImGuiInputTextFlags
type Output = ImGuiInputTextFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: ImGuiInputTextFlags) -> ImGuiInputTextFlags
Returns the left flags, but with all the right flags toggled.
impl BitAndAssign<ImGuiInputTextFlags> for ImGuiInputTextFlags
fn bitand_assign(&mut self, other: ImGuiInputTextFlags)
Disables all flags disabled in the set.
impl BitOrAssign<ImGuiInputTextFlags> for ImGuiInputTextFlags
fn bitor_assign(&mut self, other: ImGuiInputTextFlags)
Adds the set of flags.
impl BitXorAssign<ImGuiInputTextFlags> for ImGuiInputTextFlags
fn bitxor_assign(&mut self, other: ImGuiInputTextFlags)
Toggles the set of flags.
impl FromIterator<ImGuiInputTextFlags> for ImGuiInputTextFlags
fn from_iter<T: IntoIterator<Item = ImGuiInputTextFlags>>(
iterator: T
) -> ImGuiInputTextFlags
iterator: T
) -> ImGuiInputTextFlags
impl Octal for ImGuiInputTextFlags
impl Binary for ImGuiInputTextFlags
impl LowerHex for ImGuiInputTextFlags
impl UpperHex for ImGuiInputTextFlags
Auto Trait Implementations
impl Send for ImGuiInputTextFlags
impl Unpin for ImGuiInputTextFlags
impl Sync for ImGuiInputTextFlags
impl RefUnwindSafe for ImGuiInputTextFlags
impl UnwindSafe for ImGuiInputTextFlags
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,