#[repr(C)]pub struct DrawList { /* private fields */ }
Implementations§
Source§impl DrawList
impl DrawList
pub fn init(&mut self)
pub fn setup( &mut self, config: &ConvertConfig, cmds: &mut Buffer, vertices: &mut Buffer, elements: &mut Buffer, line_aa: AntiAliasing, shape_aa: AntiAliasing, )
pub fn begin(&self, buf: &Buffer) -> &DrawCommand
pub fn next(&self, buf: &Buffer, prev: &DrawCommand) -> &DrawCommand
pub fn path_clear(&mut self)
pub fn path_line_to(&mut self, pos: Vec2)
pub fn path_arc_to_fast( &mut self, center: Vec2, radius: f32, a_min: i32, a_max: i32, )
pub fn path_arc_to( &mut self, center: Vec2, radius: f32, a_min: f32, a_max: f32, segments: u32, )
pub fn path_rect_to(&mut self, a: Vec2, b: Vec2, rounding: f32)
pub fn path_curve_to(&mut self, p2: Vec2, p3: Vec2, p4: Vec2, num_segments: u32)
pub fn path_fill(&mut self, col: Color)
pub fn path_stroke( &mut self, arg2: Color, closed: DrawListStroke, thickness: f32, )
pub fn stroke_line(&mut self, a: Vec2, b: Vec2, arg2: Color, thickness: f32)
pub fn stroke_rect( &mut self, rect: Rect, arg2: Color, rounding: f32, thickness: f32, )
pub fn stroke_triangle( &mut self, a: Vec2, b: Vec2, c: Vec2, arg2: Color, thickness: f32, )
pub fn stroke_circle( &mut self, center: Vec2, radius: f32, arg2: Color, segs: u32, thickness: f32, )
pub fn stroke_curve( &mut self, p0: Vec2, cp0: Vec2, cp1: Vec2, p1: Vec2, arg2: Color, segments: u32, thickness: f32, )
pub fn stroke_poly_line( &mut self, points: &[Vec2], arg2: Color, arg3: DrawListStroke, thickness: f32, aa: AntiAliasing, )
pub fn fill_rect(&mut self, rect: Rect, arg2: Color, rounding: f32)
pub fn fill_rect_multi_color( &mut self, rect: Rect, left: Color, top: Color, right: Color, bottom: Color, )
pub fn fill_triangle(&mut self, a: Vec2, b: Vec2, c: Vec2, arg2: Color)
pub fn fill_circle(&mut self, center: Vec2, radius: f32, col: Color, segs: u32)
pub fn fill_poly_convex( &mut self, points: &[Vec2], arg2: Color, arg3: AntiAliasing, )
pub fn add_image(&mut self, texture: Image, rect: Rect, arg2: Color)
pub fn add_text( &mut self, arg2: &UserFont, arg3: Rect, text: String<'_>, font_height: f32, arg4: Color, )
Trait Implementations§
Source§impl AsMut<DrawList> for nk_draw_list
impl AsMut<DrawList> for nk_draw_list
Source§impl AsMut<nk_draw_list> for DrawList
impl AsMut<nk_draw_list> for DrawList
Source§fn as_mut(&mut self) -> &mut nk_draw_list
fn as_mut(&mut self) -> &mut nk_draw_list
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<DrawList> for nk_draw_list
impl AsRef<DrawList> for nk_draw_list
Source§impl AsRef<nk_draw_list> for DrawList
impl AsRef<nk_draw_list> for DrawList
Source§fn as_ref(&self) -> &nk_draw_list
fn as_ref(&self) -> &nk_draw_list
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for DrawList
impl RefUnwindSafe for DrawList
impl !Send for DrawList
impl !Sync for DrawList
impl Unpin for DrawList
impl UnwindSafe for DrawList
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more