pub struct ModalFrame {
pub size: UVec2,
pub scale_factor: f32,
}Expand description
What a modal frame callback is told: see
Platform::set_modal_frame_callback.
Fields§
§size: UVec2The size of the inside of the window, in physical pixels.
scale_factor: f32The window’s scale factor, as Platform::scale_factor gives it.
Trait Implementations§
Source§impl Clone for ModalFrame
impl Clone for ModalFrame
impl Copy for ModalFrame
Source§impl Debug for ModalFrame
impl Debug for ModalFrame
Source§impl PartialEq for ModalFrame
impl PartialEq for ModalFrame
impl StructuralPartialEq for ModalFrame
Auto Trait Implementations§
impl Forget for ModalFrame
impl Freeze for ModalFrame
impl Move for ModalFrame
impl RefUnwindSafe for ModalFrame
impl Send for ModalFrame
impl Sync for ModalFrame
impl Unpin for ModalFrame
impl UnsafeUnpin for ModalFrame
impl UnwindSafe for ModalFrame
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