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: MarginThe size of the resizing frame
caption: RectThe caption area
inner_margin: MarginThe inner margin
rounding: RoundingThe rounding radius
shadow: ShadowThe 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