StreamGeometryContext
struct · ferroui-base · v0.5.0
struct StreamGeometryContext
Describes a geometry using drawing commands.
This type is used to describe a stream geometry: obtain one by calling
StreamGeometry::open. The context
is completed when it is disposed or dropped.
Members
precise_arc_to
fn precise_arc_to(self: &mut Self, point: Point, size: Size, rotation_angle: f64, is_large_arc: bool, sweep_direction: SweepDirection)
Draws an arc to the specified point using polylines, quadratic or cubic Bezier curves. This is significantly more precise when drawing elliptic arcs with extreme width:height ratios.
The parameters are those of IGeometryContext::arc_to:
point- The destination point where the arc ends.size- The radii of an ellipse whose path is used to draw the arc.rotation_angle- The rotation angle (in degrees) of the ellipse that specifies the path of the arc; positive values are clockwise. This will rotate the entire arc relative to the X-axis and is not commonly used.is_large_arc- Specifies whether the arc should follow the longer path around an ellipse rather than the shorter one.trueto draw the arc greater than 180 degrees; otherwise,false.sweep_direction- A value that indicates whether the arc is drawn in the Clockwise or Counterclockwise direction.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherIGeometryContextDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.