pub struct ShapeParams {
pub geometry_kind: ShapeGeometryKind,
pub width: i64,
pub height: i64,
pub border_radius: f64,
pub polygon_points: String,
pub position: (f64, f64),
pub fill_enabled: bool,
pub fill_paint: Paint,
pub stroke_enabled: bool,
pub stroke_paint: Paint,
pub stroke_width: f64,
}Expand description
Produces a vector shape layer for GPU rasterization.
Fields§
§geometry_kind: ShapeGeometryKindGeometry primitive to rasterize.
width: i64Shape width in pixels.
height: i64Shape height in pixels.
border_radius: f64Corner radius for rectangle geometry.
polygon_points: StringPolygon point list formatted as x,y; x,y.
position: (f64, f64)Shape origin in pixels.
fill_enabled: boolEnables fill rendering.
fill_paint: PaintFill paint. Accepts a solid color or gradient.
stroke_enabled: boolEnables stroke rendering.
stroke_paint: PaintStroke paint. Accepts a solid color or gradient.
stroke_width: f64Stroke width in pixels.
Trait Implementations§
Source§impl Clone for ShapeParams
impl Clone for ShapeParams
Source§impl Debug for ShapeParams
impl Debug for ShapeParams
Source§impl Default for ShapeParams
impl Default for ShapeParams
Source§impl Delegated for ShapeParams
impl Delegated for ShapeParams
type Delegate = ShapeParamsDelegate
fn into_delegate(self) -> Self::Delegate
Auto Trait Implementations§
impl Freeze for ShapeParams
impl RefUnwindSafe for ShapeParams
impl Send for ShapeParams
impl Sync for ShapeParams
impl Unpin for ShapeParams
impl UnsafeUnpin for ShapeParams
impl UnwindSafe for ShapeParams
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