Struct nuklear_rust::NkDrawList
[−]
[src]
pub struct NkDrawList { /* fields omitted */ }
Methods
impl NkDrawList
[src]
fn init(&mut self)
fn setup(&mut self,
config: &NkConvertConfig,
cmds: &mut NkBuffer,
vertices: &mut NkBuffer,
elements: &mut NkBuffer)
config: &NkConvertConfig,
cmds: &mut NkBuffer,
vertices: &mut NkBuffer,
elements: &mut NkBuffer)
fn clear(&mut self)
fn begin(&self, buf: &NkBuffer) -> NkDrawCommand
fn next(&self, buf: &NkBuffer, prev: &NkDrawCommand) -> NkDrawCommand
fn path_clear(&mut self)
fn path_line_to(&mut self, pos: NkVec2)
fn path_arc_to_fast(&mut self,
center: NkVec2,
radius: f32,
a_min: i32,
a_max: i32)
center: NkVec2,
radius: f32,
a_min: i32,
a_max: i32)
fn path_arc_to(&mut self,
center: NkVec2,
radius: f32,
a_min: f32,
a_max: f32,
segments: u32)
center: NkVec2,
radius: f32,
a_min: f32,
a_max: f32,
segments: u32)
fn path_rect_to(&mut self, a: NkVec2, b: NkVec2, rounding: f32)
fn path_curve_to(&mut self,
p2: NkVec2,
p3: NkVec2,
p4: NkVec2,
num_segments: u32)
p2: NkVec2,
p3: NkVec2,
p4: NkVec2,
num_segments: u32)
fn path_fill(&mut self, col: NkColor)
fn path_stroke(&mut self,
arg2: NkColor,
closed: NkDrawListStroke,
thickness: f32)
arg2: NkColor,
closed: NkDrawListStroke,
thickness: f32)
fn stroke_line(&mut self, a: NkVec2, b: NkVec2, arg2: NkColor, thickness: f32)
fn stroke_rect(&mut self,
rect: NkRect,
arg2: NkColor,
rounding: f32,
thickness: f32)
rect: NkRect,
arg2: NkColor,
rounding: f32,
thickness: f32)
fn stroke_triangle(&mut self,
a: NkVec2,
b: NkVec2,
c: NkVec2,
arg2: NkColor,
thickness: f32)
a: NkVec2,
b: NkVec2,
c: NkVec2,
arg2: NkColor,
thickness: f32)
fn stroke_circle(&mut self,
center: NkVec2,
radius: f32,
arg2: NkColor,
segs: u32,
thickness: f32)
center: NkVec2,
radius: f32,
arg2: NkColor,
segs: u32,
thickness: f32)
fn stroke_curve(&mut self,
p0: NkVec2,
cp0: NkVec2,
cp1: NkVec2,
p1: NkVec2,
arg2: NkColor,
segments: u32,
thickness: f32)
p0: NkVec2,
cp0: NkVec2,
cp1: NkVec2,
p1: NkVec2,
arg2: NkColor,
segments: u32,
thickness: f32)
fn stroke_poly_line(&mut self,
points: &[NkVec2],
arg2: NkColor,
arg3: NkDrawListStroke,
thickness: f32,
aa: NkAntiAliasing)
points: &[NkVec2],
arg2: NkColor,
arg3: NkDrawListStroke,
thickness: f32,
aa: NkAntiAliasing)
fn fill_rect(&mut self, rect: NkRect, arg2: NkColor, rounding: f32)
fn fill_rect_multi_color(&mut self,
rect: NkRect,
left: NkColor,
top: NkColor,
right: NkColor,
bottom: NkColor)
rect: NkRect,
left: NkColor,
top: NkColor,
right: NkColor,
bottom: NkColor)
fn fill_triangle(&mut self, a: NkVec2, b: NkVec2, c: NkVec2, arg2: NkColor)
fn fill_circle(&mut self, center: NkVec2, radius: f32, col: NkColor, segs: u32)
fn fill_poly_convex(&mut self,
points: &[NkVec2],
arg2: NkColor,
arg3: NkAntiAliasing)
points: &[NkVec2],
arg2: NkColor,
arg3: NkAntiAliasing)
fn add_image(&mut self, texture: NkImage, rect: NkRect, arg2: NkColor)
fn add_text(&mut self,
arg2: &NkUserFont,
arg3: NkRect,
text: NkString,
font_height: f32,
arg4: NkColor)
arg2: &NkUserFont,
arg3: NkRect,
text: NkString,
font_height: f32,
arg4: NkColor)
Trait Implementations
impl Debug for NkDrawList
[src]
impl Clone for NkDrawList
[src]
fn clone(&self) -> NkDrawList
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for NkDrawList
[src]
fn eq(&self, __arg_0: &NkDrawList) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NkDrawList) -> bool
This method tests for !=
.