Border
struct · ferroui-controls · v0.5.0
struct Border
A control which decorates a child with a border and background.
Members
TYPEto_refbackground_propertybackground_sizing_propertyborder_brush_propertyborder_thickness_propertycorner_radius_propertybox_shadow_propertyconstructnewbackgroundset_backgroundbackground_sizingset_background_sizingborder_brushset_border_brushborder_thicknessset_border_thicknesscorner_radiusset_corner_radiusbox_shadowset_box_shadowlayout_thicknessclip_to_bounds_radius
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Border>
Returns a strong reference to this object.
background_property
fn background_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
Defines the Background property.
background_sizing_property
fn background_sizing_property() -> &'static StyledProperty<BackgroundSizing>
Defines the BackgroundSizing property.
border_brush_property
fn border_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
Defines the BorderBrush property.
border_thickness_property
fn border_thickness_property() -> &'static StyledProperty<Thickness>
Defines the BorderThickness property.
corner_radius_property
fn corner_radius_property() -> &'static StyledProperty<CornerRadius>
Defines the CornerRadius property.
box_shadow_property
fn box_shadow_property() -> &'static StyledProperty<BoxShadows>
Defines the BoxShadow property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
background
fn background(self: &Self) -> Option<Rc<dyn IBrush>>
A brush with which to paint the background.
set_background
fn set_background(self: &Self, value: Option<Rc<dyn IBrush>>)
background_sizing
fn background_sizing(self: &Self) -> BackgroundSizing
How the background is drawn relative to the border.
set_background_sizing
fn set_background_sizing(self: &Self, value: BackgroundSizing)
border_brush
fn border_brush(self: &Self) -> Option<Rc<dyn IBrush>>
A brush with which to paint the border.
set_border_brush
fn set_border_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
border_thickness
fn border_thickness(self: &Self) -> Thickness
The thickness of the border.
set_border_thickness
fn set_border_thickness(self: &Self, value: Thickness)
corner_radius
fn corner_radius(self: &Self) -> CornerRadius
The radius of the border rounded corners.
set_corner_radius
fn set_corner_radius(self: &Self, value: CornerRadius)
box_shadow
fn box_shadow(self: &Self) -> BoxShadows
The box shadow effect parameters.
set_box_shadow
fn set_box_shadow(self: &Self, value: BoxShadows)
layout_thickness
fn layout_thickness(self: &Self) -> Thickness
The border thickness used for rendering: rounded to device pixels when layout rounding is in use.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<Border>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplInteractiveImplInputElementImplControlImplVisualImplFerroObjectImplLayoutableImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.