Skip to main content

lh_container_vtable

Struct lh_container_vtable 

Source
#[repr(C)]
pub struct lh_container_vtable {
Show 29 fields pub create_font: Option<unsafe extern "C" fn(user_data: *mut c_void, descr: *const lh_font_description_t, fm: *mut lh_font_metrics_t) -> usize>, pub delete_font: Option<unsafe extern "C" fn(user_data: *mut c_void, hFont: usize)>, pub text_width: Option<unsafe extern "C" fn(user_data: *mut c_void, text: *const c_char, hFont: usize) -> f32>, pub draw_text: Option<unsafe extern "C" fn(user_data: *mut c_void, hdc: usize, text: *const c_char, hFont: usize, color: lh_web_color_t, pos: lh_position_t)>, pub pt_to_px: Option<unsafe extern "C" fn(user_data: *mut c_void, pt: f32) -> f32>, pub get_default_font_size: Option<unsafe extern "C" fn(user_data: *mut c_void) -> f32>, pub get_default_font_name: Option<unsafe extern "C" fn(user_data: *mut c_void) -> *const c_char>, pub draw_list_marker: Option<unsafe extern "C" fn(user_data: *mut c_void, hdc: usize, marker: *const lh_list_marker_t)>, pub load_image: Option<unsafe extern "C" fn(user_data: *mut c_void, src: *const c_char, baseurl: *const c_char, redraw_on_ready: c_int)>, pub get_image_size: Option<unsafe extern "C" fn(user_data: *mut c_void, src: *const c_char, baseurl: *const c_char, sz: *mut lh_size_t)>, pub draw_image: Option<unsafe extern "C" fn(user_data: *mut c_void, hdc: usize, layer: *const lh_background_layer_t, url: *const c_char, base_url: *const c_char)>, pub draw_solid_fill: Option<unsafe extern "C" fn(user_data: *mut c_void, hdc: usize, layer: *const lh_background_layer_t, color: lh_web_color_t)>, pub draw_linear_gradient: Option<unsafe extern "C" fn(user_data: *mut c_void, hdc: usize, layer: *const lh_background_layer_t, gradient: *const lh_linear_gradient_t)>, pub draw_radial_gradient: Option<unsafe extern "C" fn(user_data: *mut c_void, hdc: usize, layer: *const lh_background_layer_t, gradient: *const lh_radial_gradient_t)>, pub draw_conic_gradient: Option<unsafe extern "C" fn(user_data: *mut c_void, hdc: usize, layer: *const lh_background_layer_t, gradient: *const lh_conic_gradient_t)>, pub draw_borders: Option<unsafe extern "C" fn(user_data: *mut c_void, hdc: usize, borders: lh_borders_t, draw_pos: lh_position_t, root: c_int)>, pub set_caption: Option<unsafe extern "C" fn(user_data: *mut c_void, caption: *const c_char)>, pub set_base_url: Option<unsafe extern "C" fn(user_data: *mut c_void, base_url: *const c_char)>, pub link: Option<unsafe extern "C" fn(user_data: *mut c_void)>, pub on_anchor_click: Option<unsafe extern "C" fn(user_data: *mut c_void, url: *const c_char)>, pub on_mouse_event: Option<unsafe extern "C" fn(user_data: *mut c_void, event: c_int)>, pub set_cursor: Option<unsafe extern "C" fn(user_data: *mut c_void, cursor: *const c_char)>, pub transform_text: Option<unsafe extern "C" fn(user_data: *mut c_void, text: *const c_char, tt: c_int, set_result: lh_set_string_fn, ctx: *mut c_void)>, pub import_css: Option<unsafe extern "C" fn(user_data: *mut c_void, url: *const c_char, baseurl: *const c_char, set_result: lh_set_string_fn, ctx: *mut c_void)>, pub set_clip: Option<unsafe extern "C" fn(user_data: *mut c_void, pos: lh_position_t, bdr_radius: lh_border_radiuses_t)>, pub del_clip: Option<unsafe extern "C" fn(user_data: *mut c_void)>, pub get_viewport: Option<unsafe extern "C" fn(user_data: *mut c_void, viewport: *mut lh_position_t)>, pub get_media_features: Option<unsafe extern "C" fn(user_data: *mut c_void, media: *mut lh_media_features_t)>, pub get_language: Option<unsafe extern "C" fn(user_data: *mut c_void, set_result: lh_set_language_fn, ctx: *mut c_void)>,
}

Fields§

§create_font: Option<unsafe extern "C" fn(user_data: *mut c_void, descr: *const lh_font_description_t, fm: *mut lh_font_metrics_t) -> usize>§delete_font: Option<unsafe extern "C" fn(user_data: *mut c_void, hFont: usize)>§text_width: Option<unsafe extern "C" fn(user_data: *mut c_void, text: *const c_char, hFont: usize) -> f32>§draw_text: Option<unsafe extern "C" fn(user_data: *mut c_void, hdc: usize, text: *const c_char, hFont: usize, color: lh_web_color_t, pos: lh_position_t)>§pt_to_px: Option<unsafe extern "C" fn(user_data: *mut c_void, pt: f32) -> f32>§get_default_font_size: Option<unsafe extern "C" fn(user_data: *mut c_void) -> f32>§get_default_font_name: Option<unsafe extern "C" fn(user_data: *mut c_void) -> *const c_char>§draw_list_marker: Option<unsafe extern "C" fn(user_data: *mut c_void, hdc: usize, marker: *const lh_list_marker_t)>§load_image: Option<unsafe extern "C" fn(user_data: *mut c_void, src: *const c_char, baseurl: *const c_char, redraw_on_ready: c_int)>§get_image_size: Option<unsafe extern "C" fn(user_data: *mut c_void, src: *const c_char, baseurl: *const c_char, sz: *mut lh_size_t)>§draw_image: Option<unsafe extern "C" fn(user_data: *mut c_void, hdc: usize, layer: *const lh_background_layer_t, url: *const c_char, base_url: *const c_char)>§draw_solid_fill: Option<unsafe extern "C" fn(user_data: *mut c_void, hdc: usize, layer: *const lh_background_layer_t, color: lh_web_color_t)>§draw_linear_gradient: Option<unsafe extern "C" fn(user_data: *mut c_void, hdc: usize, layer: *const lh_background_layer_t, gradient: *const lh_linear_gradient_t)>§draw_radial_gradient: Option<unsafe extern "C" fn(user_data: *mut c_void, hdc: usize, layer: *const lh_background_layer_t, gradient: *const lh_radial_gradient_t)>§draw_conic_gradient: Option<unsafe extern "C" fn(user_data: *mut c_void, hdc: usize, layer: *const lh_background_layer_t, gradient: *const lh_conic_gradient_t)>§draw_borders: Option<unsafe extern "C" fn(user_data: *mut c_void, hdc: usize, borders: lh_borders_t, draw_pos: lh_position_t, root: c_int)>§set_caption: Option<unsafe extern "C" fn(user_data: *mut c_void, caption: *const c_char)>§set_base_url: Option<unsafe extern "C" fn(user_data: *mut c_void, base_url: *const c_char)>§link: Option<unsafe extern "C" fn(user_data: *mut c_void)>§on_anchor_click: Option<unsafe extern "C" fn(user_data: *mut c_void, url: *const c_char)>§on_mouse_event: Option<unsafe extern "C" fn(user_data: *mut c_void, event: c_int)>§set_cursor: Option<unsafe extern "C" fn(user_data: *mut c_void, cursor: *const c_char)>§transform_text: Option<unsafe extern "C" fn(user_data: *mut c_void, text: *const c_char, tt: c_int, set_result: lh_set_string_fn, ctx: *mut c_void)>§import_css: Option<unsafe extern "C" fn(user_data: *mut c_void, url: *const c_char, baseurl: *const c_char, set_result: lh_set_string_fn, ctx: *mut c_void)>§set_clip: Option<unsafe extern "C" fn(user_data: *mut c_void, pos: lh_position_t, bdr_radius: lh_border_radiuses_t)>§del_clip: Option<unsafe extern "C" fn(user_data: *mut c_void)>§get_viewport: Option<unsafe extern "C" fn(user_data: *mut c_void, viewport: *mut lh_position_t)>§get_media_features: Option<unsafe extern "C" fn(user_data: *mut c_void, media: *mut lh_media_features_t)>§get_language: Option<unsafe extern "C" fn(user_data: *mut c_void, set_result: lh_set_language_fn, ctx: *mut c_void)>

Trait Implementations§

Source§

impl Clone for lh_container_vtable

Source§

fn clone(&self) -> lh_container_vtable

Returns a duplicate 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 Debug for lh_container_vtable

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for lh_container_vtable

Source§

fn default() -> lh_container_vtable

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

impl Copy for lh_container_vtable

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.