[][src]Struct nuki::CommandBuffer

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

Methods

impl CommandBuffer[src]

pub fn stroke_line(
    &mut self,
    x0: f32,
    y0: f32,
    x1: f32,
    y1: f32,
    line_thickness: f32,
    color: Color
)
[src]

pub fn stroke_curve(
    &mut self,
    x0: f32,
    y0: f32,
    x1: f32,
    y1: f32,
    x2: f32,
    y2: f32,
    x3: f32,
    y3: f32,
    line_thickness: f32,
    color: Color
)
[src]

pub fn stroke_rect(
    &mut self,
    bounds: Rect,
    rounding: f32,
    line_thickness: f32,
    color: Color
)
[src]

pub fn stroke_circle(&mut self, arg2: Rect, line_thickness: f32, color: Color)[src]

pub fn stroke_arc(
    &mut self,
    cx: f32,
    cy: f32,
    radius: f32,
    a_min: f32,
    a_max: f32,
    line_thickness: f32,
    color: Color
)
[src]

pub fn stroke_triangle(
    &mut self,
    x0: f32,
    y0: f32,
    x1: f32,
    y1: f32,
    x2: f32,
    y2: f32,
    line_thichness: f32,
    color: Color
)
[src]

pub fn stroke_polyline(
    &mut self,
    points: &mut [f32],
    line_thickness: f32,
    color: Color
)
[src]

pub fn stroke_polygon(
    &mut self,
    points: &mut [f32],
    line_thickness: f32,
    color: Color
)
[src]

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

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

pub fn fill_circle(&mut self, arg2: Rect, color: Color)[src]

pub fn fill_arc(
    &mut self,
    cx: f32,
    cy: f32,
    radius: f32,
    a_min: f32,
    a_max: f32,
    color: Color
)
[src]

pub fn fill_triangle(
    &mut self,
    x0: f32,
    y0: f32,
    x1: f32,
    y1: f32,
    x2: f32,
    y2: f32,
    color: Color
)
[src]

pub fn fill_polygon(&mut self, points: &mut [f32], color: Color)[src]

pub fn push_scissor(&mut self, arg2: Rect)[src]

pub fn draw_image(&mut self, arg2: Rect, arg3: &Image, arg4: Color)[src]

pub fn draw_text(
    &mut self,
    arg2: Rect,
    text: &str,
    arg3: &UserFont,
    arg4: Color,
    arg5: Color
)
[src]

Trait Implementations

impl AsMut<CommandBuffer> for nk_command_buffer[src]

impl AsMut<nk_command_buffer> for CommandBuffer[src]

impl AsRef<CommandBuffer> for nk_command_buffer[src]

impl AsRef<nk_command_buffer> for CommandBuffer[src]

impl Clone for CommandBuffer[src]

impl Default for CommandBuffer[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.