pub struct PenStyle(/* private fields */);
Expand description
This enum type defines the pen styles that can be drawn using QPainter. The styles are:
C++ enum: Qt::PenStyle
.
Implementations§
Source§impl PenStyle
impl PenStyle
Sourcepub const NoPen: PenStyle
pub const NoPen: PenStyle
no line at all. For example, QPainter::drawRect() fills but does not draw any boundary line. (C++ enum variant: NoPen = 0
)
Sourcepub const DashLine: PenStyle
pub const DashLine: PenStyle
Dashes separated by a few pixels. (C++ enum variant: DashLine = 2
)
Sourcepub const DashDotLine: PenStyle
pub const DashDotLine: PenStyle
Alternate dots and dashes. (C++ enum variant: DashDotLine = 4
)
Sourcepub const DashDotDotLine: PenStyle
pub const DashDotDotLine: PenStyle
One dash, two dots, one dash, two dots. (C++ enum variant: DashDotDotLine = 5
)
Sourcepub const CustomDashLine: PenStyle
pub const CustomDashLine: PenStyle
A custom pattern defined using QPainterPathStroker::setDashPattern(). (C++ enum variant: CustomDashLine = 6
)
Trait Implementations§
impl Copy for PenStyle
impl Eq for PenStyle
impl StructuralPartialEq for PenStyle
Auto Trait Implementations§
impl Freeze for PenStyle
impl RefUnwindSafe for PenStyle
impl Send for PenStyle
impl Sync for PenStyle
impl Unpin for PenStyle
impl UnwindSafe for PenStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more