Trait pixel_game_lib::gui::WidgetRef

source ·
pub trait WidgetRef: Into<NodeId> + From<NodeId> + Copy {
    type Widget: Widget;
}
Expand description

Reference to a widget after it has been constructed.

Can be passed to Gui::widget and Gui::widget_mut to get the original widget back in update and render functions.

Required Associated Types§

source

type Widget: Widget

The original widget that can be returned from this ref.

Object Safety§

This trait is not object safe.

Implementors§