Skip to main content

Panel

Struct Panel 

Source
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

Source§

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>

Returns the size of this widget’s content, or None to let the layout engine size the node from its style. Read more
Source§

fn ime_area(&self) -> Option<Rect>

Returns the rectangle the input method should anchor to while this widget holds the keyboard focus, in the paint coordinates of Widget::paint. Read more
Source§

fn semantics(&self) -> Option<Semantics>

Returns the accessibility description that places this widget in the projection, or None to leave it out. Read more

Auto 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.