[−][src]Struct qt_core::FocusPolicy
This enum type defines the various policies a widget can have with respect to acquiring keyboard focus.
C++ enum: Qt::FocusPolicy
.
This enum type defines the various policies a widget can have with respect to acquiring keyboard focus.
Methods
impl FocusPolicy
[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]
fn clone(&self) -> FocusPolicy
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FocusPolicy
[src]
impl Debug for FocusPolicy
[src]
impl Eq for FocusPolicy
[src]
impl From<FocusPolicy> for c_int
[src]
fn from(value: FocusPolicy) -> Self
[src]
impl From<i32> for FocusPolicy
[src]
impl PartialEq<FocusPolicy> for FocusPolicy
[src]
fn eq(&self, other: &FocusPolicy) -> bool
[src]
fn ne(&self, other: &FocusPolicy) -> bool
[src]
impl StructuralEq for FocusPolicy
[src]
impl StructuralPartialEq for FocusPolicy
[src]
Auto Trait Implementations
impl RefUnwindSafe for FocusPolicy
impl Send for FocusPolicy
impl Sync for FocusPolicy
impl Unpin for FocusPolicy
impl UnwindSafe for FocusPolicy
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,