Trait Draw
Source pub trait Draw {
Show 23 methods
// Required methods
fn push_vertex_raw(&mut self, vertex: Vertex);
fn push_triangle(&mut self, a: u32, b: u32, c: u32);
fn last_vertex_index(&self) -> u32;
// Provided methods
fn push_vertex(&mut self, pos: Vector2<f32>, tex_coord: Vector2<f32>) { ... }
fn push_triangle_multicolor(&mut self, vertices: [(Vector2<f32>, Color); 3]) { ... }
fn push_triangle_filled(&mut self, vertices: [Vector2<f32>; 3]) { ... }
fn push_line(&mut self, a: Vector2<f32>, b: Vector2<f32>, thickness: f32) { ... }
fn push_rect(&mut self, rect: &Rect<f32>, thickness: f32) { ... }
fn push_rect_vary(&mut self, rect: &Rect<f32>, thickness: Thickness) { ... }
fn push_rect_filled(
&mut self,
rect: &Rect<f32>,
tex_coords: Option<&[Vector2<f32>; 4]>,
) { ... }
fn push_rect_multicolor(&mut self, rect: &Rect<f32>, colors: [Color; 4]) { ... }
fn push_circle_filled(
&mut self,
origin: Vector2<f32>,
radius: f32,
segments: usize,
color: Color,
) { ... }
fn push_circle(
&mut self,
center: Vector2<f32>,
radius: f32,
subdivisions: usize,
thickness: f32,
) { ... }
fn connect_as_line(&mut self, from: u32, to: u32, closed: bool) { ... }
fn push_arc(
&mut self,
center: Vector2<f32>,
radius: f32,
angles: Range<f32>,
subdivisions: usize,
thickness: f32,
) { ... }
fn push_arc_path_with_thickness(
&mut self,
center: Vector2<f32>,
radius: f32,
angles: Range<f32>,
subdivisions: usize,
thickness: f32,
) { ... }
fn push_arc_path(
&mut self,
center: Vector2<f32>,
radius: f32,
angles: Range<f32>,
subdivisions: usize,
) { ... }
fn push_line_path(&mut self, a: Vector2<f32>, b: Vector2<f32>) { ... }
fn push_line_path_with_thickness(
&mut self,
a: Vector2<f32>,
b: Vector2<f32>,
thickness: f32,
) { ... }
fn push_rounded_rect_filled(
&mut self,
rect: &Rect<f32>,
corner_radius: f32,
corner_subdivisions: usize,
) { ... }
fn push_rounded_rect(
&mut self,
rect: &Rect<f32>,
thickness: f32,
corner_radius: f32,
corner_subdivisions: usize,
) { ... }
fn push_bezier(
&mut self,
p0: Vector2<f32>,
p1: Vector2<f32>,
p2: Vector2<f32>,
p3: Vector2<f32>,
subdivisions: usize,
thickness: f32,
) { ... }
fn push_grid(
&mut self,
zoom: f32,
cell_size: Vector2<f32>,
grid_bounds: Rect<f32>,
) { ... }
}