[][src]Struct qt_core::PenCapStyle

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

This enum type defines the pen cap styles supported by Qt, i.e. the line end caps that can be drawn using QPainter.

C++ enum: Qt::PenCapStyle.

C++ documentation:

This enum type defines the pen cap styles supported by Qt, i.e. the line end caps that can be drawn using QPainter.

Qt::SquareCapQt::FlatCapQt::RoundCap

See also QPen.

Methods

impl PenCapStyle[src]

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

impl PenCapStyle[src]

pub const FlatCap: PenCapStyle[src]

a square line end that does not cover the end point of the line. (C++ enum variant: FlatCap = 0)

pub const SquareCap: PenCapStyle[src]

a square line end that covers the end point and extends beyond it by half the line width. (C++ enum variant: SquareCap = 16)

pub const RoundCap: PenCapStyle[src]

a rounded line end. (C++ enum variant: RoundCap = 32)

pub const MPenCapStyle: PenCapStyle[src]

C++ enum variant: MPenCapStyle = 48

Trait Implementations

impl Clone for PenCapStyle[src]

impl Copy for PenCapStyle[src]

impl Debug for PenCapStyle[src]

impl Eq for PenCapStyle[src]

impl From<PenCapStyle> for c_int[src]

impl From<i32> for PenCapStyle[src]

impl PartialEq<PenCapStyle> for PenCapStyle[src]

impl StructuralEq for PenCapStyle[src]

impl StructuralPartialEq for PenCapStyle[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.