pub struct WearableProfile { /* private fields */ }Expand description
Hardware display and input profile descriptor for a smartwatch vendor target.
Implementations§
Source§impl WearableProfile
Hardware preset factory and geometry helpers for WearableProfile.
impl WearableProfile
Hardware preset factory and geometry helpers for WearableProfile.
Sourcepub const fn for_vendor(vendor: WearableVendor) -> Self
pub const fn for_vendor(vendor: WearableVendor) -> Self
Sourcepub const fn vivo_watch_round() -> Self
pub const fn vivo_watch_round() -> Self
Returns the hardware display profile for circular vivo BlueOS Watch models (vivo Watch 3 / 5, 466x466px @ 2.0x).
§Returns
Self- Preconfigured circular vivo BlueOS Watch profile.
Sourcepub const fn vivo_watch_gt() -> Self
pub const fn vivo_watch_gt() -> Self
Returns the hardware display profile for squircle vivo BlueOS Watch GT models (390x450px @ 2.0x).
§Returns
Self- Preconfigured squircle vivo BlueOS Watch GT profile.
Sourcepub fn safe_area_insets(&self) -> SafeAreaInsets
pub fn safe_area_insets(&self) -> SafeAreaInsets
Sourcepub fn compact_scale(&self) -> f32
pub fn compact_scale(&self) -> f32
Source§impl WearableProfile
impl WearableProfile
pub fn get_vendor(&self) -> WearableVendor
pub fn get_mut_vendor(&mut self) -> &mut WearableVendor
pub fn set_vendor(&mut self, val: WearableVendor) -> &mut Self
pub fn get_shape(&self) -> WearableShape
pub fn get_mut_shape(&mut self) -> &mut WearableShape
pub fn set_shape(&mut self, val: WearableShape) -> &mut Self
pub fn get_logical_width(&self) -> u32
pub fn get_mut_logical_width(&mut self) -> &mut u32
pub fn set_logical_width(&mut self, val: u32) -> &mut Self
pub fn get_logical_height(&self) -> u32
pub fn get_mut_logical_height(&mut self) -> &mut u32
pub fn set_logical_height(&mut self, val: u32) -> &mut Self
pub fn get_scale_factor(&self) -> f32
pub fn get_mut_scale_factor(&mut self) -> &mut f32
pub fn set_scale_factor(&mut self, val: f32) -> &mut Self
pub fn get_chin_height_dp(&self) -> f32
pub fn get_mut_chin_height_dp(&mut self) -> &mut f32
pub fn set_chin_height_dp(&mut self, val: f32) -> &mut Self
pub fn get_refresh_rate_hz(&self) -> f32
pub fn get_mut_refresh_rate_hz(&mut self) -> &mut f32
pub fn set_refresh_rate_hz(&mut self, val: f32) -> &mut Self
pub fn get_has_rotary_crown(&self) -> bool
pub fn get_mut_has_rotary_crown(&mut self) -> &mut bool
pub fn set_has_rotary_crown(&mut self, val: bool) -> &mut Self
pub fn get_supports_aod(&self) -> bool
pub fn get_mut_supports_aod(&mut self) -> &mut bool
pub fn set_supports_aod(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for WearableProfile
impl Clone for WearableProfile
impl Copy for WearableProfile
Source§impl Debug for WearableProfile
impl Debug for WearableProfile
Source§impl PartialEq for WearableProfile
impl PartialEq for WearableProfile
impl StructuralPartialEq for WearableProfile
Auto Trait Implementations§
impl Forget for WearableProfile
impl Freeze for WearableProfile
impl Move for WearableProfile
impl RefUnwindSafe for WearableProfile
impl Send for WearableProfile
impl Sync for WearableProfile
impl Unpin for WearableProfile
impl UnsafeUnpin for WearableProfile
impl UnwindSafe for WearableProfile
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