Skip to content

Why doesn't Menu implement Widget? #342

@joculatrix

Description

@joculatrix

I'd love to be able to use a Menu in my code without being inside of a MenuBar, e.g. for use as a ContextMenu. However, since Menu doesn't implement the Widget trait on its own, it's impossible to use this way. I noticed in the source code that all of the methods for Widget do appear to be written in an impl block for Menu, but the size() function is commented out. Is there a reason for this? Is there a way to fix it?

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