[][src]Struct qt_core::PenStyle

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

This enum type defines the pen styles that can be drawn using QPainter. The styles are:

C++ enum: Qt::PenStyle.

C++ documentation:

This enum type defines the pen styles that can be drawn using QPainter. The styles are:

Qt::SolidLineQt::DashLineQt::DotLine
Qt::DashDotLineQt::DashDotDotLineQt::CustomDashLine

See also QPen.

Methods

impl PenStyle[src]

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

impl PenStyle[src]

pub const NoPen: PenStyle[src]

no line at all. For example, QPainter::drawRect() fills but does not draw any boundary line. (C++ enum variant: NoPen = 0)

pub const SolidLine: PenStyle[src]

A plain line. (C++ enum variant: SolidLine = 1)

pub const DashLine: PenStyle[src]

Dashes separated by a few pixels. (C++ enum variant: DashLine = 2)

pub const DotLine: PenStyle[src]

Dots separated by a few pixels. (C++ enum variant: DotLine = 3)

pub const DashDotLine: PenStyle[src]

Alternate dots and dashes. (C++ enum variant: DashDotLine = 4)

pub const DashDotDotLine: PenStyle[src]

One dash, two dots, one dash, two dots. (C++ enum variant: DashDotDotLine = 5)

pub const CustomDashLine: PenStyle[src]

A custom pattern defined using QPainterPathStroker::setDashPattern(). (C++ enum variant: CustomDashLine = 6)

pub const MPenStyle: PenStyle[src]

C++ enum variant: MPenStyle = 15

Trait Implementations

impl From<i32> for PenStyle[src]

impl From<PenStyle> for c_int[src]

impl Clone for PenStyle[src]

impl Copy for PenStyle[src]

impl Eq for PenStyle[src]

impl PartialEq<PenStyle> for PenStyle[src]

impl Debug for PenStyle[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<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]