Skip to content

Allow Adapt message handlers to access inner? #626

@Kwarrtz

Description

@Kwarrtz

Is there a reason that the handler of Adapt::on_messages is not given access to the inner widget like for other widget types (even including other adapters like Map)?

My specific use case is that I'm trying to create a Sprite which tracks its own ImageHandle in an Adapt and can re-allocate in response to a message, which requires the handler to have access to both the underlying Sprite (to call set) and the state of the Adapt, but this seems like a problematic limitation any time you're working with a widget that can be dynamically modified.

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