FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Border

    struct · ferroui-controls · v0.5.0

    struct Border
    

    A control which decorates a child with a border and background.

    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<Border>
    

    Returns a strong reference to this object.

    Source

    background_property

    fn background_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Defines the Background property.

    Source

    background_sizing_property

    fn background_sizing_property() -> &'static StyledProperty<BackgroundSizing>
    

    Defines the BackgroundSizing property.

    Source

    border_brush_property

    fn border_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Defines the BorderBrush property.

    Source

    border_thickness_property

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

    Defines the BorderThickness property.

    Source

    corner_radius_property

    fn corner_radius_property() -> &'static StyledProperty<CornerRadius>
    

    Defines the CornerRadius property.

    Source

    box_shadow_property

    fn box_shadow_property() -> &'static StyledProperty<BoxShadows>
    

    Defines the BoxShadow property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    background

    fn background(self: &Self) -> Option<Rc<dyn IBrush>>
    

    A brush with which to paint the background.

    Source

    set_background

    fn set_background(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    background_sizing

    fn background_sizing(self: &Self) -> BackgroundSizing
    

    How the background is drawn relative to the border.

    Source

    set_background_sizing

    fn set_background_sizing(self: &Self, value: BackgroundSizing)
    

    Source

    border_brush

    fn border_brush(self: &Self) -> Option<Rc<dyn IBrush>>
    

    A brush with which to paint the border.

    Source

    set_border_brush

    fn set_border_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    border_thickness

    fn border_thickness(self: &Self) -> Thickness
    

    The thickness of the border.

    Source

    set_border_thickness

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

    Source

    corner_radius

    fn corner_radius(self: &Self) -> CornerRadius
    

    The radius of the border rounded corners.

    Source

    set_corner_radius

    fn set_corner_radius(self: &Self, value: CornerRadius)
    

    Source

    box_shadow

    fn box_shadow(self: &Self) -> BoxShadows
    

    The box shadow effect parameters.

    Source

    set_box_shadow

    fn set_box_shadow(self: &Self, value: BoxShadows)
    

    Source

    layout_thickness

    fn layout_thickness(self: &Self) -> Thickness
    

    The border thickness used for rendering: rounded to device pixels when layout rounding is in use.

    Source

    clip_to_bounds_radius

    fn clip_to_bounds_radius(self: &Self) -> CornerRadius
    

    The corner radius with which the visual is clipped when it clips to its bounds.

    Source

    Trait implementations

    Availability

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