[][src]Struct qt_widgets::q_style_option_view_item::ViewItemFeature

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

This enum describes the different types of features an item can have.

C++ enum: QStyleOptionViewItem::ViewItemFeature.

C++ documentation:

This enum describes the different types of features an item can have.

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

Methods

impl ViewItemFeature[src]

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

impl ViewItemFeature[src]

pub const None: ViewItemFeature[src]

Indicates a normal item. (C++ enum variant: None = 0)

pub const WrapText: ViewItemFeature[src]

Indicates an item with wrapped text. (C++ enum variant: WrapText = 1)

pub const Alternate: ViewItemFeature[src]

Indicates that the item's background is rendered using alternateBase. (C++ enum variant: Alternate = 2)

pub const HasCheckIndicator: ViewItemFeature[src]

Indicates that the item has a check state indicator. (C++ enum variant: HasCheckIndicator = 4)

pub const HasDisplay: ViewItemFeature[src]

Indicates that the item has a display role. (C++ enum variant: HasDisplay = 8)

pub const HasDecoration: ViewItemFeature[src]

Indicates that the item has a decoration role. (C++ enum variant: HasDecoration = 16)

Trait Implementations

impl Eq for ViewItemFeature[src]

impl Clone for ViewItemFeature[src]

impl PartialEq<ViewItemFeature> for ViewItemFeature[src]

impl From<i32> for ViewItemFeature[src]

impl From<ViewItemFeature> for c_int[src]

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

impl Copy for ViewItemFeature[src]

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

type Output = QFlags<ViewItemFeature>

The resulting type after applying the | operator.

impl Debug for ViewItemFeature[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]