[−][src]Struct piet_embedded_graphics::EmbedRenderContext
Methods
impl EmbedRenderContext[src]
fn convert_brush(&mut self, brush: &Brush) -> Rgb565[src]
Get the source pattern for the brush
Trait Implementations
impl<'a> IntoBrush<EmbedRenderContext> for Brush[src]
fn make_brush<'b>(
&'b self,
_piet: &mut EmbedRenderContext,
_bbox: impl FnOnce() -> Rect
) -> Brush[src]
&'b self,
_piet: &mut EmbedRenderContext,
_bbox: impl FnOnce() -> Rect
) -> Brush
impl RenderContext for EmbedRenderContext[src]
type Brush = Brush
The type of a "brush". Read more
type Text = EmbedText
An associated factory for creating text layouts and related resources.
type TextLayout = EmbedTextLayout
fn status(&mut self) -> Result<(), Error>[src]
fn clear(&mut self, color: Color)[src]
fn solid_brush(&mut self, color: Color) -> Brush[src]
fn fill(&mut self, shape: impl Shape, brush: &impl IntoBrush<Self>)[src]
fn fill_even_odd(&mut self, shape: impl Shape, brush: &impl IntoBrush<Self>)[src]
fn clip(&mut self, _shape: impl Shape)[src]
fn stroke(
&mut self,
shape: impl Shape,
brush: &impl IntoBrush<Self>,
width: f64
)[src]
&mut self,
shape: impl Shape,
brush: &impl IntoBrush<Self>,
width: f64
)
fn stroke_styled(
&mut self,
shape: impl Shape,
brush: &impl IntoBrush<Self>,
width: f64,
_style: &StrokeStyle
)[src]
&mut self,
shape: impl Shape,
brush: &impl IntoBrush<Self>,
width: f64,
_style: &StrokeStyle
)
fn text(&mut self) -> &mut Self::Text[src]
fn draw_text(
&mut self,
layout: &Self::TextLayout,
pos: impl Into<Point>,
brush: &impl IntoBrush<Self>
)[src]
&mut self,
layout: &Self::TextLayout,
pos: impl Into<Point>,
brush: &impl IntoBrush<Self>
)
fn save(&mut self) -> Result<(), Error>[src]
fn restore(&mut self) -> Result<(), Error>[src]
fn finish(&mut self) -> Result<(), Error>[src]
fn transform(&mut self, _transform: Affine)[src]
fn with_save(
&mut self,
f: impl FnOnce(&mut Self) -> Result<(), Error>
) -> Result<(), Error>[src]
&mut self,
f: impl FnOnce(&mut Self) -> Result<(), Error>
) -> Result<(), Error>
Auto Trait Implementations
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,
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> RoundFrom<T> for T[src]
fn round_from(x: T) -> T[src]
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>, [src]
U: RoundFrom<T>,
fn round_into(self) -> U[src]
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
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.
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>,