pub struct DrawScopeDefault { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Default for DrawScopeDefault
impl Default for DrawScopeDefault
Source§fn default() -> DrawScopeDefault
fn default() -> DrawScopeDefault
Returns the “default value” for a type. Read more
Source§impl DrawScope for DrawScopeDefault
impl DrawScope for DrawScopeDefault
fn size(&self) -> Size
fn draw_content(&mut self)
fn draw_rect(&mut self, brush: Brush)
fn draw_rect_blend(&mut self, brush: Brush, blend_mode: BlendMode)
Source§fn draw_rect_at(&mut self, rect: Rect, brush: Brush)
fn draw_rect_at(&mut self, rect: Rect, brush: Brush)
Draws a rectangle at the specified position and size.
fn draw_rect_at_blend( &mut self, rect: Rect, brush: Brush, blend_mode: BlendMode, )
fn draw_round_rect(&mut self, brush: Brush, radii: CornerRadii)
fn draw_round_rect_blend( &mut self, brush: Brush, radii: CornerRadii, blend_mode: BlendMode, )
fn draw_image(&mut self, image: ImageBitmap)
fn draw_image_blend(&mut self, image: ImageBitmap, blend_mode: BlendMode)
fn draw_image_at( &mut self, rect: Rect, image: ImageBitmap, alpha: f32, color_filter: Option<ColorFilter>, )
fn draw_image_at_blend( &mut self, rect: Rect, image: ImageBitmap, alpha: f32, color_filter: Option<ColorFilter>, blend_mode: BlendMode, )
Source§fn draw_image_src(
&mut self,
image: ImageBitmap,
src_rect: Rect,
dst_rect: Rect,
alpha: f32,
color_filter: Option<ColorFilter>,
)
fn draw_image_src( &mut self, image: ImageBitmap, src_rect: Rect, dst_rect: Rect, alpha: f32, color_filter: Option<ColorFilter>, )
Draws a sub-region of an image.
src_rect is in image-pixel
coordinates; dst_rect is in scope coordinates.fn draw_image_src_blend( &mut self, image: ImageBitmap, src_rect: Rect, dst_rect: Rect, alpha: f32, color_filter: Option<ColorFilter>, blend_mode: BlendMode, )
fn into_primitives(self) -> Vec<DrawPrimitive>
Auto Trait Implementations§
impl Freeze for DrawScopeDefault
impl RefUnwindSafe for DrawScopeDefault
impl Send for DrawScopeDefault
impl Sync for DrawScopeDefault
impl Unpin for DrawScopeDefault
impl UnsafeUnpin for DrawScopeDefault
impl UnwindSafe for DrawScopeDefault
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