[][src]Struct qt_core::InputMethodHint

#[repr(transparent)]
pub struct InputMethodHint(_);

Flags that alter the behavior:

C++ enum: Qt::InputMethodHint.

C++ documentation:

Flags that alter the behavior:

Flags that restrict input (exclusive flags):

Masks:

Note: If several exclusive flags are OR-ed together, the resulting character set will consist of the union of the specified sets. For instance specifying ImhNumbersOnly and ImhUppercaseOnly would yield a set consisting of numbers and uppercase letters.

The InputMethodHints type is a typedef for QFlags<InputMethodHint>. It stores an OR combination of InputMethodHint values.

See also QGraphicsItem::inputMethodHints().

Methods

impl InputMethodHint[src]

pub fn to_int(&self) -> c_int[src]

impl InputMethodHint[src]

pub const ImhNone: InputMethodHint[src]

No hints. (C++ enum variant: ImhNone = 0)

pub const ImhHiddenText: InputMethodHint[src]

The input method should not show the characters while typing. This is automatically set when setting QLineEdit::echoMode to Password. Note that setting ImhHiddenText does not change the echo mode. (C++ enum variant: ImhHiddenText = 1)

pub const ImhSensitiveData: InputMethodHint[src]

Typed text should not be stored by the active input method in any persistent storage like predictive user dictionary. (C++ enum variant: ImhSensitiveData = 2)

pub const ImhNoAutoUppercase: InputMethodHint[src]

The input method should not try to automatically switch to upper case when a sentence ends. (C++ enum variant: ImhNoAutoUppercase = 4)

pub const ImhPreferNumbers: InputMethodHint[src]

Numbers are preferred (but not required). (C++ enum variant: ImhPreferNumbers = 8)

pub const ImhPreferUppercase: InputMethodHint[src]

Upper case letters are preferred (but not required). (C++ enum variant: ImhPreferUppercase = 16)

pub const ImhPreferLowercase: InputMethodHint[src]

Lower case letters are preferred (but not required). (C++ enum variant: ImhPreferLowercase = 32)

pub const ImhNoPredictiveText: InputMethodHint[src]

Do not use predictive text (i.e. dictionary lookup) while typing. (C++ enum variant: ImhNoPredictiveText = 64)

pub const ImhDate: InputMethodHint[src]

The text editor functions as a date field. (C++ enum variant: ImhDate = 128)

pub const ImhTime: InputMethodHint[src]

The text editor functions as a time field. (C++ enum variant: ImhTime = 256)

pub const ImhPreferLatin: InputMethodHint[src]

Latin characters are preferred (but not required). (C++ enum variant: ImhPreferLatin = 512)

pub const ImhMultiLine: InputMethodHint[src]

Multiple lines can be entered into the text field. (C++ enum variant: ImhMultiLine = 1024)

pub const ImhDigitsOnly: InputMethodHint[src]

Only digits are allowed. (C++ enum variant: ImhDigitsOnly = 65536)

pub const ImhFormattedNumbersOnly: InputMethodHint[src]

Only number input is allowed. This includes decimal point and minus sign. (C++ enum variant: ImhFormattedNumbersOnly = 131072)

pub const ImhUppercaseOnly: InputMethodHint[src]

Only upper case letter input is allowed. (C++ enum variant: ImhUppercaseOnly = 262144)

pub const ImhLowercaseOnly: InputMethodHint[src]

Only lower case letter input is allowed. (C++ enum variant: ImhLowercaseOnly = 524288)

pub const ImhDialableCharactersOnly: InputMethodHint[src]

Only characters suitable for phone dialing are allowed. (C++ enum variant: ImhDialableCharactersOnly = 1048576)

pub const ImhEmailCharactersOnly: InputMethodHint[src]

Only characters suitable for email addresses are allowed. (C++ enum variant: ImhEmailCharactersOnly = 2097152)

pub const ImhUrlCharactersOnly: InputMethodHint[src]

Only characters suitable for URLs are allowed. (C++ enum variant: ImhUrlCharactersOnly = 4194304)

pub const ImhLatinOnly: InputMethodHint[src]

Only latin based input is allowed. (C++ enum variant: ImhLatinOnly = 8388608)

pub const ImhExclusiveInputMask: InputMethodHint[src]

This mask yields nonzero if any of the exclusive flags are used. (C++ enum variant: ImhExclusiveInputMask = -65536)

pub const ImhNoEditMenu: InputMethodHint[src]

Do not use built-in edit menu. This flag was introduced in Qt 5.11. (C++ enum variant: ImhNoEditMenu = 2048)

pub const ImhNoTextHandles: InputMethodHint[src]

Do not use built-in text cursor and selection handles. This flag was introduced in Qt 5.11. (C++ enum variant: ImhNoTextHandles = 4096)

Trait Implementations

impl From<i32> for InputMethodHint[src]

impl From<InputMethodHint> for c_int[src]

impl From<InputMethodHint> for QFlags<InputMethodHint>[src]

impl Clone for InputMethodHint[src]

impl Copy for InputMethodHint[src]

impl Eq for InputMethodHint[src]

impl PartialEq<InputMethodHint> for InputMethodHint[src]

impl Debug for InputMethodHint[src]

impl<T: Into<QFlags<InputMethodHint>>> BitOr<T> for InputMethodHint[src]

type Output = QFlags<InputMethodHint>

The resulting type after applying the | operator.

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]