pub struct UiScale(/* private fields */);Implementations§
Source§impl UiScale
impl UiScale
pub const ONE: Self
pub fn new(value: f32) -> Self
pub fn factor(self) -> f32
pub fn is_identity(self) -> bool
pub fn physical_value(self, logical: f32) -> i32
pub fn physical_ui_value(self, logical: f32) -> f32
pub fn physical_ui_length(self, logical: f32) -> f32
pub fn physical_ui_signed_length(self, logical: f32) -> f32
pub fn physical_length(self, logical: f32) -> i32
pub fn physical_signed_length(self, logical: f32) -> i32
pub fn logical_value(self, physical: i32) -> f32
pub fn physical_point(self, logical: Point) -> PhysicalPoint
pub fn physical_ui_point(self, logical: Point) -> Point
pub fn logical_point(self, physical: PhysicalPoint) -> Point
pub fn physical_rect(self, logical: UiRect) -> PhysicalRect
pub fn physical_rect_outward(self, logical: UiRect) -> PhysicalRect
pub fn physical_ui_rect(self, logical: UiRect) -> UiRect
pub fn logical_rect(self, physical: PhysicalRect) -> UiRect
pub fn logical_size(self, physical: PhysicalSize) -> Size
pub fn physical_size(self, logical: Size) -> PhysicalSize
Trait Implementations§
impl Copy for UiScale
impl StructuralPartialEq for UiScale
Auto Trait Implementations§
impl Freeze for UiScale
impl RefUnwindSafe for UiScale
impl Send for UiScale
impl Sync for UiScale
impl Unpin for UiScale
impl UnsafeUnpin for UiScale
impl UnwindSafe for UiScale
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