pub struct BorderDirectional {
pub top: BorderSide,
pub start: BorderSide,
pub end: BorderSide,
pub bottom: BorderSide,
}Expand description
A box’s border, by the line’s start and end — the reference’s BorderDirectional
(box_border.dart:799): the start side is the left in a left-to-right script and the
right in a right-to-left one.
Fields§
§top: BorderSideThe top side.
start: BorderSideThe side where a line of text starts.
end: BorderSideThe side where a line of text ends.
bottom: BorderSideThe bottom side.
Implementations§
Source§impl BorderDirectional
impl BorderDirectional
Sourcepub fn resolve(&self, direction: TextDirection) -> Border
pub fn resolve(&self, direction: TextDirection) -> Border
The sides on the screen, for direction.
Trait Implementations§
Source§impl Clone for BorderDirectional
impl Clone for BorderDirectional
impl Copy for BorderDirectional
Source§impl Debug for BorderDirectional
impl Debug for BorderDirectional
Source§impl Default for BorderDirectional
impl Default for BorderDirectional
Source§impl From<BorderDirectional> for BoxBorder
impl From<BorderDirectional> for BoxBorder
Source§fn from(border: BorderDirectional) -> Self
fn from(border: BorderDirectional) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BorderDirectional
impl PartialEq for BorderDirectional
impl StructuralPartialEq for BorderDirectional
Auto Trait Implementations§
impl Freeze for BorderDirectional
impl RefUnwindSafe for BorderDirectional
impl Send for BorderDirectional
impl Sync for BorderDirectional
impl Unpin for BorderDirectional
impl UnsafeUnpin for BorderDirectional
impl UnwindSafe for BorderDirectional
Blanket Implementations§
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