#[repr(C)]pub struct _lv_font_t {
pub get_glyph_dsc: Option<unsafe extern "C" fn(*const _lv_font_t, *mut lv_font_glyph_dsc_t, u32, u32) -> bool>,
pub get_glyph_bitmap: Option<unsafe extern "C" fn(*mut lv_font_glyph_dsc_t, *mut _lv_draw_buf_t) -> *const c_void>,
pub release_glyph: Option<unsafe extern "C" fn(*const _lv_font_t, *mut lv_font_glyph_dsc_t)>,
pub line_height: i32,
pub base_line: i32,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub underline_position: i8,
pub underline_thickness: i8,
pub dsc: *const c_void,
pub fallback: *const _lv_font_t,
pub user_data: *mut c_void,
}
Fields§
§get_glyph_dsc: Option<unsafe extern "C" fn(*const _lv_font_t, *mut lv_font_glyph_dsc_t, u32, u32) -> bool>
§get_glyph_bitmap: Option<unsafe extern "C" fn(*mut lv_font_glyph_dsc_t, *mut _lv_draw_buf_t) -> *const c_void>
§release_glyph: Option<unsafe extern "C" fn(*const _lv_font_t, *mut lv_font_glyph_dsc_t)>
§line_height: i32
§base_line: i32
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>
§underline_position: i8
§underline_thickness: i8
§dsc: *const c_void
§fallback: *const _lv_font_t
§user_data: *mut c_void
Implementations§
Source§impl _lv_font_t
impl _lv_font_t
pub fn subpx(&self) -> u8
pub fn set_subpx(&mut self, val: u8)
pub fn kerning(&self) -> u8
pub fn set_kerning(&mut self, val: u8)
pub fn static_bitmap(&self) -> u8
pub fn set_static_bitmap(&mut self, val: u8)
pub fn new_bitfield_1( subpx: u8, kerning: u8, static_bitmap: u8, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for _lv_font_t
impl Clone for _lv_font_t
Source§fn clone(&self) -> _lv_font_t
fn clone(&self) -> _lv_font_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for _lv_font_t
impl Debug for _lv_font_t
Source§impl Default for _lv_font_t
impl Default for _lv_font_t
Source§fn default() -> _lv_font_t
fn default() -> _lv_font_t
Returns the “default value” for a type. Read more
impl Copy for _lv_font_t
Auto Trait Implementations§
impl Freeze for _lv_font_t
impl RefUnwindSafe for _lv_font_t
impl !Send for _lv_font_t
impl !Sync for _lv_font_t
impl Unpin for _lv_font_t
impl UnwindSafe for _lv_font_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more