Struct egui::containers::Frame [−][src]
Color and margin of a rectangular background of a Ui
.
Fields
margin: Vec2
On each side
corner_radius: f32
shadow: Shadow
fill: Color32
stroke: Stroke
Implementations
impl Frame
[src]
pub fn none() -> Self
[src]
pub fn group(style: &Style) -> Self
[src]
For when you want to group a few widgets together within a frame.
pub fn window(style: &Style) -> Self
[src]
pub fn menu(style: &Style) -> Self
[src]
pub fn popup(style: &Style) -> Self
[src]
pub fn dark_canvas(style: &Style) -> Self
[src]
dark canvas to draw on
impl Frame
[src]
pub fn fill(self, fill: Color32) -> Self
[src]
pub fn stroke(self, stroke: Stroke) -> Self
[src]
pub fn multiply_with_opacity(self, opacity: f32) -> 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]
pub fn paint(&self, outer_rect: Rect) -> Shape
[src]
Trait Implementations
impl Clone for Frame
[src]
impl Copy for Frame
[src]
impl Debug for Frame
[src]
impl Default 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]
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>,