Struct flo_canvas::CanvasGraphicsContext [−][src]
Graphics context for a Canvas
Trait Implementations
impl<'a> Drop for CanvasGraphicsContext<'a>
[src]
impl<'a> GraphicsContext for CanvasGraphicsContext<'a>
[src]
fn new_path(&mut self)
[src]
fn move_to(&mut self, x: f32, y: f32)
[src]
fn line_to(&mut self, x: f32, y: f32)
[src]
fn bezier_curve_to(
&mut self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
x3: f32,
y3: f32
)
[src]
&mut self,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
x3: f32,
y3: f32
)
fn close_path(&mut self)
[src]
fn fill(&mut self)
[src]
fn stroke(&mut self)
[src]
fn line_width(&mut self, width: f32)
[src]
fn line_width_pixels(&mut self, width: f32)
[src]
fn line_join(&mut self, join: LineJoin)
[src]
fn line_cap(&mut self, cap: LineCap)
[src]
fn winding_rule(&mut self, rule: WindingRule)
[src]
fn new_dash_pattern(&mut self)
[src]
fn dash_length(&mut self, length: f32)
[src]
fn dash_offset(&mut self, offset: f32)
[src]
fn fill_color(&mut self, col: Color)
[src]
fn stroke_color(&mut self, col: Color)
[src]
fn blend_mode(&mut self, mode: BlendMode)
[src]
fn identity_transform(&mut self)
[src]
fn canvas_height(&mut self, height: f32)
[src]
fn center_region(&mut self, minx: f32, miny: f32, maxx: f32, maxy: f32)
[src]
fn transform(&mut self, transform: Transform2D)
[src]
fn unclip(&mut self)
[src]
fn clip(&mut self)
[src]
fn store(&mut self)
[src]
fn restore(&mut self)
[src]
fn free_stored_buffer(&mut self)
[src]
fn push_state(&mut self)
[src]
fn pop_state(&mut self)
[src]
fn clear_canvas(&mut self, color: Color)
[src]
fn layer(&mut self, layer_id: u32)
[src]
fn layer_blend(&mut self, layer_id: u32, blend_mode: BlendMode)
[src]
fn clear_layer(&mut self)
[src]
fn sprite(&mut self, sprite_id: SpriteId)
[src]
fn clear_sprite(&mut self)
[src]
fn sprite_transform(&mut self, transform: SpriteTransform)
[src]
fn draw_sprite(&mut self, sprite_id: SpriteId)
[src]
fn draw(&mut self, d: Draw)
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for CanvasGraphicsContext<'a>
[src]
impl<'a> Send for CanvasGraphicsContext<'a>
[src]
impl<'a> Sync for CanvasGraphicsContext<'a>
[src]
impl<'a> Unpin for CanvasGraphicsContext<'a>
[src]
impl<'a> !UnwindSafe for CanvasGraphicsContext<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,