[]Struct imgui::ImGuiInputTextFlags

#[repr(C)]
pub struct ImGuiInputTextFlags { /* fields omitted */ }

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 Extend<ImGuiInputTextFlags> for ImGuiInputTextFlags

impl Clone for ImGuiInputTextFlags

impl PartialOrd<ImGuiInputTextFlags> for ImGuiInputTextFlags

impl Ord for ImGuiInputTextFlags

impl PartialEq<ImGuiInputTextFlags> for ImGuiInputTextFlags

impl Copy for ImGuiInputTextFlags

impl Hash 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 Debug for ImGuiInputTextFlags

impl FromIterator<ImGuiInputTextFlags> for ImGuiInputTextFlags

impl Octal for ImGuiInputTextFlags

impl Binary for ImGuiInputTextFlags

impl LowerHex for ImGuiInputTextFlags

impl UpperHex for ImGuiInputTextFlags

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]