pub struct HarmonyDeviceProfile { /* private fields */ }Expand description
Device form-factor hardware profile for HarmonyOS / OpenHarmony targets.
Implementations§
Source§impl HarmonyDeviceProfile
Hardware presets for HarmonyDeviceProfile.
impl HarmonyDeviceProfile
Hardware presets for HarmonyDeviceProfile.
Sourcepub const fn for_device_type(device_type: HarmonyDeviceType) -> Self
pub const fn for_device_type(device_type: HarmonyDeviceType) -> Self
Source§impl HarmonyDeviceProfile
impl HarmonyDeviceProfile
pub fn get_device_type(&self) -> HarmonyDeviceType
pub fn get_mut_device_type(&mut self) -> &mut HarmonyDeviceType
pub fn set_device_type(&mut self, val: HarmonyDeviceType) -> &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_density(&self) -> f32
pub fn get_mut_density(&mut self) -> &mut f32
pub fn set_density(&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_graphics_api(&self) -> HarmonyGraphicsApi
pub fn get_mut_graphics_api(&mut self) -> &mut HarmonyGraphicsApi
pub fn set_graphics_api(&mut self, val: HarmonyGraphicsApi) -> &mut Self
Source§impl HarmonyDeviceProfile
impl HarmonyDeviceProfile
pub fn new( device_type: HarmonyDeviceType, logical_width: u32, logical_height: u32, density: f32, refresh_rate_hz: f32, graphics_api: HarmonyGraphicsApi, ) -> Self
Trait Implementations§
Source§impl Clone for HarmonyDeviceProfile
impl Clone for HarmonyDeviceProfile
impl Copy for HarmonyDeviceProfile
Source§impl Debug for HarmonyDeviceProfile
impl Debug for HarmonyDeviceProfile
Source§impl PartialEq for HarmonyDeviceProfile
impl PartialEq for HarmonyDeviceProfile
impl StructuralPartialEq for HarmonyDeviceProfile
Auto Trait Implementations§
impl Forget for HarmonyDeviceProfile
impl Freeze for HarmonyDeviceProfile
impl Move for HarmonyDeviceProfile
impl RefUnwindSafe for HarmonyDeviceProfile
impl Send for HarmonyDeviceProfile
impl Sync for HarmonyDeviceProfile
impl Unpin for HarmonyDeviceProfile
impl UnsafeUnpin for HarmonyDeviceProfile
impl UnwindSafe for HarmonyDeviceProfile
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