Struct oxygengine_user_interface::widget::component::WidgetComponent [−][src]
pub struct WidgetComponent { pub processor: fn(WidgetContext<'_, '_>) -> WidgetNode, pub type_name: String, pub key: Option<String>, pub idref: Option<WidgetRef>, pub props: Props, pub shared_props: Option<Props>, pub listed_slots: Vec<WidgetNode, Global>, pub named_slots: HashMap<String, WidgetNode, RandomState>, }
Fields
processor: fn(WidgetContext<'_, '_>) -> WidgetNode
type_name: String
key: Option<String>
idref: Option<WidgetRef>
props: Props
listed_slots: Vec<WidgetNode, Global>
named_slots: HashMap<String, WidgetNode, RandomState>
Implementations
pub fn new(
processor: fn(WidgetContext<'_, '_>) -> WidgetNode,
type_name: &str
) -> WidgetComponent
[src]Trait Implementations
Performs the conversion.
pub fn try_from(
node: WidgetNode
) -> Result<WidgetComponent, <WidgetComponent as TryFrom<WidgetNode>>::Error>
[src]
pub fn try_from(
node: WidgetNode
) -> Result<WidgetComponent, <WidgetComponent as TryFrom<WidgetNode>>::Error>
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for WidgetComponent
impl Send for WidgetComponent
impl Sync for WidgetComponent
impl Unpin for WidgetComponent
impl !UnwindSafe for WidgetComponent
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
Mutably borrows from an owned value. Read more