pub struct Panel;Expand description
A container that paints a background and a border and does nothing else.
A border whose four sides differ in width is painted at the widest side, because a single stroke carries a single width.
Trait Implementations§
Source§impl Widget for Panel
impl Widget for Panel
Source§fn paint(&self, cx: &PaintCx<'_>, out: &mut Vec<PaintOp>)
fn paint(&self, cx: &PaintCx<'_>, out: &mut Vec<PaintOp>)
Appends this widget’s paint operations, in paint coordinates. Read more
Source§fn measure(&mut self, _input: MeasureInput) -> Option<Size>
fn measure(&mut self, _input: MeasureInput) -> Option<Size>
Returns the size of this widget’s content, or
None to let the layout
engine size the node from its style. Read moreAuto Trait Implementations§
impl Forget for Panel
impl Freeze for Panel
impl Move for Panel
impl RefUnwindSafe for Panel
impl Send for Panel
impl Sync for Panel
impl Unpin for Panel
impl UnsafeUnpin for Panel
impl UnwindSafe for Panel
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