pub struct SideButton {
pub edge: ButtonEdge,
pub top: f32,
pub length: f32,
}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.
A button on the edge of a device’s body.
Fields§
§edge: ButtonEdgeWhich edge it is on, held upright.
top: f32From the top of the body to the top of the button.
length: f32How long it is along the edge.
Trait Implementations§
Source§impl Clone for SideButton
impl Clone for SideButton
Source§fn clone(&self) -> SideButton
fn clone(&self) -> SideButton
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 moreimpl Copy for SideButton
Source§impl Debug for SideButton
impl Debug for SideButton
Source§impl PartialEq for SideButton
impl PartialEq for SideButton
impl StructuralPartialEq for SideButton
Auto Trait Implementations§
impl Freeze for SideButton
impl RefUnwindSafe for SideButton
impl Send for SideButton
impl Sync for SideButton
impl Unpin for SideButton
impl UnsafeUnpin for SideButton
impl UnwindSafe for SideButton
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