FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MaterialTextFieldLayout

    struct · ferroui-themes-material · v0.5.0

    struct MaterialTextFieldLayout
    

    Arranges a real text editor together with Material decoration. In particular, outlined labels interpolate from the editor's start edge to the 16dp outline inset, independently of leading-icon and prefix widths. Supporting content contributes to the control's height without stretching the painted container.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<MaterialTextFieldLayout>
    

    Returns a strong reference to this object.

    Source

    slot_property

    fn slot_property() -> &'static AttachedProperty<MaterialTextFieldSlot>
    

    Source

    label_progress_property

    fn label_progress_property() -> &'static StyledProperty<f64>
    

    0 is the resting label and 1 is minimized. A spatial spring may overshoot.

    Source

    is_outlined_property

    fn is_outlined_property() -> &'static StyledProperty<bool>
    

    Source

    single_line_property

    fn single_line_property() -> &'static StyledProperty<bool>
    

    Source

    content_padding_property

    fn content_padding_property() -> &'static StyledProperty<Thickness>
    

    Source

    container_min_height_property

    fn container_min_height_property() -> &'static StyledProperty<f64>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    get_slot

    fn get_slot(child: &Control) -> MaterialTextFieldSlot
    

    Source

    set_slot

    fn set_slot(child: &Control, value: MaterialTextFieldSlot)
    

    Source

    label_progress

    fn label_progress(self: &Self) -> f64
    

    Source

    set_label_progress

    fn set_label_progress(self: &Self, value: f64)
    

    Source

    is_outlined

    fn is_outlined(self: &Self) -> bool
    

    Source

    set_is_outlined

    fn set_is_outlined(self: &Self, value: bool)
    

    Source

    single_line

    fn single_line(self: &Self) -> bool
    

    Source

    set_single_line

    fn set_single_line(self: &Self, value: bool)
    

    Source

    content_padding

    fn content_padding(self: &Self) -> Thickness
    

    Source

    set_content_padding

    fn set_content_padding(self: &Self, value: Thickness)
    

    Source

    container_min_height

    fn container_min_height(self: &Self) -> f64
    

    Source

    set_container_min_height

    fn set_container_min_height(self: &Self, value: f64)
    

    Source

    Trait implementations

    Availability

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