[][src]Struct egui::containers::Frame

pub struct Frame {
    pub margin: Vec2,
    pub corner_radius: f32,
    pub fill: Srgba,
    pub stroke: Stroke,
}

Adds a rectangular frame and background to some Ui.

Fields

margin: Vec2corner_radius: f32fill: Srgbastroke: Stroke

Implementations

impl Frame[src]

pub fn none() -> Self[src]

pub fn window(style: &Style) -> Self[src]

pub fn dark_canvas(style: &Style) -> Self[src]

dark canvas to draw on

pub fn background(style: &Style) -> Self[src]

Suitable for a fullscreen app

pub fn menu(style: &Style) -> Self[src]

pub fn popup(style: &Style) -> Self[src]

pub fn fill(self, fill: Srgba) -> Self[src]

pub fn stroke(self, stroke: Stroke) -> Self[src]

impl Frame[src]

pub fn begin(self, ui: &mut Ui) -> Prepared[src]

pub fn show<R>(self, ui: &mut Ui, add_contents: impl FnOnce(&mut Ui) -> R) -> R[src]

Trait Implementations

impl Clone for Frame[src]

impl Copy for Frame[src]

impl Debug for Frame[src]

impl PartialEq<Frame> for Frame[src]

impl StructuralPartialEq for Frame[src]

Auto Trait Implementations

impl RefUnwindSafe for Frame

impl Send for Frame

impl Sync for Frame

impl Unpin for Frame

impl UnwindSafe for Frame

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.