FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ControlTemplate

    struct · ferroui-markup-xaml · v0.5.0

    struct ControlTemplate
    

    The template of a templated control, as markup declares it.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Source

    content

    fn content(self: &Self) -> Option<BoxedValue>
    

    The template content: deferred content built for each control the template is applied to.

    Source

    set_content

    fn set_content(self: &Self, value: Option<BoxedValue>)
    

    Source

    target_type

    fn target_type(self: &Self) -> Option<&'static TypeInfo>
    

    The type of control the template is for.

    Source

    set_target_type

    fn set_target_type(self: &Self, value: Option<&'static TypeInfo>)
    

    Source

    build

    fn build(self: &Self, _control: &Ref<TemplatedControl>) -> Option<TemplateResult<Ref<Control>>>
    

    Builds the template for control.

    Source

    from_control_template

    fn from_control_template(template: &Rc<dyn IControlTemplate>) -> Option<Rc<ControlTemplate>>
    

    The template behind a control template handle, if it is one of this class (the cast of the contract back to the class).

    Source

    as_control_template

    fn as_control_template(self: &Self) -> Rc<dyn IControlTemplate>
    

    The template as the control template contract.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.