[−][src]Struct nuklear::DrawList
Methods
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]
&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
[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]
&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]
&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_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]
&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_rect(
&mut self,
rect: Rect,
arg2: Color,
rounding: f32,
thickness: f32
)
[src]
&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]
&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]
&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]
&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]
&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_multi_color(
&mut self,
rect: Rect,
left: Color,
top: Color,
right: Color,
bottom: Color
)
[src]
&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_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]
&mut self,
points: &[Vec2],
arg2: Color,
arg3: AntiAliasing
)
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]
&mut self,
arg2: &UserFont,
arg3: Rect,
text: String,
font_height: f32,
arg4: Color
)
Trait Implementations
impl Default for DrawList
[src]
impl AsMut<nk_draw_list> for DrawList
[src]
fn as_mut(&mut self) -> &mut nk_draw_list
[src]
impl AsMut<DrawList> for nk_draw_list
[src]
impl AsRef<nk_draw_list> for DrawList
[src]
fn as_ref(&self) -> &nk_draw_list
[src]
impl AsRef<DrawList> for nk_draw_list
[src]
impl Clone for DrawList
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,