pub struct Renderer { /* private fields */ }
Implementations
Trait Implementations
sourceimpl Renderer for Renderer
impl Renderer for Renderer
fn edge_antialias(&self) -> bool
fn create_texture(
&mut self,
texture_type: TextureType,
width: usize,
height: usize,
flags: ImageFlags,
data: Option<&[u8]>
) -> Result<usize, Error>
fn delete_texture(&mut self, img: usize) -> Result<(), Error>
fn update_texture(
&mut self,
img: usize,
x: usize,
y: usize,
width: usize,
height: usize,
data: &[u8]
) -> Result<(), Error>
fn texture_size(&self, img: usize) -> Result<(usize, usize), Error>
fn viewport(
&mut self,
extent: Extent,
_device_pixel_ratio: f32
) -> Result<(), Error>
fn cancel(&mut self) -> Result<(), Error>
fn flush(&mut self) -> Result<(), Error>
fn fill(
&mut self,
paint: &Paint,
composite_operation: CompositeOperationState,
scissor: &Scissor,
fringe: f32,
bounds: Bounds,
paths: &[Path]
) -> Result<(), Error>
fn stroke(
&mut self,
paint: &Paint,
composite_operation: CompositeOperationState,
scissor: &Scissor,
fringe: f32,
stroke_width: f32,
paths: &[Path]
) -> Result<(), Error>
fn triangles(
&mut self,
paint: &Paint,
composite_operation: CompositeOperationState,
scissor: &Scissor,
vertexes: &[Vertex]
) -> Result<(), Error>
Auto Trait Implementations
impl RefUnwindSafe for Renderer
impl Send for Renderer
impl Sync for Renderer
impl Unpin for Renderer
impl UnwindSafe for Renderer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.