pub struct BorderDirectional {
pub top: BorderSide,
pub start: BorderSide,
pub end: BorderSide,
pub bottom: BorderSide,
}Expand description
What a decoration is made of — its shape, its sides, its border’s two forms, its
shadows’ blur — and the shapes a border can take.
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
Source§fn clone(&self) -> BorderDirectional
fn clone(&self) -> BorderDirectional
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BorderDirectional
Source§impl Debug for BorderDirectional
impl Debug for BorderDirectional
Source§impl Default for BorderDirectional
impl Default for BorderDirectional
Source§fn default() -> BorderDirectional
fn default() -> BorderDirectional
Returns the “default value” for a type. Read more
Source§impl From<BorderDirectional> for BoxBorder
impl From<BorderDirectional> for BoxBorder
Source§fn from(border: BorderDirectional) -> BoxBorder
fn from(border: BorderDirectional) -> BoxBorder
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