mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-10 21:28:59 +08:00
feat(fragment): deprecate lv_fragment (#9460)
This commit is contained in:
@@ -4,6 +4,10 @@
|
||||
Fragment
|
||||
========
|
||||
|
||||
.. warning::
|
||||
|
||||
This module is now deprecated and will be removed in an upcoming release.
|
||||
|
||||
Fragment is a concept copied from
|
||||
`Android <https://developer.android.com/guide/fragments>`__.
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ static void cb_delete_assertion(lv_event_t * event);
|
||||
|
||||
lv_fragment_t * lv_fragment_create(const lv_fragment_class_t * cls, void * args)
|
||||
{
|
||||
LV_LOG_WARN("lv_fragment is deprecated and will be removed in an upcoming release.");
|
||||
LV_ASSERT_NULL(cls);
|
||||
LV_ASSERT_NULL(cls->create_obj_cb);
|
||||
LV_ASSERT(cls->instance_size >= sizeof(lv_fragment_t));
|
||||
|
||||
Reference in New Issue
Block a user