mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-25 18:29:26 +08:00
feat(image): add data binding to image src
This commit is contained in:
@@ -200,13 +200,13 @@ Data binding
|
||||
To get familiar with observers, subjects, and data bindings in general visit the
|
||||
:ref:`Observer <observer_how_to_use>` page.
|
||||
|
||||
This method of subscribing to a pointer Subject affects an Image Widget's source (``src``)
|
||||
This method of subscribing to a pointer Subject affects a Image Widget's source (``src``)
|
||||
value directly. Note that this is a one-way binding (Subject ==> Widget) so when
|
||||
the subject changes the Image will be update too.
|
||||
the subject changes, the Image will be updated too.
|
||||
|
||||
It support only pointer subjects.
|
||||
It supports only pointer subjects.
|
||||
|
||||
- :cpp:expr:`lv_image_bind_src(slider, &subject)`
|
||||
- :cpp:expr:`lv_image_bind_src(img, &subject)`
|
||||
|
||||
.. _lv_image_events:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user