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