Skip to main content

lv_obj_set_style_max_width

Function lv_obj_set_style_max_width 

Source
pub unsafe extern "C" fn lv_obj_set_style_max_width(
    obj: *mut lv_obj_t,
    value: i32,
    selector: lv_style_selector_t,
)
Expand description

Sets a maximal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent’s content area. Default: LV_COORD_MAX, inherited: No, layout: Yes, ext. draw: No. @param obj Pointer to Widget @param value Value to submit @param selector A joint type for lv_part_t and lv_state_t. Example values: - 0: means LV_PART_MAIN | LV_STATE_DEFAULT - LV_STATE_PRESSED - LV_PART_KNOB - LV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED