pub struct ShellMetrics {
pub logical_size: Size,
pub scale_factor: f32,
}Expand description
Shell 的尺寸与 DPI。
Fields§
§logical_size: Size§scale_factor: f32物理像素 / 逻辑像素
Implementations§
Trait Implementations§
Source§impl Clone for ShellMetrics
impl Clone for ShellMetrics
impl Copy for ShellMetrics
Source§impl Debug for ShellMetrics
impl Debug for ShellMetrics
Source§impl Default for ShellMetrics
impl Default for ShellMetrics
Source§impl PartialEq for ShellMetrics
impl PartialEq for ShellMetrics
impl StructuralPartialEq for ShellMetrics
Auto Trait Implementations§
impl Forget for ShellMetrics
impl Freeze for ShellMetrics
impl Move for ShellMetrics
impl RefUnwindSafe for ShellMetrics
impl Send for ShellMetrics
impl Sync for ShellMetrics
impl Unpin for ShellMetrics
impl UnsafeUnpin for ShellMetrics
impl UnwindSafe for ShellMetrics
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