Struct qt_core::PenCapStyle
source · pub struct PenCapStyle(/* private fields */);
Expand description
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
.
Implementations§
source§impl PenCapStyle
impl PenCapStyle
sourcepub const FlatCap: PenCapStyle = _
pub const FlatCap: PenCapStyle = _
a square line end that does not cover the end point of the line. (C++ enum variant: FlatCap = 0
)
sourcepub const SquareCap: PenCapStyle = _
pub const SquareCap: PenCapStyle = _
a square line end that covers the end point and extends beyond it by half the line width. (C++ enum variant: SquareCap = 16
)
sourcepub const RoundCap: PenCapStyle = _
pub const RoundCap: PenCapStyle = _
a rounded line end. (C++ enum variant: RoundCap = 32
)
sourcepub const MPenCapStyle: PenCapStyle = _
pub const MPenCapStyle: PenCapStyle = _
C++ enum variant: MPenCapStyle = 48
Trait Implementations§
source§impl Clone for PenCapStyle
impl Clone for PenCapStyle
source§fn clone(&self) -> PenCapStyle
fn clone(&self) -> PenCapStyle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PenCapStyle
impl Debug for PenCapStyle
source§impl From<PenCapStyle> for c_int
impl From<PenCapStyle> for c_int
source§fn from(value: PenCapStyle) -> Self
fn from(value: PenCapStyle) -> Self
Converts to this type from the input type.
source§impl From<i32> for PenCapStyle
impl From<i32> for PenCapStyle
source§impl PartialEq for PenCapStyle
impl PartialEq for PenCapStyle
source§fn eq(&self, other: &PenCapStyle) -> bool
fn eq(&self, other: &PenCapStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PenCapStyle
impl Eq for PenCapStyle
impl StructuralEq for PenCapStyle
impl StructuralPartialEq for PenCapStyle
Auto Trait Implementations§
impl RefUnwindSafe for PenCapStyle
impl Send for PenCapStyle
impl Sync for PenCapStyle
impl Unpin for PenCapStyle
impl UnwindSafe for PenCapStyle
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