#[repr(C)]pub struct CommandBuffer { /* private fields */ }
Implementations§
Source§impl CommandBuffer
impl CommandBuffer
pub fn stroke_line( &mut self, x0: f32, y0: f32, x1: f32, y1: f32, line_thickness: f32, color: Color, )
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, )
pub fn stroke_rect( &mut self, bounds: Rect, rounding: f32, line_thickness: f32, color: Color, )
pub fn stroke_circle(&mut self, arg2: Rect, line_thickness: f32, color: Color)
pub fn stroke_arc( &mut self, cx: f32, cy: f32, radius: f32, a_min: f32, a_max: f32, line_thickness: f32, color: Color, )
pub fn stroke_triangle( &mut self, x0: f32, y0: f32, x1: f32, y1: f32, x2: f32, y2: f32, line_thichness: f32, color: Color, )
pub fn stroke_polyline( &mut self, points: &mut [f32], line_thickness: f32, color: Color, )
pub fn stroke_polygon( &mut self, points: &mut [f32], line_thickness: f32, color: Color, )
pub fn fill_rect(&mut self, arg2: Rect, rounding: f32, color: Color)
pub fn fill_rect_multi_color( &mut self, arg2: Rect, left: Color, top: Color, right: Color, bottom: Color, )
pub fn fill_circle(&mut self, arg2: Rect, color: Color)
pub fn fill_arc( &mut self, cx: f32, cy: f32, radius: f32, a_min: f32, a_max: f32, color: Color, )
pub fn fill_triangle( &mut self, x0: f32, y0: f32, x1: f32, y1: f32, x2: f32, y2: f32, color: Color, )
pub fn fill_polygon(&mut self, points: &mut [f32], color: Color)
pub fn push_scissor(&mut self, arg2: Rect)
pub fn draw_image(&mut self, arg2: Rect, arg3: &Image, arg4: Color)
pub fn draw_text( &mut self, arg2: Rect, text: &str, arg3: &UserFont, arg4: Color, arg5: Color, )
Trait Implementations§
Source§impl AsMut<CommandBuffer> for nk_command_buffer
impl AsMut<CommandBuffer> for nk_command_buffer
Source§fn as_mut(&mut self) -> &mut CommandBuffer
fn as_mut(&mut self) -> &mut CommandBuffer
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsMut<nk_command_buffer> for CommandBuffer
impl AsMut<nk_command_buffer> for CommandBuffer
Source§fn as_mut(&mut self) -> &mut nk_command_buffer
fn as_mut(&mut self) -> &mut nk_command_buffer
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<CommandBuffer> for nk_command_buffer
impl AsRef<CommandBuffer> for nk_command_buffer
Source§fn as_ref(&self) -> &CommandBuffer
fn as_ref(&self) -> &CommandBuffer
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<nk_command_buffer> for CommandBuffer
impl AsRef<nk_command_buffer> for CommandBuffer
Source§fn as_ref(&self) -> &nk_command_buffer
fn as_ref(&self) -> &nk_command_buffer
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for CommandBuffer
impl Clone for CommandBuffer
Source§fn clone(&self) -> CommandBuffer
fn clone(&self) -> CommandBuffer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CommandBuffer
impl RefUnwindSafe for CommandBuffer
impl !Send for CommandBuffer
impl !Sync for CommandBuffer
impl Unpin for CommandBuffer
impl UnwindSafe for CommandBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more