WindowDrawnDecorationsTemplate
struct · ferroui-markup-xaml · v0.5.0
struct WindowDrawnDecorationsTemplate
The template of the decorations a window draws itself, as markup declares it.
Members
new
fn new() -> Rc<Self>
content
fn content(self: &Self) -> Option<BoxedValue>
The template content: deferred content whose result is the decorations content.
set_content
fn set_content(self: &Self, value: Option<BoxedValue>)
build
fn build(self: &Self) -> TemplateResult<Ref<WindowDrawnDecorationsContent>>
Builds the decorations content.
Panics
Panics if the template has no content.
try_build
fn try_build(self: &Self) -> Result<TemplateResult<Ref<WindowDrawnDecorationsContent>>, crate::XamlLoadError>
build without the panic: a template without content
is an error.
as_window_drawn_decorations_template
fn as_window_drawn_decorations_template(self: &Self) -> Rc<dyn IWindowDrawnDecorationsTemplate>
The template as the decorations template contract.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherIWindowDrawnDecorationsTemplateITemplatePartialEqMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.