pub struct PathBatch {Show 13 fields
pub vertices: Vec<PathVertex>,
pub indices: Vec<u32>,
pub clip_bounds: [f32; 4],
pub clip_radius: [f32; 4],
pub clip_type: u32,
pub use_gradient_texture: bool,
pub gradient_stops: Option<Vec<GradientStop>>,
pub use_image_texture: bool,
pub image_source: Option<String>,
pub image_uv_bounds: [f32; 4],
pub use_glass_effect: bool,
pub glass_params: [f32; 4],
pub glass_tint: [f32; 4],
}Expand description
A batch of tessellated path geometry
Fields§
§vertices: Vec<PathVertex>Vertices for all paths in this batch
indices: Vec<u32>Indices for all paths in this batch
clip_bounds: [f32; 4]Clip bounds for this batch: (x, y, width, height) or (cx, cy, rx, ry)
clip_radius: [f32; 4]Clip corner radii for this batch
clip_type: u32Clip type for this batch: 0=none, 1=rect, 2=circle, 3=ellipse
use_gradient_texture: boolWhether to use gradient texture (for >2 stop gradients)
gradient_stops: Option<Vec<GradientStop>>Gradient stops for texture rasterization (when use_gradient_texture is true)
use_image_texture: boolWhether to use image texture
image_source: Option<String>Image source path for image brush (None if not using image)
image_uv_bounds: [f32; 4]Image UV bounds: (u_min, v_min, u_max, v_max)
use_glass_effect: boolWhether to use glass effect
glass_params: [f32; 4]Glass parameters: (blur_radius, saturation, tint_strength, opacity)
glass_tint: [f32; 4]Glass tint color (RGBA)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathBatch
impl RefUnwindSafe for PathBatch
impl Send for PathBatch
impl Sync for PathBatch
impl Unpin for PathBatch
impl UnsafeUnpin for PathBatch
impl UnwindSafe for PathBatch
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