Skip to content

Implement Deref<Target = Context> for Ui #4033

@obellish

Description

@obellish

Is your feature request related to a problem? Please describe.
There are plenty of places where I would like to use a Context but have to get a reference to it from the Ui, when it's perfectly feasible to allow Ui to deref into a Context.

Describe the solution you'd like
Implement Deref for Ui to point to the painter context that the ctx() method points to.

Describe alternatives you've considered
Implementing an external trait to forward all method calls on Ui to Context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions