[][src]Struct qt_widgets::q_style_option_view_item::ViewItemPosition

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

This enum is used to represent the placement of the item on a row. This can be used to draw items differently depending on their placement, for example by putting rounded edges at the beginning and end, and straight edges in between.

C++ enum: QStyleOptionViewItem::ViewItemPosition.

C++ documentation:

This enum is used to represent the placement of the item on a row. This can be used to draw items differently depending on their placement, for example by putting rounded edges at the beginning and end, and straight edges in between.

Methods

impl ViewItemPosition[src]

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

impl ViewItemPosition[src]

pub const Invalid: ViewItemPosition[src]

The ViewItemPosition is unknown and should be disregarded. (C++ enum variant: Invalid = 0)

pub const Beginning: ViewItemPosition[src]

The item appears at the beginning of the row. (C++ enum variant: Beginning = 1)

pub const Middle: ViewItemPosition[src]

The item appears in the middle of the row. (C++ enum variant: Middle = 2)

pub const End: ViewItemPosition[src]

The item appears at the end of the row. (C++ enum variant: End = 3)

pub const OnlyOne: ViewItemPosition[src]

The item is the only one on the row, and is therefore both at the beginning and the end. (C++ enum variant: OnlyOne = 4)

Trait Implementations

impl Eq for ViewItemPosition[src]

impl Clone for ViewItemPosition[src]

impl PartialEq<ViewItemPosition> for ViewItemPosition[src]

impl From<i32> for ViewItemPosition[src]

impl From<ViewItemPosition> for c_int[src]

impl Copy for ViewItemPosition[src]

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