i80_controller sample
lv_buttonmatrix_t::ctrl_bits
is only used within i80_controller sample.
Symbol previews are coming soon...
Symbols
loading (2/4)...
Files
loading (2/4)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
i80_controller sample
lv_buttonmatrix_t::ctrl_bits
lv_buttonmatrix_t::ctrl_bits field
Array of control bytes
Syntax
Show:
Summary
Declaration
from
lv_buttonmatrix_private.h:35
lv_buttonmatrix_ctrl_t
*
ctrl_bits
;
Examples
References
from
examples
Code
Location
Referrer
lv_buttonmatrix_ctrl_t
*
ctrl_bits
;
/**< Array of control bytes */
lv_buttonmatrix_private.h:35
unit_cnt
+=
get_button_width
(
btnm
->
ctrl_bits
[
btn_tot_i
+
btn_cnt
]
)
;
lv_buttonmatrix.c:137
lv_buttonmatrix_set_map()
uint32_t
btn_u
=
get_button_width
(
btnm
->
ctrl_bits
[
btn_tot_i
]
)
;
lv_buttonmatrix.c:157
lv_buttonmatrix_set_map()
lv_memcpy
(
btnm
->
ctrl_bits
,
ctrl_map
,
sizeof
(
lv_buttonmatrix_ctrl_t
)
*
btnm
->
btn_cnt
)
;
lv_buttonmatrix.c:195
lv_buttonmatrix_set_ctrl_map()
btnm
->
ctrl_bits
[
btn_id
]
|=
ctrl
;
lv_buttonmatrix.c:225
lv_buttonmatrix_set_button_ctrl()
btnm
->
ctrl_bits
[
btn_id
]
&=
(
~
ctrl
)
;
lv_buttonmatrix.c:241
lv_buttonmatrix_clear_button_ctrl()
btnm
->
ctrl_bits
[
btn_id
]
&=
(
~
LV_BUTTONMATRIX_WIDTH_MASK
)
;
lv_buttonmatrix.c:277
lv_buttonmatrix_set_button_width()
btnm
->
ctrl_bits
[
btn_id
]
|=
(
LV_BUTTONMATRIX_WIDTH_MASK
&
width
)
;
lv_buttonmatrix.c:278
lv_buttonmatrix_set_button_width()
return
(
btnm
->
ctrl_bits
[
btn_id
]
&
ctrl
)
==
ctrl
;
lv_buttonmatrix.c:346
lv_buttonmatrix_has_button_ctrl()
btnm
->
ctrl_bits
=
NULL
;
lv_buttonmatrix.c:371
lv_buttonmatrix_constructor()
lv_free
(
btnm
->
ctrl_bits
)
;
lv_buttonmatrix.c:388
lv_buttonmatrix_destructor()
btnm
->
ctrl_bits
=
NULL
;
lv_buttonmatrix.c:390
lv_buttonmatrix_destructor()
if
(
button_is_inactive
(
btnm
->
ctrl_bits
[
btn_pr
]
)
==
false
&&
lv_buttonmatrix.c:435
lv_buttonmatrix_event()
button_is_hidden
(
btnm
->
ctrl_bits
[
btn_pr
]
)
==
false
)
{
lv_buttonmatrix.c:436
lv_buttonmatrix_event()
if
(
button_is_click_trig
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
==
false
&&
lv_buttonmatrix.c:447
lv_buttonmatrix_event()
button_is_popover
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
==
false
&&
lv_buttonmatrix.c:448
lv_buttonmatrix_event()
button_is_inactive
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
==
false
&&
lv_buttonmatrix.c:449
lv_buttonmatrix_event()
button_is_hidden
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
==
false
)
{
lv_buttonmatrix.c:450
lv_buttonmatrix_event()
if
(
button_is_checkable
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
&&
lv_buttonmatrix.c:472
lv_buttonmatrix_event()
!
button_is_inactive
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
)
{
lv_buttonmatrix.c:473
lv_buttonmatrix_event()
if
(
button_get_checked
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
&&
!
btnm
->
one_check
)
{
lv_buttonmatrix.c:474
lv_buttonmatrix_event()
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
&=
(
~
LV_BUTTONMATRIX_CTRL_CHECKED
)
;
lv_buttonmatrix.c:475
lv_buttonmatrix_event()
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
|=
LV_BUTTONMATRIX_CTRL_CHECKED
;
lv_buttonmatrix.c:478
lv_buttonmatrix_event()
if
(
(
button_is_click_trig
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
==
true
||
lv_buttonmatrix.c:483
lv_buttonmatrix_event()
button_is_popover
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
==
true
)
&&
lv_buttonmatrix.c:484
lv_buttonmatrix_event()
button_is_inactive
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
==
false
&&
lv_buttonmatrix.c:485
lv_buttonmatrix_event()
button_is_hidden
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
==
false
)
{
lv_buttonmatrix.c:486
lv_buttonmatrix_event()
if
(
button_is_repeat_disabled
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
==
false
&&
lv_buttonmatrix.c:499
lv_buttonmatrix_event()
button_is_inactive
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
==
false
&&
lv_buttonmatrix.c:500
lv_buttonmatrix_event()
button_is_hidden
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
==
false
)
{
lv_buttonmatrix.c:501
lv_buttonmatrix_event()
(
button_is_hidden
(
btnm
->
ctrl_bits
[
b
]
)
||
lv_buttonmatrix.c:531
lv_buttonmatrix_event()
button_is_inactive
(
btnm
->
ctrl_bits
[
b
]
)
||
lv_buttonmatrix.c:532
lv_buttonmatrix_event()
button_is_checked
(
btnm
->
ctrl_bits
[
b
]
)
==
false
)
)
{
lv_buttonmatrix.c:533
lv_buttonmatrix_event()
(
button_is_hidden
(
btnm
->
ctrl_bits
[
b
]
)
||
lv_buttonmatrix.c:539
lv_buttonmatrix_event()
button_is_inactive
(
btnm
->
ctrl_bits
[
b
]
)
)
)
{
lv_buttonmatrix.c:540
lv_buttonmatrix_event()
while
(
button_is_hidden
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
||
button_is_inactive
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
)
{
lv_buttonmatrix.c:568
lv_buttonmatrix_event()
while
(
button_is_hidden
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
||
button_is_inactive
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
)
{
lv_buttonmatrix.c:585
lv_buttonmatrix_event()
while
(
button_is_hidden
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
||
button_is_inactive
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
)
{
lv_buttonmatrix.c:600
lv_buttonmatrix_event()
button_is_inactive
(
btnm
->
ctrl_bits
[
area_below
]
)
==
false
&&
lv_buttonmatrix.c:617
lv_buttonmatrix_event()
button_is_hidden
(
btnm
->
ctrl_bits
[
area_below
]
)
==
false
)
{
lv_buttonmatrix.c:618
lv_buttonmatrix_event()
while
(
button_is_hidden
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
||
button_is_inactive
(
btnm
->
ctrl_bits
[
btnm
->
btn_id_sel
]
)
)
{
lv_buttonmatrix.c:631
lv_buttonmatrix_event()
button_is_inactive
(
btnm
->
ctrl_bits
[
area_above
]
)
==
false
&&
lv_buttonmatrix.c:648
lv_buttonmatrix_event()
button_is_hidden
(
btnm
->
ctrl_bits
[
area_above
]
)
==
false
)
{
lv_buttonmatrix.c:649
lv_buttonmatrix_event()
if
(
button_is_hidden
(
btnm
->
ctrl_bits
[
btn_i
]
)
)
continue
;
lv_buttonmatrix.c:714
draw_main()
if
(
button_get_checked
(
btnm
->
ctrl_bits
[
btn_i
]
)
)
btn_state
|=
LV_STATE_CHECKED
;
lv_buttonmatrix.c:718
draw_main()
if
(
button_is_inactive
(
btnm
->
ctrl_bits
[
btn_i
]
)
)
btn_state
|=
LV_STATE_DISABLED
;
lv_buttonmatrix.c:720
draw_main()
if
(
(
btn_state
&
LV_STATE_PRESSED
)
&&
(
btnm
->
ctrl_bits
[
btn_i
]
&
LV_BUTTONMATRIX_CTRL_POPOVER
)
)
{
lv_buttonmatrix.c:765
draw_main()
if
(
(
btn_state
&
LV_STATE_PRESSED
)
&&
(
btnm
->
ctrl_bits
[
btn_i
]
&
LV_BUTTONMATRIX_CTRL_POPOVER
)
)
{
lv_buttonmatrix.c:796
draw_main()
if
(
btnm
->
ctrl_bits
!=
NULL
)
{
lv_buttonmatrix.c:840
allocate_button_areas_and_controls()
lv_free
(
btnm
->
ctrl_bits
)
;
lv_buttonmatrix.c:841
allocate_button_areas_and_controls()
btnm
->
ctrl_bits
=
NULL
;
lv_buttonmatrix.c:842
allocate_button_areas_and_controls()
btnm
->
ctrl_bits
=
lv_malloc
(
sizeof
(
lv_buttonmatrix_ctrl_t
)
*
btn_cnt
)
;
lv_buttonmatrix.c:847
allocate_button_areas_and_controls()
LV_ASSERT_MALLOC
(
btnm
->
ctrl_bits
)
;
lv_buttonmatrix.c:848
allocate_button_areas_and_controls()
if
(
btnm
->
button_areas
==
NULL
||
btnm
->
ctrl_bits
==
NULL
)
btn_cnt
=
0
;
lv_buttonmatrix.c:849
allocate_button_areas_and_controls()
lv_memzero
(
btnm
->
ctrl_bits
,
sizeof
(
lv_buttonmatrix_ctrl_t
)
*
btn_cnt
)
;
lv_buttonmatrix.c:851
allocate_button_areas_and_controls()
if
(
(
btn_idx
==
btnm
->
btn_id_sel
)
&&
(
btnm
->
ctrl_bits
[
btn_idx
]
&
LV_BUTTONMATRIX_CTRL_POPOVER
)
)
{
lv_buttonmatrix.c:995
invalidate_button_area()
if
(
button_is_popover
(
btnm
->
ctrl_bits
[
btn_cnt
]
)
)
{
lv_buttonmatrix.c:1036
has_popovers_in_top_row()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
lv_buttonmatrix_t::ctrl_bits
is written by 3 functions and is read by 12 functions:
lv_buttonmatrix_constructor()
lv_buttonmatrix_destructor()
allocate_button_areas_and_controls()
All items filtered out
lv_buttonmatrix_t::ctrl_bits
lv_buttonmatrix_set_map()
lv_buttonmatrix_set_ctrl_map()
lv_buttonmatrix_set_button_ctrl()
lv_buttonmatrix_clear_button_ctrl()
lv_buttonmatrix_set_button_width()
lv_buttonmatrix_has_button_ctrl()
lv_buttonmatrix_destructor()
lv_buttonmatrix_event()
draw_main()
allocate_button_areas_and_controls()
invalidate_button_area()
has_popovers_in_top_row()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out