pub struct ShapeCache { /* private fields */ }Implementations§
Source§impl ShapeCache
impl ShapeCache
pub fn new(capacity: usize) -> ShapeCache
pub fn capacity(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn stats(&self) -> ShapeStats
pub fn reset_stats(&self)
pub fn clear(&self)
pub fn fill( &self, path: &Path, rule: FillRule, opts: RasterOptions, ) -> Rc<Shape>
pub fn fill_styled(&self, path: &Path, style: FillStyle) -> Rc<Shape>
pub fn stroke( &self, path: &Path, style: &StrokeStyle, opts: RasterOptions, ) -> Rc<Shape>
pub fn fill_contours( &self, contours: &[Contour], rule: FillRule, opts: RasterOptions, ) -> Rc<Shape>
pub fn disk(&self, center: Point, radius: f32) -> Rc<Shape>
pub fn rounded_rect(&self, rect: Rect, radius: f32) -> Rc<Shape>
pub fn rect(&self, rect: Rect) -> Rc<Shape>
Trait Implementations§
Source§impl Debug for ShapeCache
impl Debug for ShapeCache
Source§impl Default for ShapeCache
impl Default for ShapeCache
Source§fn default() -> ShapeCache
fn default() -> ShapeCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ShapeCache
impl !RefUnwindSafe for ShapeCache
impl !Send for ShapeCache
impl !Sync for ShapeCache
impl Unpin for ShapeCache
impl UnsafeUnpin for ShapeCache
impl UnwindSafe for ShapeCache
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