Struct sixtyfps_interpreter::ComponentDefinition [−][src]
pub struct ComponentDefinition { /* fields omitted */ }
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
impl ComponentDefinition
[src]
impl ComponentDefinition
[src]pub fn create(&self) -> ComponentInstance
[src]
Creates a new instance of the component and returns a shared handle to it.
pub fn properties<'a>(
&'a self
) -> impl Iterator<Item = (String, ValueType)> + 'a
[src]
&'a self
) -> impl Iterator<Item = (String, ValueType)> + 'a
List of publicly declared properties.
pub fn name(&self) -> &str
[src]
The name of this Component as written in the .60 file
Trait Implementations
impl Clone for ComponentDefinition
[src]
impl Clone for ComponentDefinition
[src]fn clone(&self) -> ComponentDefinition
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for ComponentDefinition
impl !RefUnwindSafe for ComponentDefinition
impl !Send for ComponentDefinition
impl !Send for ComponentDefinition
impl !Sync for ComponentDefinition
impl !Sync for ComponentDefinition
impl Unpin for ComponentDefinition
impl Unpin for ComponentDefinition
impl !UnwindSafe for ComponentDefinition
impl !UnwindSafe for ComponentDefinition