Struct jiao_qt::path::Path

source ·
pub struct Path {
    pub path: CppBox<QPainterPath>,
}

Fields§

§path: CppBox<QPainterPath>

Implementations§

source§

impl Path

source

pub fn new() -> Self

source

pub fn path(&mut self) -> &CppBox<QPainterPath>

Trait Implementations§

source§

impl Clone for Path

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Path

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Path

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl PathTrait for Path

source§

fn as_any(&self) -> &dyn Any

source§

fn clear(&mut self)

Clears the path elements stored.
source§

fn add_path(&mut self, _other: &dyn PathTrait)

source§

fn close_path(&mut self)

Attempts to add a straight line from the current point to the start of current path. Read more
source§

fn move_to(&mut self, point: PointF)

Move the starting point of path to the given (x, y) coordinates.
source§

fn line_to(&mut self, point: PointF)

Connects the last point in the path to point with a straight line.
source§

fn add_rect(&mut self, rect: &RectF)

Creates a path for a rectangle.
source§

fn add_round_rect(&mut self, rect: &RectF, radius: f64)

Adds the given rectangle rect with rounded corners to the path.
source§

fn arc(&mut self, center: PointF, radius: f64, start_angle: f64, end_angle: f64)

Creates an arc curve with specified center pointer and radius to the path, in clockwise direction.
source§

fn arc_to(&mut self, _p1: PointF, _p2: PointF, _radius: f64)

Adds a circle arc to the path with the given control points and radius, connected to the previous point by a straight line. Read more
source§

fn ellipse( &mut self, center: PointF, radius_x: f64, radius_y: f64, start_angle: f64, end_angle: f64 )

Adds an elliptical arc to the path.
source§

fn cubic_to(&mut self, p1: PointF, p2: PointF, end_point: PointF)

Adds a cubic Bézier curve to the path. Read more
source§

fn quad_to(&mut self, control_point: PointF, end_point: PointF)

Adds a quadratic Bézier curve between the current position and the given end_point with the control_point.
source§

fn add_circle(&mut self, center: PointF, radius: f64)

Adds a circle to the path.
source§

fn add_ellipse(&mut self, rect: &RectF)

Adds an ellipse to the path.

Auto Trait Implementations§

§

impl RefUnwindSafe for Path

§

impl !Send for Path

§

impl !Sync for Path

§

impl Unpin for Path

§

impl UnwindSafe for Path

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.