pub enum BorderStyle {
Solid,
Dashed(DashPattern),
}Expand description
A border’s stroke style, set via ContainerView::border_style. Solid by
default; ContainerView::border alone (with no .border_style call)
keeps the pre-existing solid-only behavior unchanged.
Variants§
Solid
A continuous stroke — frust_core::PaintScene::stroke_path.
Dashed(DashPattern)
A dashed stroke — frust_core::PaintScene::stroke_path_dashed,
which breaks the same rounded-rect path this module builds for
BorderStyle::Solid into the pattern’s on/off runs.
Trait Implementations§
Source§impl Clone for BorderStyle
impl Clone for BorderStyle
impl Copy for BorderStyle
Source§impl Debug for BorderStyle
impl Debug for BorderStyle
Source§impl Default for BorderStyle
impl Default for BorderStyle
Source§impl PartialEq for BorderStyle
impl PartialEq for BorderStyle
impl StructuralPartialEq for BorderStyle
Auto Trait Implementations§
impl Freeze for BorderStyle
impl RefUnwindSafe for BorderStyle
impl Send for BorderStyle
impl Sync for BorderStyle
impl Unpin for BorderStyle
impl UnsafeUnpin for BorderStyle
impl UnwindSafe for BorderStyle
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
impl<T> Brush for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.