[−][src]Trait amethyst_ui::ToNativeWidget
Create native UiWidget
from custom UI
Associated Types
type PrefabData: for<'a> PrefabData<'a> + Default + Send + Sync + 'static
Additional data used when loading UI prefab
Required methods
fn to_native_widget(
self,
parent_data: Self::PrefabData
) -> (UiWidget<Self, W>, Self::PrefabData)
self,
parent_data: Self::PrefabData
) -> (UiWidget<Self, W>, Self::PrefabData)
Create native UiWidget
and custom prefab data from custom UI
Returning UiWidget::Custom
will cause recursion.
Please make sure that the recursion is finite.
Implementors
impl<W> ToNativeWidget<W> for NoCustomUi where
W: WidgetId,
[src]
W: WidgetId,
type PrefabData = ()
fn to_native_widget(
self,
_: Self::PrefabData
) -> (UiWidget<NoCustomUi, W>, Self::PrefabData)
[src]
self,
_: Self::PrefabData
) -> (UiWidget<NoCustomUi, W>, Self::PrefabData)