Type Alias lh_container_vtable_t
Source pub type lh_container_vtable_t = lh_container_vtable;
#[repr(C)]
pub struct lh_container_vtable_t {Show 29 fields
pub create_font: Option<unsafe extern "C" fn(*mut c_void, *const lh_font_description, *mut lh_font_metrics) -> usize>,
pub delete_font: Option<unsafe extern "C" fn(*mut c_void, usize)>,
pub text_width: Option<unsafe extern "C" fn(*mut c_void, *const i8, usize) -> f32>,
pub draw_text: Option<unsafe extern "C" fn(*mut c_void, usize, *const i8, usize, lh_web_color, lh_position)>,
pub pt_to_px: Option<unsafe extern "C" fn(*mut c_void, f32) -> f32>,
pub get_default_font_size: Option<unsafe extern "C" fn(*mut c_void) -> f32>,
pub get_default_font_name: Option<unsafe extern "C" fn(*mut c_void) -> *const i8>,
pub draw_list_marker: Option<unsafe extern "C" fn(*mut c_void, usize, *const lh_list_marker)>,
pub load_image: Option<unsafe extern "C" fn(*mut c_void, *const i8, *const i8, i32)>,
pub get_image_size: Option<unsafe extern "C" fn(*mut c_void, *const i8, *const i8, *mut lh_size)>,
pub draw_image: Option<unsafe extern "C" fn(*mut c_void, usize, *const lh_background_layer, *const i8, *const i8)>,
pub draw_solid_fill: Option<unsafe extern "C" fn(*mut c_void, usize, *const lh_background_layer, lh_web_color)>,
pub draw_linear_gradient: Option<unsafe extern "C" fn(*mut c_void, usize, *const lh_background_layer, *const lh_linear_gradient)>,
pub draw_radial_gradient: Option<unsafe extern "C" fn(*mut c_void, usize, *const lh_background_layer, *const lh_radial_gradient)>,
pub draw_conic_gradient: Option<unsafe extern "C" fn(*mut c_void, usize, *const lh_background_layer, *const lh_conic_gradient)>,
pub draw_borders: Option<unsafe extern "C" fn(*mut c_void, usize, lh_borders, lh_position, i32)>,
pub set_caption: Option<unsafe extern "C" fn(*mut c_void, *const i8)>,
pub set_base_url: Option<unsafe extern "C" fn(*mut c_void, *const i8)>,
pub link: Option<unsafe extern "C" fn(*mut c_void)>,
pub on_anchor_click: Option<unsafe extern "C" fn(*mut c_void, *const i8)>,
pub on_mouse_event: Option<unsafe extern "C" fn(*mut c_void, i32)>,
pub set_cursor: Option<unsafe extern "C" fn(*mut c_void, *const i8)>,
pub transform_text: Option<unsafe extern "C" fn(*mut c_void, *const i8, i32, Option<unsafe extern "C" fn(*mut c_void, *const i8)>, *mut c_void)>,
pub import_css: Option<unsafe extern "C" fn(*mut c_void, *const i8, *const i8, Option<unsafe extern "C" fn(*mut c_void, *const i8)>, *mut c_void, Option<unsafe extern "C" fn(*mut c_void, *const i8)>, *mut c_void)>,
pub set_clip: Option<unsafe extern "C" fn(*mut c_void, lh_position, lh_border_radiuses)>,
pub del_clip: Option<unsafe extern "C" fn(*mut c_void)>,
pub get_viewport: Option<unsafe extern "C" fn(*mut c_void, *mut lh_position)>,
pub get_media_features: Option<unsafe extern "C" fn(*mut c_void, *mut lh_media_features)>,
pub get_language: Option<unsafe extern "C" fn(*mut c_void, Option<unsafe extern "C" fn(*mut c_void, *const i8, *const i8)>, *mut c_void)>,
}