Struct CommandBuffer

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

Implementations§

Source§

impl CommandBuffer

Source

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

Source

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, )

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn clone(&self) -> CommandBuffer

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for CommandBuffer

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.