#[repr(transparent)]pub struct Part(pub u32);Expand description
Sub-region or visual component of a widget used as a style selector key.
Part is a transparent newtype over u32. Named constants mirror LVGL’s
lv_part_t vocabulary. Custom part ids are allocated in the id >= 8
range via Part::custom.
Registration policy: Specification Required. Adding a named constant requires a phase-doc amendment that updates the §6.1 table and cites the owning widget phase.
Tuple Fields§
§0: u32Implementations§
Source§impl Part
impl Part
Sourcepub const INDICATOR: Self
pub const INDICATOR: Self
The filled portion of a slider or progress bar (LV_PART_INDICATOR = 2).
Sourcepub const SELECTED: Self
pub const SELECTED: Self
The currently selected item in a list or similar widget (LV_PART_SELECTED = 4).
Sourcepub const fn custom(id: u32) -> Self
pub const fn custom(id: u32) -> Self
Construct a custom part id.
By convention id >= 8 to avoid collisions with the named constants
above (mirroring LV_PART_CUSTOM_FIRST). Widget phases use this to
reserve widget-local part ids without a Specification Required amendment.
§Example
use rlvgl_core::style_cascade::Part;
const MY_PART: Part = Part::custom(8);