Lines Matching refs:value
16 - **subjects**: each containing a value
17 - **observers**: attached to subjects to be notified on value change
35 //Initialize the subject as integer with the default value of 10
47 //Will be called when the related subject's value changes
68 //Set the subject's value to 30. It will notify `some_observer_cb`
86 - **Integer** ``void lv_subject_init_int(lv_subject_t * subject, int32_t value)``
87 …init_string(lv_subject_t * subject, char * buf, char * prev_buf, size_t size, const char * value)``
88 - **Pointer** ``void lv_subject_init_pointer(lv_subject_t * subject, void * value)``
93 Set subject value
96 The following functions can be used to set a subject's value:
98 - **Integer** ``void lv_subject_set_int(lv_subject_t * subject, int32_t value)``
103 Get subject's value
106 The following functions can be used to get a subject's value:
115 Get subject's previous value
118 The following functions can be used to get a subject's previous value:
174 /* `observer` is the return value of `lv_subject_add_observer*` */
188 There are cases when a subject changes and the value of some other subjects are also required by th…
190 To display the measured value on a label 3 things are required:
193 2. What is the measured value?
217 lv_subject_t subject_value; //Measured value
239 int32_t value = lv_subject_get_int(subject_value);
242 lv_label_set_text_fmt(label, "%s: %d %s", mode ? "Current" : "Voltage", value, unit);
254 Set a Widget flag if an integer subject's value is equal to a reference value, clear the flag other…
260 Set a Widget flag if an integer subject's value is not equal to a reference value, clear the flag o…
266 Set a Widget state if an integer subject's value is equal to a reference value, clear the flag othe…
272 Set a Widget state if an integer subject's value is not equal to a reference value, clear the flag …
289 If the format string is ``NULL`` the value will be used directly. In this case on string and pointe…
299 Bind an integer subject to an arc's value.
308 Bind an integer subject to a slider's value
317 Bind an integer subject to a roller's value
326 Bind an integer subject to a drop-down's value