/lvgl-latest/src/core/ |
D | lv_obj_style_gen.c | 13 void lv_obj_set_style_width(lv_obj_t * obj, int32_t value, lv_style_selector_t selector) in lv_obj_set_style_width() argument 18 lv_obj_set_local_style_prop(obj, LV_STYLE_WIDTH, v, selector); in lv_obj_set_style_width() 21 void lv_obj_set_style_min_width(lv_obj_t * obj, int32_t value, lv_style_selector_t selector) in lv_obj_set_style_min_width() argument 26 lv_obj_set_local_style_prop(obj, LV_STYLE_MIN_WIDTH, v, selector); in lv_obj_set_style_min_width() 29 void lv_obj_set_style_max_width(lv_obj_t * obj, int32_t value, lv_style_selector_t selector) in lv_obj_set_style_max_width() argument 34 lv_obj_set_local_style_prop(obj, LV_STYLE_MAX_WIDTH, v, selector); in lv_obj_set_style_max_width() 37 void lv_obj_set_style_height(lv_obj_t * obj, int32_t value, lv_style_selector_t selector) in lv_obj_set_style_height() argument 42 lv_obj_set_local_style_prop(obj, LV_STYLE_HEIGHT, v, selector); in lv_obj_set_style_height() 45 void lv_obj_set_style_min_height(lv_obj_t * obj, int32_t value, lv_style_selector_t selector) in lv_obj_set_style_min_height() argument 50 lv_obj_set_local_style_prop(obj, LV_STYLE_MIN_HEIGHT, v, selector); in lv_obj_set_style_min_height() [all …]
|
D | lv_obj_style.h | 54 void lv_obj_add_style(lv_obj_t * obj, const lv_style_t * style, lv_style_selector_t selector); 71 lv_style_selector_t selector); 88 void lv_obj_remove_style(lv_obj_t * obj, const lv_style_t * style, lv_style_selector_t selector); 139 bool lv_obj_has_style_prop(const lv_obj_t * obj, lv_style_selector_t selector, lv_style_prop_t prop… 149 lv_style_selector_t selector); 152 lv_style_selector_t selector); 161 …lv_obj_remove_local_style_prop(lv_obj_t * obj, lv_style_prop_t prop, lv_style_selector_t selector); 184 static inline lv_state_t lv_obj_style_get_selector_state(lv_style_selector_t selector) in lv_obj_style_get_selector_state() argument 186 return selector & 0xFFFF; in lv_obj_style_get_selector_state() 189 static inline lv_part_t lv_obj_style_get_selector_part(lv_style_selector_t selector) in lv_obj_style_get_selector_part() argument [all …]
|
D | lv_obj_style_gen.h | 766 void lv_obj_set_style_width(lv_obj_t * obj, int32_t value, lv_style_selector_t selector); 767 void lv_obj_set_style_min_width(lv_obj_t * obj, int32_t value, lv_style_selector_t selector); 768 void lv_obj_set_style_max_width(lv_obj_t * obj, int32_t value, lv_style_selector_t selector); 769 void lv_obj_set_style_height(lv_obj_t * obj, int32_t value, lv_style_selector_t selector); 770 void lv_obj_set_style_min_height(lv_obj_t * obj, int32_t value, lv_style_selector_t selector); 771 void lv_obj_set_style_max_height(lv_obj_t * obj, int32_t value, lv_style_selector_t selector); 772 void lv_obj_set_style_length(lv_obj_t * obj, int32_t value, lv_style_selector_t selector); 773 void lv_obj_set_style_x(lv_obj_t * obj, int32_t value, lv_style_selector_t selector); 774 void lv_obj_set_style_y(lv_obj_t * obj, int32_t value, lv_style_selector_t selector); 775 void lv_obj_set_style_align(lv_obj_t * obj, lv_align_t value, lv_style_selector_t selector); [all …]
|
D | lv_obj_style.c | 34 lv_style_selector_t selector; member 54 static lv_style_t * get_local_style(lv_obj_t * obj, lv_style_selector_t selector); 56 static lv_style_res_t get_prop_core(const lv_obj_t * obj, lv_style_selector_t selector, lv_style_pr… 69 static lv_style_res_t get_selector_style_prop(const lv_obj_t * obj, lv_style_selector_t selector, l… 98 void lv_obj_add_style(lv_obj_t * obj, const lv_style_t * style, lv_style_selector_t selector) in lv_obj_add_style() argument 102 trans_delete(obj, selector, LV_STYLE_PROP_ANY, NULL); in lv_obj_add_style() 104 lv_part_t part = lv_obj_style_get_selector_part(selector); in lv_obj_add_style() 111 lv_obj_remove_style(obj, style, selector); in lv_obj_add_style() 136 obj->styles[i].selector = selector; in lv_obj_add_style() 154 lv_obj_refresh_style(obj, selector, LV_STYLE_PROP_ANY); in lv_obj_add_style() [all …]
|
D | lv_obj_style_private.h | 29 uint32_t selector : 24; member 37 lv_style_selector_t selector; member
|
D | lv_obj_property.c | 120 lv_obj_set_local_style_prop(obj, index, value->style, value->selector); in lv_obj_set_property() 155 value.selector = 0; in lv_obj_get_property() 166 lv_property_t lv_obj_get_style_property(lv_obj_t * obj, lv_prop_id_t id, uint32_t selector) in lv_obj_get_style_property() argument 178 lv_obj_get_local_style_prop(obj, id, &value.style, selector); in lv_obj_get_style_property() 180 value.selector = selector; in lv_obj_get_style_property()
|
D | lv_obj_property.h | 121 uint32_t selector; /**< Style selector, lv_part_t | lv_state_t */ member 193 lv_property_t lv_obj_get_style_property(lv_obj_t * obj, lv_prop_id_t id, uint32_t selector);
|
D | lv_obj.c | 924 lv_state_t state_act = lv_obj_style_get_selector_state(obj->styles[i].selector); in update_obj_state() 925 lv_part_t part_act = lv_obj_style_get_selector_part(obj->styles[i].selector); in update_obj_state() 938 lv_style_selector_t selector = ts[t].selector; in update_obj_state() local 939 lv_state_t state_ts = lv_obj_style_get_selector_state(selector); in update_obj_state() 940 lv_part_t part_ts = lv_obj_style_get_selector_part(selector); in update_obj_state() 951 ts[tsi].selector = obj_style->selector; in update_obj_state() 958 lv_part_t part_act = lv_obj_style_get_selector_part(ts[i].selector); in update_obj_state()
|
/lvgl-latest/src/libs/thorvg/ |
D | tvgLottieParser.cpp | 1141 auto selector = new LottieTextRange; in parseTextRange() local 1147 if (KEY_AS("t")) selector->expressible = (bool) getInt(); in parseTextRange() 1148 … else if (KEY_AS("xe")) parseProperty<LottieProperty::Type::Float>(selector->maxEase); in parseTextRange() 1149 … else if (KEY_AS("ne")) parseProperty<LottieProperty::Type::Float>(selector->minEase); in parseTextRange() 1150 … else if (KEY_AS("a")) parseProperty<LottieProperty::Type::Float>(selector->maxAmount); in parseTextRange() 1151 else if (KEY_AS("b")) selector->based = (LottieTextRange::Based) getInt(); in parseTextRange() 1152 else if (KEY_AS("rn")) selector->random = getInt() ? rand() : 0; in parseTextRange() 1153 else if (KEY_AS("sh")) selector->shape = (LottieTextRange::Shape) getInt(); in parseTextRange() 1154 … else if (KEY_AS("o")) parseProperty<LottieProperty::Type::Float>(selector->offset); in parseTextRange() 1155 else if (KEY_AS("r")) selector->rangeUnit = (LottieTextRange::Unit) getInt(); in parseTextRange() [all …]
|
/lvgl-latest/src/others/xml/ |
D | lv_xml_style.c | 237 const char * lv_xml_style_string_process(char * txt, lv_style_selector_t * selector) in lv_xml_style_string_process() argument 239 *selector = 0; in lv_xml_style_string_process() 245 *selector |= lv_xml_style_state_to_enum(selector_str); in lv_xml_style_string_process() 246 *selector |= lv_xml_style_part_to_enum(selector_str); in lv_xml_style_string_process() 264 lv_style_selector_t selector = 0; in lv_xml_style_add_to_obj() local 265 const char * style_name = lv_xml_style_string_process(onestyle_str, &selector); in lv_xml_style_add_to_obj() 283 lv_obj_add_style(obj, &xml_style->style, selector); in lv_xml_style_add_to_obj()
|
D | lv_xml_style.h | 71 const char * lv_xml_style_string_process(char * txt, lv_style_selector_t * selector);
|
/lvgl-latest/tests/src/test_cases/widgets/ |
D | test_obj_property.c | 112 lv_style_selector_t selector = LV_PART_MAIN | LV_STATE_PRESSED; in test_obj_property_style_selector() local 115 prop.selector = selector; in test_obj_property_style_selector() 117 TEST_ASSERT_EQUAL_UINT32(0x1122, lv_obj_get_style_x(obj, selector)); in test_obj_property_style_selector() 118 …TEST_ASSERT_EQUAL_UINT32(0x1122, lv_obj_get_style_property(obj, LV_PROPERTY_STYLE_X, selector).num… in test_obj_property_style_selector()
|
/lvgl-latest/env_support/pikascript/ |
D | pika_lvgl_lv_obj.c | 96 void pika_lvgl_lv_obj_add_style(PikaObj *self, PikaObj* style, int selector){ in pika_lvgl_lv_obj_add_style() argument 99 lv_obj_add_style(lv_obj, lv_style, selector); in pika_lvgl_lv_obj_add_style()
|
D | pika_lv_wegit.c | 307 int selector) { in pika_lvgl_label_set_style_text_align() argument 309 lv_obj_set_style_text_align(lv_obj, value, selector); in pika_lvgl_label_set_style_text_align()
|
D | pika_lvgl.pyi | 151 def add_style(self, style: style_t, selector: int): ... 241 def set_style_text_align(self, value: int, selector: int): ...
|
/lvgl-latest/src/others/xml/parsers/ |
D | lv_xml_obj_parser.c | 39 …(prop, value) if(lv_streq(prop_name, "style_" #prop)) lv_obj_set_style_##prop(obj, value, selector) 125 lv_style_selector_t selector; in apply_styles() local 126 const char * prop_name = lv_xml_style_string_process(name_local, &selector); in apply_styles()
|
/lvgl-latest/docs/details/base-widget/styles/ |
D | style.rst | 280 ``lv_obj_add_style(widget, &style, <selector>)``. ``<selector>`` is an 301 :cpp:expr:`lv_obj_replace_style(widget, old_style, new_style, selector)`. This 303 ``selector`` matches the ``selector`` used in ``lv_obj_add_style``. Both 306 ``old_style`` and ``selector`` exists multiple times in ``obj``\ 's 324 :cpp:expr:`lv_obj_remove_style(widget, style, selector)`. This function will remove 325 ``style`` only if the ``selector`` matches with the ``selector`` used in 327 ``selector`` and remove all matching styles. The ``selector`` can use 385 ``lv_obj_set_style_<property_name>(widget, <value>, <selector>);`` For example:
|
/lvgl-latest/docs/details/other-components/ |
D | obj_property.rst | 193 * .selector = LV_STATE_PRESSED, 200 * .selector = LV_STATE_PRESSED, 204 uint32_t selector; /**< Style selector, lv_part_t | lv_state_t */
|
/lvgl-latest/docs/details/widgets/ |
D | dropdown.rst | 59 lv_obj_add_style(list, &my_style, selector) /* Add styles to list */
|
/lvgl-latest/docs/details/main-components/ |
D | animation.rst | 35 …al style properties <style_local>`) directly on objects (needs a wrapper to set set the *selector*)
|
D | font.rst | 200 …et a Widget's base direction use :cpp:expr:`lv_obj_set_style_base_dir(widget, base_dir, selector)`.
|
/lvgl-latest/docs/ |
D | CHANGELOG.rst | 91 - **feat(property): add style selector support for property API** `6275 <https://github.com/lvgl/lv…
|