lv_obj_class_t

Struct lv_obj_class_t 

Source
#[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

Source

pub fn editable(&self) -> u32

Source

pub fn set_editable(&mut self, val: u32)

Source

pub unsafe fn editable_raw(this: *const Self) -> u32

Source

pub unsafe fn set_editable_raw(this: *mut Self, val: u32)

Source

pub fn group_def(&self) -> u32

Source

pub fn set_group_def(&mut self, val: u32)

Source

pub unsafe fn group_def_raw(this: *const Self) -> u32

Source

pub unsafe fn set_group_def_raw(this: *mut Self, val: u32)

Source

pub fn instance_size(&self) -> u32

Source

pub fn set_instance_size(&mut self, val: u32)

Source

pub unsafe fn instance_size_raw(this: *const Self) -> u32

Source

pub unsafe fn set_instance_size_raw(this: *mut Self, val: u32)

Source

pub fn theme_inheritable(&self) -> u32

Source

pub fn set_theme_inheritable(&mut self, val: u32)

Source

pub unsafe fn theme_inheritable_raw(this: *const Self) -> u32

Source

pub unsafe fn set_theme_inheritable_raw(this: *mut Self, val: u32)

Source

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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for lv_obj_class_t

Source§

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

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

impl Copy for lv_obj_class_t

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, 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.