pub struct DeviceFrame {
pub bezel: Insets,
pub radius: f32,
pub home_button: bool,
pub buttons: Vec<SideButton>,
}Expand description
Device profiles: what a phone or a tablet looks like to an application, for a desktop
window to stand in for it — see frus_core::DeviceProfile.
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§fn clone(&self) -> DeviceFrame
fn clone(&self) -> DeviceFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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