Struct machinery_api::plugins::ui::Draw2dApi[][src]

#[repr(C)]
pub struct Draw2dApi {
Show 27 fields pub add_clip_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, clip: RectT) -> u32>, pub add_sub_clip_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, parent: u32, clip: RectT) -> u32>, pub clip_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, clip: u32) -> RectT>, pub font_memory: Option<unsafe extern "C" fn(font: *const FontT) -> u32>, pub add_font: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, font: *const FontT) -> Draw2dFontT>, pub fill_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT)>, pub fill_rect_feathered: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT)>, pub stroke_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT)>, pub textured_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT, texture: u32, uv: RectT)>, pub aux_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT, aux_data_type: u32, aux_data: *const c_void, aux_data_size: u32)>, pub gradient_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT, colors: *mut ColorSrgbT)>, pub fill_rounded_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT, radius: f32)>, pub fill_rounded_rect_per_corner: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT, radiuses: Vec4T)>, pub stroke_rounded_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT, radius: f32)>, pub stroke_rounded_rect_per_corner: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT, radiuses: Vec4T)>, pub fill_circle: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, pos: Vec2T, radius: f32)>, pub stroke_circle: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, pos: Vec2T, radius: f32)>, pub fill_triangles: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, points: *const Vec2T, num_points: u32, indices: *const u32, num_indices: u32)>, pub fill_convex_polyline: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, points: *const Vec2T, num_points: u32)>, pub stroke_polyline: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, points: *const Vec2T, num_points: u32, closed: bool)>, pub stroke_polyline_widths: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, points: *const Vec2T, widths: *const f32, num_points: u32, closed: bool)>, pub bezier_path: Option<unsafe extern "C" fn(curve: *const Vec2T, num_curve_points: u32, tolerance: f32, ta: *mut TempAllocatorI, num_points: *mut u32, allocated_points: *mut u32) -> *mut Vec2T>, pub fill_convex_bezier: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, curve: *const Vec2T, num_curve_points: u32, tolerance: f32, ta: *mut TempAllocatorI)>, pub stroke_bezier: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, curve: *const Vec2T, num_curve_points: u32, closed: bool, tolerance: f32, ta: *mut TempAllocatorI)>, pub draw_glyphs: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, pos: Vec2T, glyphs: *const u16, num_glyphs: u32) -> RectT>, pub draw_glyphs_rotated: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, pos: Vec2T, glyphs: *const u16, num_glyphs: u32, x: Vec2T, y: Vec2T) -> f32>, pub merge_buffers: Option<unsafe extern "C" fn(to_vbuffer: *mut Draw2dVbufferT, to_ibuffers: *mut *mut Draw2dIbufferT, from_vbuffer: *const Draw2dVbufferT, from_ibuffers: *const *mut Draw2dIbufferT, num_ibuffers: u32)>,
}

Fields

add_clip_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, clip: RectT) -> u32>add_sub_clip_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, parent: u32, clip: RectT) -> u32>clip_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, clip: u32) -> RectT>font_memory: Option<unsafe extern "C" fn(font: *const FontT) -> u32>add_font: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, font: *const FontT) -> Draw2dFontT>fill_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT)>fill_rect_feathered: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT)>stroke_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT)>textured_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT, texture: u32, uv: RectT)>aux_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT, aux_data_type: u32, aux_data: *const c_void, aux_data_size: u32)>gradient_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT, colors: *mut ColorSrgbT)>fill_rounded_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT, radius: f32)>fill_rounded_rect_per_corner: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT, radiuses: Vec4T)>stroke_rounded_rect: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT, radius: f32)>stroke_rounded_rect_per_corner: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, r: RectT, radiuses: Vec4T)>fill_circle: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, pos: Vec2T, radius: f32)>stroke_circle: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, pos: Vec2T, radius: f32)>fill_triangles: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, points: *const Vec2T, num_points: u32, indices: *const u32, num_indices: u32)>fill_convex_polyline: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, points: *const Vec2T, num_points: u32)>stroke_polyline: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, points: *const Vec2T, num_points: u32, closed: bool)>stroke_polyline_widths: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, points: *const Vec2T, widths: *const f32, num_points: u32, closed: bool)>bezier_path: Option<unsafe extern "C" fn(curve: *const Vec2T, num_curve_points: u32, tolerance: f32, ta: *mut TempAllocatorI, num_points: *mut u32, allocated_points: *mut u32) -> *mut Vec2T>fill_convex_bezier: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, curve: *const Vec2T, num_curve_points: u32, tolerance: f32, ta: *mut TempAllocatorI)>stroke_bezier: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, curve: *const Vec2T, num_curve_points: u32, closed: bool, tolerance: f32, ta: *mut TempAllocatorI)>draw_glyphs: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, pos: Vec2T, glyphs: *const u16, num_glyphs: u32) -> RectT>draw_glyphs_rotated: Option<unsafe extern "C" fn(vbuffer: *mut Draw2dVbufferT, ibuffer: *mut Draw2dIbufferT, style: *const Draw2dStyleT, pos: Vec2T, glyphs: *const u16, num_glyphs: u32, x: Vec2T, y: Vec2T) -> f32>merge_buffers: Option<unsafe extern "C" fn(to_vbuffer: *mut Draw2dVbufferT, to_ibuffers: *mut *mut Draw2dIbufferT, from_vbuffer: *const Draw2dVbufferT, from_ibuffers: *const *mut Draw2dIbufferT, num_ibuffers: u32)>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.