TemplatedControlProps
trait · ferroui-view · v0.5.0
trait TemplatedControlProps: ElementBuilder
The properties and routed events of TemplatedControl.
Members
backgroundbackground_sizingborder_brushborder_thicknesscorner_radiusfont_familyfont_featuresfont_sizefont_stylefont_weightfont_stretchforegroundletter_spacingpaddingtemplateis_template_focus_targeton_template_applied
background
fn background<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
Sets TemplatedControl::background_property.
background_sizing
fn background_sizing<M>(self: Self, value: impl IntoProp<ferroui_base::media::BackgroundSizing, M>) -> Self
Sets TemplatedControl::background_sizing_property.
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.
border_thickness
fn border_thickness<M>(self: Self, value: impl IntoProp<ferroui_base::Thickness, M>) -> Self
Sets TemplatedControl::border_thickness_property.
corner_radius
fn corner_radius<M>(self: Self, value: impl IntoProp<ferroui_base::CornerRadius, M>) -> Self
Sets TemplatedControl::corner_radius_property.
font_family
fn font_family<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontFamily, M>) -> Self
Sets TemplatedControl::font_family_property.
font_features
fn font_features<M>(self: Self, value: impl IntoProp<Option<ferroui_base::media::FontFeatureCollection>, M>) -> Self
Sets TemplatedControl::font_features_property.
font_size
fn font_size<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
Sets TemplatedControl::font_size_property.
font_style
fn font_style<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontStyle, M>) -> Self
Sets TemplatedControl::font_style_property.
font_weight
fn font_weight<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontWeight, M>) -> Self
Sets TemplatedControl::font_weight_property.
font_stretch
fn font_stretch<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontStretch, M>) -> Self
Sets TemplatedControl::font_stretch_property.
foreground
fn foreground<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
Sets TemplatedControl::foreground_property.
letter_spacing
fn letter_spacing<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
Sets TemplatedControl::letter_spacing_property.
padding
fn padding<M>(self: Self, value: impl IntoProp<ferroui_base::Thickness, M>) -> Self
Sets TemplatedControl::padding_property.
template
fn template<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_controls::templates::IControlTemplate>>, M>) -> Self
Sets TemplatedControl::template_property.
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.
on_template_applied
fn on_template_applied(self: Self, handler: impl Fn(&ferroui_controls::primitives::TemplateAppliedEventArgs) -> () + 'static) -> Self
Handles TemplatedControl::template_applied_event.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.