Struct sixtyfps_interpreter::ComponentDefinition [−][src]
pub struct ComponentDefinition { /* fields omitted */ }
Expand description
ComponentDefinition is a representation of a compiled component from .60 markup.
It can be constructed from a .60 file using the ComponentCompiler::build_from_path
or ComponentCompiler::build_from_source
functions.
And then it can be instantiated with the Self::create
function.
The ComponentDefinition acts as a factory to create new instances. When you’ve finished creating the instances it is safe to drop the ComponentDefinition.
Implementations
Creates a new instance of the component and returns a shared handle to it.
List of publicly declared properties.
Returns the names of all publicly declared callbacks.
Returns the names of all exported global singletons
List of publicly declared properties in the exported global singleton specified by its name.
List of publicly declared callbacks in the exported global singleton specified by its name.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ComponentDefinition
impl !Send for ComponentDefinition
impl !Sync for ComponentDefinition
impl Unpin for ComponentDefinition
impl !UnwindSafe for ComponentDefinition
Blanket Implementations
Mutably borrows from an owned value. Read more