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<'_, '_>) -> WidgetNodetype_name: Stringkey: Option<String>idref: Option<WidgetRef>props: Propslisted_slots: Vec<WidgetNode, Global>named_slots: HashMap<String, WidgetNode, RandomState>Implementations
pub fn new(
processor: fn(WidgetContext<'_, '_>) -> WidgetNode,
type_name: &str
) -> WidgetComponentTrait Implementations
Performs the conversion.
pub fn try_from(
node: WidgetNode
) -> Result<WidgetComponent, <WidgetComponent as TryFrom<WidgetNode>>::Error>
pub fn try_from(
node: WidgetNode
) -> Result<WidgetComponent, <WidgetComponent as TryFrom<WidgetNode>>::Error>Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for WidgetComponentimpl Send for WidgetComponentimpl Sync for WidgetComponentimpl Unpin for WidgetComponentimpl !UnwindSafe for WidgetComponentBlanket Implementations
Mutably borrows from an owned value. Read more