pub struct InputMethodQuery(/* private fields */);
Expand description

Masks:

C++ enum: Qt::InputMethodQuery.

C++ documentation:

Masks:

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

See also QInputMethodQueryEvent.

Implementations§

source§

impl InputMethodQuery

source

pub fn to_int(&self) -> c_int

source§

impl InputMethodQuery

source

pub const ImEnabled: InputMethodQuery = _

The widget accepts input method input. (C++ enum variant: ImEnabled = 1)

source

pub const ImCursorRectangle: InputMethodQuery = _

The rectangle covering the area of the input cursor in widget coordinates. (C++ enum variant: ImCursorRectangle = 2)

source

pub const ImMicroFocus: InputMethodQuery = _

This query is obsolete. Use ImCursorRectangle instead. (C++ enum variant: ImMicroFocus = 2)

source

pub const ImFont: InputMethodQuery = _

The currently used font for text input. (C++ enum variant: ImFont = 4)

source

pub const ImCursorPosition: InputMethodQuery = _

The logical position of the cursor within the text surrounding the input area (see ImSurroundingText). (C++ enum variant: ImCursorPosition = 8)

source

pub const ImSurroundingText: InputMethodQuery = _

The plain text around the input area, for example the current paragraph. (C++ enum variant: ImSurroundingText = 16)

source

pub const ImCurrentSelection: InputMethodQuery = _

The currently selected text. (C++ enum variant: ImCurrentSelection = 32)

source

pub const ImMaximumTextLength: InputMethodQuery = _

The maximum number of characters that the widget can hold. If there is no limit, QVariant::QVariant() is returned. (C++ enum variant: ImMaximumTextLength = 64)

source

pub const ImAnchorPosition: InputMethodQuery = _

The position of the selection anchor. This may be less or greater than ImCursorPosition, depending on which side of selection the cursor is. If there is no selection, it returns the same as ImCursorPosition. (C++ enum variant: ImAnchorPosition = 128)

source

pub const ImHints: InputMethodQuery = _

The hints for input method on expected input. (See Qt::InputMethodHints) (C++ enum variant: ImHints = 256)

source

pub const ImPreferredLanguage: InputMethodQuery = _

The preferred input language. (C++ enum variant: ImPreferredLanguage = 512)

source

pub const ImAbsolutePosition: InputMethodQuery = _

The logical position of the cursor within the entire document. (C++ enum variant: ImAbsolutePosition = 1024)

source

pub const ImTextBeforeCursor: InputMethodQuery = _

The plain text before the cursor. The widget can decide how much text to return, but must not return an empty string unless the cursor is at the start of the document. (C++ enum variant: ImTextBeforeCursor = 2048)

source

pub const ImTextAfterCursor: InputMethodQuery = _

The plain text after the cursor. The widget can decide how much text to return, but must not return an empty string unless the cursor is at the end of the document. (C++ enum variant: ImTextAfterCursor = 4096)

source

pub const ImEnterKeyType: InputMethodQuery = _

The Enter key type. (C++ enum variant: ImEnterKeyType = 8192)

source

pub const ImAnchorRectangle: InputMethodQuery = _

The bounding rectangle of the selection anchor. This value has been added in Qt 5.7. (C++ enum variant: ImAnchorRectangle = 16384)

source

pub const ImInputItemClipRectangle: InputMethodQuery = _

The actual exposed input item rectangle. Parts of the input item might be clipped. This value will take clipping into consideration and return the actual painted item rectangle. The rectangle is in widget coordinates. (C++ enum variant: ImInputItemClipRectangle = 32768)

source

pub const ImPlatformData: InputMethodQuery = _

Platform specific data for input method. (C++ enum variant: ImPlatformData = -2147483648)

source

pub const ImQueryInput: InputMethodQuery = _

Commonly changed properties on input. (C++ enum variant: ImQueryInput = 16570)

source

pub const ImQueryAll: InputMethodQuery = _

Query for all input method properties. (C++ enum variant: ImQueryAll = -1)

Trait Implementations§

source§

impl<T: Into<QFlags<InputMethodQuery>>> BitOr<T> for InputMethodQuery

§

type Output = QFlags<InputMethodQuery>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: T) -> QFlags<InputMethodQuery>

Performs the | operation. Read more
source§

impl Clone for InputMethodQuery

source§

fn clone(&self) -> InputMethodQuery

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for InputMethodQuery

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<InputMethodQuery> for QFlags<InputMethodQuery>

source§

fn from(value: InputMethodQuery) -> Self

Converts to this type from the input type.
source§

impl From<InputMethodQuery> for c_int

source§

fn from(value: InputMethodQuery) -> Self

Converts to this type from the input type.
source§

impl From<i32> for InputMethodQuery

source§

fn from(value: c_int) -> Self

Converts to this type from the input type.
source§

impl PartialEq for InputMethodQuery

source§

fn eq(&self, other: &InputMethodQuery) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for InputMethodQuery

source§

impl Eq for InputMethodQuery

source§

impl StructuralEq for InputMethodQuery

source§

impl StructuralPartialEq for InputMethodQuery

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.