[−][src]Trait nvg::renderer::Renderer
Associated Types
type ImageHandle
Required methods
fn edge_antialias(&self) -> bool
fn create_texture(
&mut self,
texture_type: TextureType,
width: usize,
height: usize,
flags: ImageFlags,
data: Option<&[u8]>
) -> RendererResult<Self::ImageHandle>
&mut self,
texture_type: TextureType,
width: usize,
height: usize,
flags: ImageFlags,
data: Option<&[u8]>
) -> RendererResult<Self::ImageHandle>
fn delete_texture(&mut self, handle: Self::ImageHandle) -> RendererResult<()>
fn update_texture(
&mut self,
handle: Self::ImageHandle,
x: usize,
y: usize,
width: usize,
height: usize,
data: &[u8]
) -> RendererResult<()>
&mut self,
handle: Self::ImageHandle,
x: usize,
y: usize,
width: usize,
height: usize,
data: &[u8]
) -> RendererResult<()>
fn texture_size(
&self,
handle: Self::ImageHandle
) -> RendererResult<(usize, usize)>
&self,
handle: Self::ImageHandle
) -> RendererResult<(usize, usize)>
fn viewport(
&mut self,
extent: Extent,
device_pixel_ratio: f32
) -> RendererResult<()>
&mut self,
extent: Extent,
device_pixel_ratio: f32
) -> RendererResult<()>
fn cancel(&mut self) -> RendererResult<()>
fn flush(&mut self) -> RendererResult<()>
fn fill(
&mut self,
paint: &Paint<Self::ImageHandle>,
composite_operation: CompositeOperationState,
scissor: &Scissor,
fringe: f32,
bounds: Bounds,
paths: &[Path]
) -> RendererResult<()>
&mut self,
paint: &Paint<Self::ImageHandle>,
composite_operation: CompositeOperationState,
scissor: &Scissor,
fringe: f32,
bounds: Bounds,
paths: &[Path]
) -> RendererResult<()>
fn stroke(
&mut self,
paint: &Paint<Self::ImageHandle>,
composite_operation: CompositeOperationState,
scissor: &Scissor,
fringe: f32,
stroke_width: f32,
paths: &[Path]
) -> RendererResult<()>
&mut self,
paint: &Paint<Self::ImageHandle>,
composite_operation: CompositeOperationState,
scissor: &Scissor,
fringe: f32,
stroke_width: f32,
paths: &[Path]
) -> RendererResult<()>
fn triangles(
&mut self,
paint: &Paint<Self::ImageHandle>,
composite_operation: CompositeOperationState,
scissor: &Scissor,
vertexes: &[Vertex]
) -> RendererResult<()>
&mut self,
paint: &Paint<Self::ImageHandle>,
composite_operation: CompositeOperationState,
scissor: &Scissor,
vertexes: &[Vertex]
) -> RendererResult<()>