pub struct DefaultLayoutPainter;Expand description
The painter a LayoutArea uses unless given one: every default of
LayoutPainter.
Trait Implementations§
Source§impl Clone for DefaultLayoutPainter
impl Clone for DefaultLayoutPainter
impl Copy for DefaultLayoutPainter
Source§impl Debug for DefaultLayoutPainter
impl Debug for DefaultLayoutPainter
Source§impl Default for DefaultLayoutPainter
impl Default for DefaultLayoutPainter
Source§impl LayoutPainter for DefaultLayoutPainter
impl LayoutPainter for DefaultLayoutPainter
Source§fn strip(&self, painter: &Painter, strip: &StripPaint<'_>)
fn strip(&self, painter: &Painter, strip: &StripPaint<'_>)
A folded zone’s strip, with its grip (painted before the
ZoneViewer::strip content).Source§fn snap_guide(&self, painter: &Painter, guide: &SnapGuidePaint<'_>)
fn snap_guide(&self, painter: &Painter, guide: &SnapGuidePaint<'_>)
The guide line of a dragged sash that caught a snap target, or of a
fold or unfold to come on release; painted above everything.
Source§fn over_edge(&self, painter: &Painter, edge: &SashPaint<'_>)
fn over_edge(&self, painter: &Painter, edge: &SashPaint<'_>)
The free edge of a zone lying over its neighbour, the edge that
resizes it, painted above the zone’s content.
edge.rect is
LayoutStyle::sash_width thick, centred on the edge; edge.state
tells whether it is hovered or dragged, as a sash’s. By default
nothing: the zone’s frame (LayoutPainter::flyout_frame) is its
only border. A host that styles its sashes’ hover and drag can
paint the same line here, so both kinds of edge look alike.Source§fn flyout_frame(&self, painter: &Painter, frame: &FlyoutPaint<'_>)
fn flyout_frame(&self, painter: &Painter, frame: &FlyoutPaint<'_>)
The frame of a zone lying over its neighbour, or of a flyout: shadow,
background and border, painted before its content.
Auto Trait Implementations§
impl Forget for DefaultLayoutPainter
impl Freeze for DefaultLayoutPainter
impl Move for DefaultLayoutPainter
impl RefUnwindSafe for DefaultLayoutPainter
impl Send for DefaultLayoutPainter
impl Sync for DefaultLayoutPainter
impl Unpin for DefaultLayoutPainter
impl UnsafeUnpin for DefaultLayoutPainter
impl UnwindSafe for DefaultLayoutPainter
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more