Struct nuklear::DrawList [−][src]
#[repr(C)]pub struct DrawList { /* fields omitted */ }
Methods
impl DrawList
[src]
impl DrawList
pub fn init(&mut self)
[src]
pub fn init(&mut self)
pub fn setup(
&mut self,
config: &ConvertConfig,
cmds: &mut Buffer,
vertices: &mut Buffer,
elements: &mut Buffer
)
[src]
pub fn setup(
&mut self,
config: &ConvertConfig,
cmds: &mut Buffer,
vertices: &mut Buffer,
elements: &mut Buffer
)
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
pub fn begin(&self, buf: &Buffer) -> &DrawCommand
[src]
pub fn begin(&self, buf: &Buffer) -> &DrawCommand
pub fn next(&self, buf: &Buffer, prev: &DrawCommand) -> &DrawCommand
[src]
pub fn next(&self, buf: &Buffer, prev: &DrawCommand) -> &DrawCommand
pub fn path_clear(&mut self)
[src]
pub fn path_clear(&mut self)
pub fn path_line_to(&mut self, pos: Vec2)
[src]
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
)
[src]
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
)
[src]
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)
[src]
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)
[src]
pub fn path_curve_to(&mut self, p2: Vec2, p3: Vec2, p4: Vec2, num_segments: u32)
pub fn path_fill(&mut self, col: Color)
[src]
pub fn path_fill(&mut self, col: Color)
pub fn path_stroke(
&mut self,
arg2: Color,
closed: DrawListStroke,
thickness: f32
)
[src]
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)
[src]
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
)
[src]
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
)
[src]
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
)
[src]
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
)
[src]
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
)
[src]
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)
[src]
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
)
[src]
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)
[src]
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)
[src]
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
)
[src]
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)
[src]
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
)
[src]
pub fn add_text(
&mut self,
arg2: &UserFont,
arg3: Rect,
text: String,
font_height: f32,
arg4: Color
)
Trait Implementations
impl Clone for DrawList
[src]
impl Clone for DrawList
fn clone(&self) -> DrawList
[src]
fn clone(&self) -> DrawList
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for DrawList
[src]
impl Debug for DrawList
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl AsRef<nk_draw_list> for DrawList
[src]
impl AsRef<nk_draw_list> for DrawList
fn as_ref(&self) -> &nk_draw_list
[src]
fn as_ref(&self) -> &nk_draw_list
Performs the conversion.
impl AsMut<nk_draw_list> for DrawList
[src]
impl AsMut<nk_draw_list> for DrawList
fn as_mut(&mut self) -> &mut nk_draw_list
[src]
fn as_mut(&mut self) -> &mut nk_draw_list
Performs the conversion.
impl AsRef<DrawList> for nk_draw_list
[src]
impl AsRef<DrawList> for nk_draw_list
impl AsMut<DrawList> for nk_draw_list
[src]
impl AsMut<DrawList> for nk_draw_list
impl Default for DrawList
[src]
impl Default for DrawList