[][src]Struct qt_core::FocusPolicy

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

This enum type defines the various policies a widget can have with respect to acquiring keyboard focus.

C++ enum: Qt::FocusPolicy.

C++ documentation:

This enum type defines the various policies a widget can have with respect to acquiring keyboard focus.

Methods

impl FocusPolicy[src]

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

impl FocusPolicy[src]

pub const NoFocus: FocusPolicy[src]

the widget does not accept focus. (C++ enum variant: NoFocus = 0)

pub const TabFocus: FocusPolicy[src]

the widget accepts focus by tabbing. (C++ enum variant: TabFocus = 1)

pub const ClickFocus: FocusPolicy[src]

the widget accepts focus by clicking. (C++ enum variant: ClickFocus = 2)

pub const StrongFocus: FocusPolicy[src]

the widget accepts focus by both tabbing and clicking. On macOS this will also be indicate that the widget accepts tab focus when in 'Text/List focus mode'. (C++ enum variant: StrongFocus = 11)

pub const WheelFocus: FocusPolicy[src]

like Qt::StrongFocus plus the widget accepts focus by using the mouse wheel. (C++ enum variant: WheelFocus = 15)

Trait Implementations

impl Clone for FocusPolicy[src]

impl Copy for FocusPolicy[src]

impl Debug for FocusPolicy[src]

impl Eq for FocusPolicy[src]

impl From<FocusPolicy> for c_int[src]

impl From<i32> for FocusPolicy[src]

impl PartialEq<FocusPolicy> for FocusPolicy[src]

impl StructuralEq for FocusPolicy[src]

impl StructuralPartialEq for FocusPolicy[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

impl<T> StaticUpcast<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.