pub struct NullScenePainter;Implementations§
Trait Implementations§
Source§impl Clone for NullScenePainter
impl Clone for NullScenePainter
Source§fn clone(&self) -> NullScenePainter
fn clone(&self) -> NullScenePainter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NullScenePainter
Source§impl Default for NullScenePainter
impl Default for NullScenePainter
Source§fn default() -> NullScenePainter
fn default() -> NullScenePainter
Returns the “default value” for a type. Read more
Source§impl PaintScene for NullScenePainter
impl PaintScene for NullScenePainter
Source§fn push_layer(
&mut self,
_blend: impl Into<BlendMode>,
_alpha: f32,
_transform: Affine,
_clip: &impl Shape,
_filter: Option<Arc<Filter>>,
_backdrop_filter: Option<Arc<Filter>>,
)
fn push_layer( &mut self, _blend: impl Into<BlendMode>, _alpha: f32, _transform: Affine, _clip: &impl Shape, _filter: Option<Arc<Filter>>, _backdrop_filter: Option<Arc<Filter>>, )
Pushes a new layer clipped by the specified shape and composed with previous layers using the specified blend mode.
Every drawing command after this call will be clipped by the shape until the layer is popped.
However, the transforms are not saved or modified by the layer stack.
Source§fn push_clip_layer(&mut self, _transform: Affine, _clip: &impl Shape)
fn push_clip_layer(&mut self, _transform: Affine, _clip: &impl Shape)
Pushes a new clip layer clipped by the specified shape.
Every drawing command after this call will be clipped by the shape until the layer is popped.
However, the transforms are not saved or modified by the layer stack.
Source§fn stroke<'a>(
&mut self,
_style: &Stroke,
_transform: Affine,
_brush: impl Into<PaintRef<'a>>,
_brush_transform: Option<Affine>,
_shape: &impl Shape,
)
fn stroke<'a>( &mut self, _style: &Stroke, _transform: Affine, _brush: impl Into<PaintRef<'a>>, _brush_transform: Option<Affine>, _shape: &impl Shape, )
Strokes a shape using the specified style and brush.
Source§fn fill<'a>(
&mut self,
_style: Fill,
_transform: Affine,
_brush: impl Into<PaintRef<'a>>,
_brush_transform: Option<Affine>,
_shape: &impl Shape,
)
fn fill<'a>( &mut self, _style: Fill, _transform: Affine, _brush: impl Into<PaintRef<'a>>, _brush_transform: Option<Affine>, _shape: &impl Shape, )
Fills a shape using the specified style and brush.
Source§fn draw_glyphs<'a, 's: 'a>(
&'s mut self,
_font: &'a FontData,
_font_size: f32,
_hint: bool,
_normalized_coords: &'a [NormalizedCoord],
_embolden: Vec2,
_style: impl Into<StyleRef<'a>>,
_brush: impl Into<PaintRef<'a>>,
_brush_alpha: f32,
_transform: Affine,
_glyph_transform: Option<Affine>,
_glyphs: impl Iterator<Item = Glyph>,
)
fn draw_glyphs<'a, 's: 'a>( &'s mut self, _font: &'a FontData, _font_size: f32, _hint: bool, _normalized_coords: &'a [NormalizedCoord], _embolden: Vec2, _style: impl Into<StyleRef<'a>>, _brush: impl Into<PaintRef<'a>>, _brush_alpha: f32, _transform: Affine, _glyph_transform: Option<Affine>, _glyphs: impl Iterator<Item = Glyph>, )
Draws a run of glyphs
Source§fn draw_box_shadow(
&mut self,
_transform: Affine,
_rect: Rect,
_brush: Color,
_radius: f64,
_std_dev: f64,
)
fn draw_box_shadow( &mut self, _transform: Affine, _rect: Rect, _brush: Color, _radius: f64, _std_dev: f64, )
Draw a rounded rectangle blurred with a gaussian filter.
Source§fn append_scene(&mut self, scene: Scene, scene_transform: Affine)
fn append_scene(&mut self, scene: Scene, scene_transform: Affine)
Append a recorded Scene Fragment to the current scene
Source§fn draw_image(&mut self, image: ImageBrushRef<'_>, transform: Affine)
fn draw_image(&mut self, image: ImageBrushRef<'_>, transform: Affine)
Utility method to draw an image at it’s natural size. For more advanced image drawing use the
fill methodSource§impl RenderContext for NullScenePainter
impl RenderContext for NullScenePainter
fn try_register_custom_resource( &mut self, resource: Box<dyn Any>, ) -> Result<ResourceId, RegisterResourceError>
fn unregister_resource(&mut self, resource_id: ResourceId)
Auto Trait Implementations§
impl Freeze for NullScenePainter
impl RefUnwindSafe for NullScenePainter
impl Send for NullScenePainter
impl Sync for NullScenePainter
impl Unpin for NullScenePainter
impl UnsafeUnpin for NullScenePainter
impl UnwindSafe for NullScenePainter
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