Struct qt_gui::q_painter_path::ElementType
source · pub struct ElementType(/* private fields */);
Expand description
This enum describes the types of elements used to connect vertices in subpaths.
C++ enum: QPainterPath::ElementType
.
This enum describes the types of elements used to connect vertices in subpaths.
Note that elements added as closed subpaths using the addEllipse(), addPath(), addPolygon(), addRect(), addRegion() and addText() convenience functions, is actually added to the path as a collection of separate elements using the moveTo(), lineTo() and cubicTo() functions.
See also elementAt() and elementCount().
Implementations§
source§impl ElementType
impl ElementType
sourcepub const MoveToElement: ElementType = _
pub const MoveToElement: ElementType = _
A new subpath. See also moveTo(). (C++ enum variant: MoveToElement = 0
)
sourcepub const LineToElement: ElementType = _
pub const LineToElement: ElementType = _
A line. See also lineTo(). (C++ enum variant: LineToElement = 1
)
sourcepub const CurveToElement: ElementType = _
pub const CurveToElement: ElementType = _
sourcepub const CurveToDataElement: ElementType = _
pub const CurveToDataElement: ElementType = _
The extra data required to describe a curve in a CurveToElement element. (C++ enum variant: CurveToDataElement = 3
)
Trait Implementations§
source§impl Clone for ElementType
impl Clone for ElementType
source§fn clone(&self) -> ElementType
fn clone(&self) -> ElementType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ElementType
impl Debug for ElementType
source§impl From<ElementType> for c_int
impl From<ElementType> for c_int
source§fn from(value: ElementType) -> Self
fn from(value: ElementType) -> Self
source§impl From<i32> for ElementType
impl From<i32> for ElementType
source§impl PartialEq for ElementType
impl PartialEq for ElementType
source§fn eq(&self, other: &ElementType) -> bool
fn eq(&self, other: &ElementType) -> bool
self
and other
values to be equal, and is used
by ==
.