Skip to content

Remote deletion of lv_obj_t #5

@X-Ryl669

Description

@X-Ryl669

If you start using a lv_obj_t inside another lv_obj_t, then you have an issue.
If you delete the parent, the child lv_obj_t * instance will be deleted by LVGL, but the C++ wrapper object will not.

In order to have a link between both, you need to register a LV_EVENT_DELETE on every lv_obj_t * you are wrapping so you can be informed when a children is deleted too and delete the wrapper.

However, this comes with a large penalty, each object now cost a wrapper + an event handler object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions