pub struct DeviceFrame {
pub bezel: Insets,
pub radius: f32,
pub home_button: bool,
pub buttons: Vec<SideButton>,
}Expand description
The outline of a device, drawn around its screen.
Fields§
§bezel: InsetsHow far the body reaches past the screen on each side, held upright.
radius: f32The radius of the body’s corners.
A round home button below the screen, centred in the bottom bezel.
The buttons on the body’s edges, held upright.
Trait Implementations§
Source§impl Clone for DeviceFrame
impl Clone for DeviceFrame
Source§impl Debug for DeviceFrame
impl Debug for DeviceFrame
Source§impl PartialEq for DeviceFrame
impl PartialEq for DeviceFrame
impl StructuralPartialEq for DeviceFrame
Auto Trait Implementations§
impl Freeze for DeviceFrame
impl RefUnwindSafe for DeviceFrame
impl Send for DeviceFrame
impl Sync for DeviceFrame
impl Unpin for DeviceFrame
impl UnsafeUnpin for DeviceFrame
impl UnwindSafe for DeviceFrame
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