ControlTemplate
struct · ferroui-markup-xaml · v0.5.0
struct ControlTemplate
The template of a templated control, as markup declares it.
Members
new
fn new() -> Rc<Self>
content
fn content(self: &Self) -> Option<BoxedValue>
The template content: deferred content built for each control the template is applied to.
set_content
fn set_content(self: &Self, value: Option<BoxedValue>)
target_type
fn target_type(self: &Self) -> Option<&'static TypeInfo>
The type of control the template is for.
set_target_type
fn set_target_type(self: &Self, value: Option<&'static TypeInfo>)
build
fn build(self: &Self, _control: &Ref<TemplatedControl>) -> Option<TemplateResult<Ref<Control>>>
Builds the template for control.
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).
as_control_template
fn as_control_template(self: &Self) -> Rc<dyn IControlTemplate>
The template as the control template contract.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherITemplateWithParam<Ref<TemplatedControl>, Option<TemplateResult<Ref<Control>>>>IControlTemplatePartialEqMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.