Struct egui::containers::Frame [−][src]
pub struct Frame { pub margin: Vec2, pub corner_radius: f32, pub shadow: Shadow, pub fill: Color32, pub stroke: Stroke, }
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]
impl Frame
[src]pub fn none() -> Self
[src]
pub fn group(style: &Style) -> 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]
pub fn dark_canvas(style: &Style) -> Self
[src]dark canvas to draw on
Trait Implementations
impl Copy 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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more