Lines Matching refs:be

12 - Styles can be assigned to Widgets to change their appearance. Upon
14 (pseudo-class_ in CSS) can be specified. For example one can add
16 - The same style can be used by any number of Widgets.
17 - Styles can be cascaded which means multiple styles may be assigned to a Widget and
19 have to be specified in a style. LVGL will search for a property until a
25 is specified in two styles the newest style in the Widget will be used.
26 - Some properties (e.g. text color) can be inherited from a parent(s) if it's not specified in a Wi…
30 - Transitions can be applied when the Widget changes state.
39 The Widgets can be in the combination of the following states:
55 A Widget can be in a combination of states such as being focused and
58 A style can be added to any state or state combination. For example,
61 property will be used. Typically this means the property with
63 default state the default value will be used. (See later)
82 default state's 0x0000 precedence, so gray color will be used.
84 and red color will be used. (Focused state has higher precedence than
88 color will be used.
91 the pressed state's precedence so rose color would be used.
108 - It might be a good idea to use different
132 gray/red button example above, the normal button style should be added
141 will be red because a perfect match is found in the most recently added
144 will be light-gray.
153 Some properties (typically those related to text) can be inherited from
156 this case, if the property is inheritable, the property's value will be
160 pressed text color will be used.
169 Widgets can be composed of *parts* which may each have their own styles.
180 - :cpp:enumerator:`LV_PART_CUSTOM_FIRST`: Custom part identifiers can be added starting from here.
198 Styles are stored in :cpp:type:`lv_style_t` variables. Style variables should be
200 be local variables in functions which are destroyed when the function
201 exits. Before using a style it should be initialized with
203 be added or changed.
251 Styles can be built as ``const`` as well to save RAM:
263 Later ``const`` style can be used like any other style but (obviously)
264 new properties cannot be added.
281 OR-ed value of parts and state to which the style should be added. Some
285 …r:`LV_STATE_PRESSED`: The main part in pressed state. :cpp:enumerator:`LV_PART_MAIN` can be omitted
286 …LLBAR`: The scrollbar part in the default state. :cpp:enumerator:`LV_STATE_DEFAULT` can be omitted.
304 ``old_style`` and ``new_style`` must not be ``NULL``. Separate functions exist for
307 styles, all occurrences will be replaced. The return value of the
326 :cpp:func:`lv_obj_add_style`. ``style`` can be ``NULL`` to check only the
335 property is added or changed), the Widgets using that style should be
338 1. If you know that the changed properties can be applied by a simple redraw
346 is ``NULL`` all Widgets will be notified about a style change.
357 property "get" functions like this can be used: ``lv_obj_get_style_<property_name>(widget, <part>)`…
376 Local styles are like normal styles, but they can't be shared among
381 Unlike in CSS, LVGL local styles can be assigned to states
430 example, on pressing a button its background color can be animated to
441 The transition properties can be defined for each state. For example,
449 To describe a transition an :cpp:struct:`lv_transition_dsc_t` variable needs to be
483 can build the layer from smaller chunks. The size of these chunks can be
487 …LLBACK_BUF_SIZE`: [bytes] used if :cpp:enumerator:`LV_LAYER_SIMPLE_BUF_SIZE` couldn't be allocated.
489 If transformation properties were also used the layer cannot be
490 rendered in chunks, but one larger memory block needs to be allocated. The
497 case ARGB rendering needs to be used, a widget might not cover its area
520 to the UI which can then be modified by adding further styles.
553 Built-in themes can be extended. If a custom theme is created, a parent
554 theme can be selected. The parent theme's styles will be added before
555 the custom theme's styles. Any number of themes can be chained this way.