FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TemplatedControlProps

    trait · ferroui-view · v0.5.0

    trait TemplatedControlProps: ElementBuilder
    

    The properties and routed events of TemplatedControl.

    View source

    Members

    background

    fn background<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
    

    Sets TemplatedControl::background_property.

    Source

    background_sizing

    fn background_sizing<M>(self: Self, value: impl IntoProp<ferroui_base::media::BackgroundSizing, M>) -> Self
    

    Sets TemplatedControl::background_sizing_property.

    Source

    border_brush

    fn border_brush<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
    

    Sets TemplatedControl::border_brush_property.

    Source

    border_thickness

    fn border_thickness<M>(self: Self, value: impl IntoProp<ferroui_base::Thickness, M>) -> Self
    

    Sets TemplatedControl::border_thickness_property.

    Source

    corner_radius

    fn corner_radius<M>(self: Self, value: impl IntoProp<ferroui_base::CornerRadius, M>) -> Self
    

    Sets TemplatedControl::corner_radius_property.

    Source

    font_family

    fn font_family<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontFamily, M>) -> Self
    

    Sets TemplatedControl::font_family_property.

    Source

    font_features

    fn font_features<M>(self: Self, value: impl IntoProp<Option<ferroui_base::media::FontFeatureCollection>, M>) -> Self
    

    Sets TemplatedControl::font_features_property.

    Source

    font_size

    fn font_size<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
    

    Sets TemplatedControl::font_size_property.

    Source

    font_style

    fn font_style<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontStyle, M>) -> Self
    

    Sets TemplatedControl::font_style_property.

    Source

    font_weight

    fn font_weight<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontWeight, M>) -> Self
    

    Sets TemplatedControl::font_weight_property.

    Source

    font_stretch

    fn font_stretch<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontStretch, M>) -> Self
    

    Sets TemplatedControl::font_stretch_property.

    Source

    foreground

    fn foreground<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
    

    Sets TemplatedControl::foreground_property.

    Source

    letter_spacing

    fn letter_spacing<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
    

    Sets TemplatedControl::letter_spacing_property.

    Source

    padding

    fn padding<M>(self: Self, value: impl IntoProp<ferroui_base::Thickness, M>) -> Self
    

    Sets TemplatedControl::padding_property.

    Source

    template

    fn template<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_controls::templates::IControlTemplate>>, M>) -> Self
    

    Sets TemplatedControl::template_property.

    Source

    is_template_focus_target

    fn is_template_focus_target<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
    

    Sets TemplatedControl::is_template_focus_target_property.

    Source

    on_template_applied

    fn on_template_applied(self: Self, handler: impl Fn(&ferroui_controls::primitives::TemplateAppliedEventArgs) -> () + 'static) -> Self
    

    Handles TemplatedControl::template_applied_event.

    Source

    Trait implementations

    Availability

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