[][src]Struct qt_widgets::q_line_edit::ActionPosition

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

This enum type describes how a line edit should display the action widgets to be added.

C++ enum: QLineEdit::ActionPosition.

C++ documentation:

This enum type describes how a line edit should display the action widgets to be added.

This enum was introduced or modified in Qt 5.2.

See also addAction(), removeAction(), and QWidget::layoutDirection.

Methods

impl ActionPosition[src]

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

impl ActionPosition[src]

pub const LeadingPosition: ActionPosition[src]

The widget is displayed to the left of the text when using layout direction Qt::LeftToRight or to the right when using Qt::RightToLeft, respectively. (C++ enum variant: LeadingPosition = 0)

pub const TrailingPosition: ActionPosition[src]

The widget is displayed to the right of the text when using layout direction Qt::LeftToRight or to the left when using Qt::RightToLeft, respectively. (C++ enum variant: TrailingPosition = 1)

Trait Implementations

impl Eq for ActionPosition[src]

impl Clone for ActionPosition[src]

impl PartialEq<ActionPosition> for ActionPosition[src]

impl From<i32> for ActionPosition[src]

impl From<ActionPosition> for c_int[src]

impl Copy for ActionPosition[src]

impl Debug for ActionPosition[src]

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]

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

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