pub struct Label { /* private fields */ }Expand description
LVGL label widget.
Implementations§
Trait Implementations§
impl Copy for Label
impl Send for Label
impl Sync for Label
Auto Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EventTarget for Twhere
T: Widget,
impl<T> EventTarget for Twhere
T: Widget,
Source§fn on(
self,
code: lv_event_code_t,
cb: lv_event_cb_t,
user_data: *mut c_void,
) -> Self
fn on( self, code: lv_event_code_t, cb: lv_event_cb_t, user_data: *mut c_void, ) -> Self
Register a callback for an arbitrary LVGL event code. Read more
Source§fn on_click(self, cb: lv_event_cb_t, user_data: *mut c_void) -> Self
fn on_click(self, cb: lv_event_cb_t, user_data: *mut c_void) -> Self
Register a callback for click (
LV_EVENT_CLICKED) events.Source§fn on_value_changed(self, cb: lv_event_cb_t, user_data: *mut c_void) -> Self
fn on_value_changed(self, cb: lv_event_cb_t, user_data: *mut c_void) -> Self
Register a callback for value-changed (
LV_EVENT_VALUE_CHANGED) events.Source§impl<T> Layout for Twhere
T: Widget,
impl<T> Layout for Twhere
T: Widget,
Source§fn pos(self, x: i32, y: i32) -> Self
fn pos(self, x: i32, y: i32) -> Self
Set the position of the widget relative to its parent’s top-left corner.
Source§fn align(self, a: u8, x_ofs: i32, y_ofs: i32) -> Self
fn align(self, a: u8, x_ofs: i32, y_ofs: i32) -> Self
Align the widget using an LVGL alignment constant and pixel offsets. Read more
Source§fn add_flag(self, f: u32) -> Self
fn add_flag(self, f: u32) -> Self
Add one or more LVGL object flags (bitwise OR of
LV_OBJ_FLAG_* values).Source§fn remove_flag(self, f: u32) -> Self
fn remove_flag(self, f: u32) -> Self
Remove one or more LVGL object flags.
Source§fn add_state(self, s: u32) -> Self
fn add_state(self, s: u32) -> Self
Add one or more LVGL object state bits (e.g.
LV_STATE_CHECKED).Source§fn remove_state(self, s: u32) -> Self
fn remove_state(self, s: u32) -> Self
Remove one or more LVGL object state bits.
Source§impl<T> Styleable for Twhere
T: Widget,
impl<T> Styleable for Twhere
T: Widget,
Source§fn bg_opa(self, opa: u8) -> Self
fn bg_opa(self, opa: u8) -> Self
Set the background opacity of the widget’s main part (0 = transparent, 255 = opaque).
Source§fn border_color(self, c: Color) -> Self
fn border_color(self, c: Color) -> Self
Set the border color of the widget’s main part.
Source§fn border_width(self, w: i32) -> Self
fn border_width(self, w: i32) -> Self
Set the border width in pixels.
Source§fn radius(self, r: i32) -> Self
fn radius(self, r: i32) -> Self
Set the corner radius in pixels (use
LV_RADIUS_CIRCLE for a pill shape).Source§fn text_color(self, c: Color) -> Self
fn text_color(self, c: Color) -> Self
Set the text color for label-like widgets.
Source§fn text_font(self, f: *const lv_font_t) -> Self
fn text_font(self, f: *const lv_font_t) -> Self
Set the text font. Use
font_montserrat_32 or font_montserrat_14 for built-ins.