FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    WindowDrawnDecorationsTemplate

    struct · ferroui-markup-xaml · v0.5.0

    struct WindowDrawnDecorationsTemplate
    

    The template of the decorations a window draws itself, 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 whose result is the decorations content.

    Source

    set_content

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

    Source

    build

    fn build(self: &Self) -> TemplateResult<Ref<WindowDrawnDecorationsContent>>
    

    Builds the decorations content.

    Panics

    Panics if the template has no content.

    Source

    try_build

    fn try_build(self: &Self) -> Result<TemplateResult<Ref<WindowDrawnDecorationsContent>>, crate::XamlLoadError>
    

    build without the panic: a template without content is an error.

    Source

    as_window_drawn_decorations_template

    fn as_window_drawn_decorations_template(self: &Self) -> Rc<dyn IWindowDrawnDecorationsTemplate>
    

    The template as the decorations template contract.

    Source

    Trait implementations

    Availability

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