[][src]Struct nuki::DrawList

#[repr(C)]pub struct DrawList { /* fields omitted */ }

Implementations

impl DrawList[src]

pub fn init(&mut self)[src]

pub fn setup(
    &mut self,
    config: &ConvertConfig,
    cmds: &mut Buffer,
    vertices: &mut Buffer,
    elements: &mut Buffer,
    line_aa: AntiAliasing,
    shape_aa: AntiAliasing
)
[src]

pub fn begin(&self, buf: &Buffer) -> &DrawCommand[src]

pub fn next(&self, buf: &Buffer, prev: &DrawCommand) -> &DrawCommand[src]

pub fn path_clear(&mut self)[src]

pub fn path_line_to(&mut self, pos: Vec2)[src]

pub fn path_arc_to_fast(
    &mut self,
    center: Vec2,
    radius: f32,
    a_min: i32,
    a_max: i32
)
[src]

pub fn path_arc_to(
    &mut self,
    center: Vec2,
    radius: f32,
    a_min: f32,
    a_max: f32,
    segments: u32
)
[src]

pub fn path_rect_to(&mut self, a: Vec2, b: Vec2, rounding: f32)[src]

pub fn path_curve_to(&mut self, p2: Vec2, p3: Vec2, p4: Vec2, num_segments: u32)[src]

pub fn path_fill(&mut self, col: Color)[src]

pub fn path_stroke(
    &mut self,
    arg2: Color,
    closed: DrawListStroke,
    thickness: f32
)
[src]

pub fn stroke_line(&mut self, a: Vec2, b: Vec2, arg2: Color, thickness: f32)[src]

pub fn stroke_rect(
    &mut self,
    rect: Rect,
    arg2: Color,
    rounding: f32,
    thickness: f32
)
[src]

pub fn stroke_triangle(
    &mut self,
    a: Vec2,
    b: Vec2,
    c: Vec2,
    arg2: Color,
    thickness: f32
)
[src]

pub fn stroke_circle(
    &mut self,
    center: Vec2,
    radius: f32,
    arg2: Color,
    segs: u32,
    thickness: f32
)
[src]

pub fn stroke_curve(
    &mut self,
    p0: Vec2,
    cp0: Vec2,
    cp1: Vec2,
    p1: Vec2,
    arg2: Color,
    segments: u32,
    thickness: f32
)
[src]

pub fn stroke_poly_line(
    &mut self,
    points: &[Vec2],
    arg2: Color,
    arg3: DrawListStroke,
    thickness: f32,
    aa: AntiAliasing
)
[src]

pub fn fill_rect(&mut self, rect: Rect, arg2: Color, rounding: f32)[src]

pub fn fill_rect_multi_color(
    &mut self,
    rect: Rect,
    left: Color,
    top: Color,
    right: Color,
    bottom: Color
)
[src]

pub fn fill_triangle(&mut self, a: Vec2, b: Vec2, c: Vec2, arg2: Color)[src]

pub fn fill_circle(&mut self, center: Vec2, radius: f32, col: Color, segs: u32)[src]

pub fn fill_poly_convex(
    &mut self,
    points: &[Vec2],
    arg2: Color,
    arg3: AntiAliasing
)
[src]

pub fn add_image(&mut self, texture: Image, rect: Rect, arg2: Color)[src]

pub fn add_text(
    &mut self,
    arg2: &UserFont,
    arg3: Rect,
    text: String<'_>,
    font_height: f32,
    arg4: Color
)
[src]

Trait Implementations

impl AsMut<DrawList> for nk_draw_list[src]

impl AsMut<nk_draw_list> for DrawList[src]

impl AsRef<DrawList> for nk_draw_list[src]

impl AsRef<nk_draw_list> for DrawList[src]

impl Clone for DrawList[src]

impl Default for DrawList[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.