pub struct Border { /* private fields */ }Implementations§
Source§impl Border
impl Border
pub fn new() -> Self
pub fn padding(self, value: impl Into<Thickness>) -> Self
pub fn padding_optional<T>(self, value: Option<T>) -> Self
pub fn border_thickness(self, value: impl Into<Thickness>) -> Self
pub fn border_thickness_optional<T>(self, value: Option<T>) -> Self
pub fn corner_radius(self, value: impl Into<CornerRadius>) -> Self
pub fn corner_radius_optional<T>(self, value: Option<T>) -> Selfwhere
T: Into<CornerRadius>,
pub fn background(self, value: impl Into<Brush>) -> Self
pub fn background_optional<T>(self, value: Option<T>) -> Self
pub fn border_brush(self, value: impl Into<Brush>) -> Self
pub fn border_brush_optional<T>(self, value: Option<T>) -> Self
pub fn opacity_transition(self, value: impl Into<Option<Duration>>) -> Self
pub fn scale(self, value: impl Into<Option<f64>>) -> Self
pub fn scale_transition(self, value: impl Into<Option<Duration>>) -> Self
pub fn capture_pointer_on_press(self, value: impl Into<Option<bool>>) -> Self
pub fn drop_policy(self, value: impl Into<Option<DragDropPolicy>>) -> Self
pub fn on_drag_enter(self, callback: impl IntoPayloadCallback<DragKind>) -> Self
pub fn on_drag_over(self, callback: impl IntoPayloadCallback<DragKind>) -> Self
pub fn on_drag_leave(self, callback: impl IntoUnitCallback) -> Self
pub fn on_drop(self, callback: impl IntoPayloadCallback<DroppedData>) -> Self
pub fn on_pointer_pressed( self, callback: impl IntoPayloadCallback<PointerEventInfo>, ) -> Self
pub fn on_pointer_moved( self, callback: impl IntoPayloadCallback<PointerEventInfo>, ) -> Self
pub fn on_pointer_entered( self, callback: impl IntoPayloadCallback<PointerEventInfo>, ) -> Self
pub fn on_pointer_exited( self, callback: impl IntoPayloadCallback<PointerEventInfo>, ) -> Self
pub fn on_pointer_released( self, callback: impl IntoPayloadCallback<PointerEventInfo>, ) -> Self
pub fn on_pointer_capture_lost(self, callback: impl IntoUnitCallback) -> Self
pub fn on_pointer_canceled(self, callback: impl IntoUnitCallback) -> Self
Trait Implementations§
Source§impl LayoutControl for Border
impl LayoutControl for Border
fn width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn opacity(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn horizontal_alignment(
self,
value: impl Into<Option<HorizontalAlignment>>,
) -> Selfwhere
Self: Sized,
fn vertical_alignment(self, value: impl Into<Option<VerticalAlignment>>) -> Selfwhere
Self: Sized,
fn margin(self, value: impl Into<Thickness>) -> Selfwhere
Self: Sized,
fn margin_optional<T>(self, value: Option<T>) -> Self
fn exit_transition(self, transition: ExitTransition) -> Selfwhere
Self: Sized,
impl StructuralPartialEq for Border
Auto Trait Implementations§
impl !RefUnwindSafe for Border
impl !Send for Border
impl !Sync for Border
impl !UnwindSafe for Border
impl Freeze for Border
impl Unpin for Border
impl UnsafeUnpin for Border
Blanket Implementations§
Source§impl<T> AutomationExt for Twhere
T: LayoutControl,
impl<T> AutomationExt for Twhere
T: LayoutControl,
fn automation_name(self, value: impl Into<String>) -> Self
fn automation_id(self, value: impl Into<String>) -> Self
fn automation_heading_level(self, value: AutomationHeadingLevel) -> Self
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more