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 DotLine: PenStyle = _
pub const DotLine: PenStyle = _
Dots separated by a few pixels. (C++ enum variant: DotLine = 3
)
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§
source§impl PartialEq for PenStyle
impl PartialEq for PenStyle
impl Copy for PenStyle
impl Eq for PenStyle
impl StructuralEq for PenStyle
impl StructuralPartialEq for PenStyle
Auto Trait Implementations§
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