pub struct CustomFrame {
pub sizebox: Margin,
pub caption: Rect,
pub inner_margin: Margin,
pub rounding: Rounding,
pub shadow: Shadow,
}
Expand description
A frame that allows you to custom its appearance and behavior
§Example
egui_custom_frame::CustomFrame::default().show(ctx, |ui| {
ui.label("Hello World!");
});
Fields§
§sizebox: Margin
The size of the resizing frame
caption: Rect
The caption area
inner_margin: Margin
The inner margin
rounding: Rounding
The rounding radius
shadow: Shadow
The shadow attributes
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CustomFrame
impl RefUnwindSafe for CustomFrame
impl Send for CustomFrame
impl Sync for CustomFrame
impl Unpin for CustomFrame
impl UnwindSafe for CustomFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more