Skip to content
Snippets Groups Projects
context.rs 37 KiB
Newer Older
StarToaster's avatar
StarToaster committed

    // dbg!("Dispatching layout events!");
    // dbg!("Finished dispatching layout events!");
}

/// A simple component that stores the type name of a widget
/// This is used by Kayak in order to find out which systems to run.
#[derive(Component, Debug, Clone, PartialEq, Eq)]
StarToaster's avatar
StarToaster committed
pub struct WidgetName(pub String);

impl From<String> for WidgetName {
    fn from(value: String) -> Self {
        WidgetName(value)
    }
}

impl Into<String> for WidgetName {
    fn into(self) -> String {