pub struct Element { /* private fields */ }Expand description
C++ class: QPainterPath::Element.
Implementations§
Source§impl Element
impl Element
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<Element>>,
) -> Ref<Element>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<Element>>, ) -> Ref<Element>
Calls C++ function: QPainterPath::Element& QPainterPath::Element::operator=(const QPainterPath::Element& other).
Sourcepub unsafe fn is_curve_to(&self) -> bool
pub unsafe fn is_curve_to(&self) -> bool
Calls C++ function: bool QPainterPath::Element::isCurveTo() const.
Sourcepub unsafe fn is_line_to(&self) -> bool
pub unsafe fn is_line_to(&self) -> bool
Calls C++ function: bool QPainterPath::Element::isLineTo() const.
Sourcepub unsafe fn is_move_to(&self) -> bool
pub unsafe fn is_move_to(&self) -> bool
Calls C++ function: bool QPainterPath::Element::isMoveTo() const.
Sourcepub unsafe fn new() -> CppBox<Element>
pub unsafe fn new() -> CppBox<Element>
Calls C++ function: [constructor] void QPainterPath::Element::Element().
Sourcepub unsafe fn new_copy(other: impl CastInto<Ref<Element>>) -> CppBox<Element>
pub unsafe fn new_copy(other: impl CastInto<Ref<Element>>) -> CppBox<Element>
Calls C++ function: [constructor] void QPainterPath::Element::Element(const QPainterPath::Element& other).
Sourcepub unsafe fn set_type(&self, value: ElementType)
pub unsafe fn set_type(&self, value: ElementType)
Sets the value of the type field.
Sourcepub unsafe fn to_q_point_f(&self) -> CppBox<QPointF>
pub unsafe fn to_q_point_f(&self) -> CppBox<QPointF>
Calls C++ function: QPointF QPainterPath::Element::operator QPointF() const.
Sourcepub unsafe fn type_(&self) -> ElementType
pub unsafe fn type_(&self) -> ElementType
Returns the value of the type field.
Trait Implementations§
Source§impl CppDeletable for Element
impl CppDeletable for Element
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnsafeUnpin for Element
impl UnwindSafe for Element
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