#[repr(C)]pub struct lv_obj_class_t {
pub base_class: *const lv_obj_class_t,
pub constructor_cb: Option<unsafe extern "C" fn(class_p: *const lv_obj_class_t, obj: *mut lv_obj_t)>,
pub destructor_cb: Option<unsafe extern "C" fn(class_p: *const lv_obj_class_t, obj: *mut lv_obj_t)>,
pub event_cb: Option<unsafe extern "C" fn(class_p: *const lv_obj_class_t, e: *mut lv_event_t)>,
pub user_data: *mut c_void,
pub name: *const c_char,
pub width_def: i32,
pub height_def: i32,
pub _bitfield_align_1: [u16; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3]>,
pub __bindgen_padding_0: [u8; 5],
}Expand description
Describe the common methods of every object. Similar to a C++ class.
Fields§
§base_class: *const lv_obj_class_t§constructor_cb: Option<unsafe extern "C" fn(class_p: *const lv_obj_class_t, obj: *mut lv_obj_t)>class_p is the final class while obj->class_p is the class currently being [de]constructed.
destructor_cb: Option<unsafe extern "C" fn(class_p: *const lv_obj_class_t, obj: *mut lv_obj_t)>§event_cb: Option<unsafe extern "C" fn(class_p: *const lv_obj_class_t, e: *mut lv_event_t)>< Widget type specific event function
user_data: *mut c_void§name: *const c_char§width_def: i32§height_def: i32§_bitfield_align_1: [u16; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 3]>§__bindgen_padding_0: [u8; 5]Implementations§
Source§impl lv_obj_class_t
impl lv_obj_class_t
pub fn editable(&self) -> u32
pub fn set_editable(&mut self, val: u32)
pub unsafe fn editable_raw(this: *const Self) -> u32
pub unsafe fn set_editable_raw(this: *mut Self, val: u32)
pub fn group_def(&self) -> u32
pub fn set_group_def(&mut self, val: u32)
pub unsafe fn group_def_raw(this: *const Self) -> u32
pub unsafe fn set_group_def_raw(this: *mut Self, val: u32)
pub fn instance_size(&self) -> u32
pub fn set_instance_size(&mut self, val: u32)
pub unsafe fn instance_size_raw(this: *const Self) -> u32
pub unsafe fn set_instance_size_raw(this: *mut Self, val: u32)
pub fn theme_inheritable(&self) -> u32
pub fn set_theme_inheritable(&mut self, val: u32)
pub unsafe fn theme_inheritable_raw(this: *const Self) -> u32
pub unsafe fn set_theme_inheritable_raw(this: *mut Self, val: u32)
pub fn new_bitfield_1( editable: u32, group_def: u32, instance_size: u32, theme_inheritable: u32, ) -> __BindgenBitfieldUnit<[u8; 3]>
Trait Implementations§
Source§impl Clone for lv_obj_class_t
impl Clone for lv_obj_class_t
Source§fn clone(&self) -> lv_obj_class_t
fn clone(&self) -> lv_obj_class_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_obj_class_t
impl Debug for lv_obj_class_t
impl Copy for lv_obj_class_t
Auto Trait Implementations§
impl Freeze for lv_obj_class_t
impl RefUnwindSafe for lv_obj_class_t
impl !Send for lv_obj_class_t
impl !Sync for lv_obj_class_t
impl Unpin for lv_obj_class_t
impl UnwindSafe for lv_obj_class_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