#[repr(transparent)]pub struct PenStyle {
pub repr: i32,
}
Expand description
This enum type defines the pen styles that can be drawn using QPainter.
Fields§
§repr: i32
Implementations§
Source§impl PenStyle
impl PenStyle
Sourcepub const NoPen: Self
pub const NoPen: Self
no line at all. For example, QPainter::drawRect() fills but does not draw any boundary line.
Sourcepub const DashDotLine: Self
pub const DashDotLine: Self
Alternate dots and dashes.
Sourcepub const DashDotDotLine: Self
pub const DashDotDotLine: Self
One dash, two dots, one dash, two dots.
Sourcepub const CustomDashLine: Self
pub const CustomDashLine: Self
A custom pattern defined using QPainterPathStroker::setDashPattern().
Trait Implementations§
Source§impl ExternType for PenStyle
impl ExternType for PenStyle
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