Lines Matching full:state

5 …ce. Upon assignment, the target part (*pseudo-element* in CSS) and target state (*pseudo class*) c…
6 For example one can add `style_blue` to the knob of a slider when it's in pressed state.
14 …classes describe different states, e.g. `:focus`), in LVGL a property is assigned to a given state.
15 - Transitions can be applied when the object changes state.
20 - `LV_STATE_DEFAULT` (0x0000) Normal, released state
21 - `LV_STATE_CHECKED` (0x0001) Toggled or checked state
28 - `LV_STATE_DISABLED` (0x0080) Disabled state
29 - `LV_STATE_USER_1` (0x1000) Custom state
30 - `LV_STATE_USER_2` (0x2000) Custom state
31 - `LV_STATE_USER_3` (0x4000) Custom state
32 - `LV_STATE_USER_4` (0x8000) Custom state
36 A style can be added to any state or state combination.
38 If a property is not defined in a state the best matching state's property will be used. Typically …
39 If the property is not set even for the default state the default value will be used. (See later)
41 But what does the "best matching state's property" really mean?
43 To determine which state's property to use let's take an example. Imagine the background color is d…
48 … the object is in the default state, so it's a simple case: the property is perfectly defined in t…
49 …are 2 related properties: default with white (default is related to every state) and pressed with …
50 The pressed state has 0x0020 precedence which is higher than the default state's 0x0000 precedence,…
51 …ame thing happens as in pressed state and red color will be used. (Focused state has higher preced…
52 4. When the object is focused and pressed both gray and red would work, but the pressed state has h…
54 In this case, this combined state has 0x0020 + 0x0002 = 0x0022 precedence, which is higher than the…
55state there is no property to set the background color for this state. So for lack of a better op…
58 …ed the user will still want to see if it's pressed, therefore the pressed state has a higher prece…
59 If the focused state had a higher precedence it would overwrite the pressed color.
60 …t set it for the default state. If the object can't find a property for its current state it will …
64 … background color for pressed and checked states and indicate the focused state with a different b…
75 …utton style defines dark-gray color for the default state and light-gray color for the pressed sta…
76 - the red button style defines the background color as red only in the default state
78 In this case, when the button is released (it's in default state) it will be red because a perfect …
79 …d the light-gray color is a better match because it describes the current state perfectly, so the …
83 …ce is applied only if the given property is not set in the object's styles (even in default state).
84 …object specifies a value for the property. The parents will use their own state to determine the v…
192 …le(obj, &style, <selector>)`. `<selector>` is an OR-ed value of parts and state to which the style…
194 - `LV_STATE_PRESSED`: The main part in pressed state. `LV_PART_MAIN` can be omitted
195 - `LV_PART_SCROLLBAR`: The scrollbar part in the default state. `LV_STATE_DEFAULT` can be omitted.
210 …or` can use the `LV_STATE_ANY` and `LV_PART_ANY` values to remove the style from any state or part.
223 These functions use the object's current state and if no better candidate exists they return a defa…
257state (e.g. it's pressed) the new properties from the new state are set immediately. However, with…
266 …ned for each state. For example, setting a 500 ms transition time in the default state means that …
267 …ing a 100 ms transition time in the pressed state causes a 100 ms transition when going to the pre…
268 This example configuration results in going to the pressed state quickly and then going back to def…