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
pub unsafe fn add_sub_clip_rect(
&self,
vbuffer: *mut Draw2dVbufferT,
parent: u32,
clip: RectT
) -> u32
pub unsafe fn add_font(
&self,
vbuffer: *mut Draw2dVbufferT,
font: *const FontT
) -> Draw2dFontT
pub unsafe fn fill_rect(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
r: RectT
)
pub unsafe fn fill_rect_feathered(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
r: RectT
)
pub unsafe fn stroke_rect(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
r: RectT
)
pub unsafe fn textured_rect(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
r: RectT,
texture: u32,
uv: RectT
)
pub unsafe fn aux_rect(
&self,
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 unsafe fn gradient_rect(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
r: RectT,
colors: *mut ColorSrgbT
)
pub unsafe fn fill_rounded_rect(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
r: RectT,
radius: f32
)
pub unsafe fn fill_rounded_rect_per_corner(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
r: RectT,
radiuses: Vec4T
)
pub unsafe fn stroke_rounded_rect(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
r: RectT,
radius: f32
)
pub unsafe fn stroke_rounded_rect_per_corner(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
r: RectT,
radiuses: Vec4T
)
pub unsafe fn fill_circle(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
pos: Vec2T,
radius: f32
)
pub unsafe fn stroke_circle(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
pos: Vec2T,
radius: f32
)
pub unsafe fn fill_triangles(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
points: *const Vec2T,
num_points: u32,
indices: *const u32,
num_indices: u32
)
pub unsafe fn fill_convex_polyline(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
points: *const Vec2T,
num_points: u32
)
pub unsafe fn stroke_polyline(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
points: *const Vec2T,
num_points: u32,
closed: bool
)
pub unsafe fn stroke_polyline_widths(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
points: *const Vec2T,
widths: *const f32,
num_points: u32,
closed: bool
)
pub unsafe fn bezier_path(
&self,
curve: *const Vec2T,
num_curve_points: u32,
tolerance: f32,
ta: *mut TempAllocatorI,
num_points: *mut u32,
allocated_points: *mut u32
) -> *mut Vec2T
pub unsafe fn fill_convex_bezier(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
curve: *const Vec2T,
num_curve_points: u32,
tolerance: f32,
ta: *mut TempAllocatorI
)
pub unsafe fn stroke_bezier(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
curve: *const Vec2T,
num_curve_points: u32,
closed: bool,
tolerance: f32,
ta: *mut TempAllocatorI
)
pub unsafe fn draw_glyphs(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
pos: Vec2T,
glyphs: *const u16,
num_glyphs: u32
) -> RectT
pub unsafe fn draw_glyphs_rotated(
&self,
vbuffer: *mut Draw2dVbufferT,
ibuffer: *mut Draw2dIbufferT,
style: *const Draw2dStyleT,
pos: Vec2T,
glyphs: *const u16,
num_glyphs: u32,
x: Vec2T,
y: Vec2T
) -> f32
pub unsafe fn merge_buffers(
&self,
to_vbuffer: *mut Draw2dVbufferT,
to_ibuffers: *mut *mut Draw2dIbufferT,
from_vbuffer: *const Draw2dVbufferT,
from_ibuffers: *const *mut Draw2dIbufferT,
num_ibuffers: u32
)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Draw2dApi
impl UnwindSafe for Draw2dApi
Blanket Implementations
Mutably borrows from an owned value. Read more