[][src]Trait amethyst_ui::Widget

pub trait Widget { }

A widget is an object that keeps track of all components and entities that make up an element of the user interface. Using the widget_components! macro, it's possible to generate methods that let you easily retrieve all components for a widget, and basically annotate which components the widget will definitely or maybe contain. Widgets are stored in their respective Widgets resource and referred to by their associated Id type. A widget will generally only contain fields for the entity Ids it consist of.

Implementors

impl Widget for UiButton[src]

impl Widget for UiLabel[src]

Loading content...