Skip to content

Add method to get the ImageHandle of a Sprite #629

@Kwarrtz

Description

@Kwarrtz

Currently, any widget built on top of a Sprite that wants to update the image buffer without allocating a new one or get the size of the image through the DrawShared API has to maintain its own separate copy of the active ImageHandle, which seems unnecessary and potentially error-prone. Adding a method to Sprite that returns the Option<&ImageHandle> would simplify this.

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