[−][src]Struct egui::containers::Frame
Adds a rectangular frame and background to some Ui
.
Fields
margin: Vec2
corner_radius: f32
fill: Srgba
stroke: 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
[src]
impl Send for Frame
[src]
impl Sync for Frame
[src]
impl Unpin for Frame
[src]
impl UnwindSafe for Frame
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,