[][src]Trait amethyst_ui::ToNativeWidget

pub trait ToNativeWidget<W = u32> where
    W: WidgetId,
    Self: Sized + 'static, 
{ type PrefabData: for<'a> PrefabData<'a> + Default + Send + Sync + 'static; fn to_native_widget(
        self,
        parent_data: Self::PrefabData
    ) -> (UiWidget<Self, W>, Self::PrefabData); }

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

Loading content...

Required methods

fn to_native_widget(
    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.

Loading content...

Implementors

impl<W> ToNativeWidget<W> for NoCustomUi where
    W: WidgetId
[src]

type PrefabData = ()

Loading content...