[−][src]Struct qt_widgets::q_style_option_view_item::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
.
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]
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]
fn clone(&self) -> ViewItemPosition
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<ViewItemPosition> for ViewItemPosition
[src]
fn eq(&self, other: &ViewItemPosition) -> bool
[src]
fn ne(&self, other: &ViewItemPosition) -> bool
[src]
impl From<i32> for ViewItemPosition
[src]
impl From<ViewItemPosition> for c_int
[src]
fn from(value: ViewItemPosition) -> Self
[src]
impl Copy for ViewItemPosition
[src]
impl Debug for ViewItemPosition
[src]
Auto Trait Implementations
impl Send for ViewItemPosition
impl Unpin for ViewItemPosition
impl Sync for ViewItemPosition
impl UnwindSafe for ViewItemPosition
impl RefUnwindSafe for ViewItemPosition
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,