1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

docs: update LV_OBJ_FLAG_OVERFLOW_VISIBLE usage (#7101)

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
Ryan Stachura 2024-11-27 05:14:42 -05:00 committed by GitHub
parent 9c7003d9e1
commit ecfed6bc07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -191,7 +191,18 @@ outside will not be visible.
This behavior can be overwritten with
:cpp:expr:`lv_obj_add_flag(widget, LV_OBJ_FLAG_OVERFLOW_VISIBLE)` which allow the
children to be drawn out of the parent.
children to be drawn out of the parent. In addition to this, you must register
the following event callback (this was not required in previous versions).
Note: ``ext_width`` should be the maximum absolute width the children will be
drawn within.
.. code-block:: c
static void ext_draw_size_event_cb(lv_event_t * e)
{
lv_event_set_ext_draw_size(e, 30); /*Set 30px extra draw area around the widget*/
}
Create and delete Widgets
-------------------------