[−][src]Struct tm_sys::ffi::tm_draw2d_api
Fields
add_clip_rect: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, clip: tm_rect_t) -> u32>add_sub_clip_rect: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, parent: u32, clip: tm_rect_t) -> u32>clip_rect: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, clip: u32) -> tm_rect_t>add_font: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, font: *const tm_font_t) -> u32>fill_rect: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, r: tm_rect_t)>fill_rect_feathered: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, r: tm_rect_t)>stroke_rect: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, r: tm_rect_t)>textured_rect: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, r: tm_rect_t, texture: u32, uv: tm_rect_t)>aux_rect: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, r: tm_rect_t, aux_data_type: u32, aux_data: *const c_void, aux_data_size: u32)>gradient_rect: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, r: tm_rect_t, colors: *mut tm_color_srgb_t)>fill_rounded_rect: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, r: tm_rect_t, radius: f32)>stroke_rounded_rect: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, r: tm_rect_t, radius: f32)>fill_circle: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, pos: tm_vec2_t, radius: f32)>stroke_circle: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, pos: tm_vec2_t, radius: f32)>fill_triangles: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, points: *const tm_vec2_t, num_points: u32, indices: *const u32, num_indices: u32)>fill_convex_polyline: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, points: *const tm_vec2_t, num_points: u32)>stroke_polyline: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, points: *const tm_vec2_t, num_points: u32, closed: bool)>stroke_polyline_widths: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, points: *const tm_vec2_t, widths: *const f32, num_points: u32, closed: bool)>bezier_path: Option<unsafe extern "C" fn(curve: *const tm_vec2_t, num_curve_points: u32, tolerance: f32, ta: *mut tm_temp_allocator_i, num_points: *mut u32, allocated_points: *mut u32) -> *mut tm_vec2_t>fill_convex_bezier: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, curve: *const tm_vec2_t, num_curve_points: u32, tolerance: f32, ta: *mut tm_temp_allocator_i)>stroke_bezier: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, curve: *const tm_vec2_t, num_curve_points: u32, closed: bool, tolerance: f32, ta: *mut tm_temp_allocator_i)>draw_glyphs: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, pos: tm_vec2_t, glyphs: *const u16, num_glyphs: u32) -> f32>draw_glyphs_rotated: Option<unsafe extern "C" fn(vbuffer: *mut tm_draw2d_vbuffer_t, ibuffer: *mut tm_draw2d_ibuffer_t, style: *const tm_draw2d_style_t, pos: tm_vec2_t, glyphs: *const u16, num_glyphs: u32, x: tm_vec2_t, y: tm_vec2_t) -> f32>merge_buffers: Option<unsafe extern "C" fn(to_vbuffer: *mut tm_draw2d_vbuffer_t, to_ibuffers: *mut *mut tm_draw2d_ibuffer_t, from_vbuffer: *const tm_draw2d_vbuffer_t, from_ibuffers: *const *mut tm_draw2d_ibuffer_t, num_ibuffers: u32)>Trait Implementations
impl Clone for tm_draw2d_api[src]
pub fn clone(&self) -> tm_draw2d_api[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for tm_draw2d_api[src]
impl Debug for tm_draw2d_api[src]
Auto Trait Implementations
impl RefUnwindSafe for tm_draw2d_api
impl Send for tm_draw2d_api
impl Sync for tm_draw2d_api
impl Unpin for tm_draw2d_api
impl UnwindSafe for tm_draw2d_api
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> 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.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,