pub struct HidpiAdjustedBounds {
pub logical_size: LogicalSize,
pub hidpi_factor: f32,
}
Expand description
Information about the bounds of a laid-out div rectangle.
Necessary when invoking IFrameCallbacks
and GlCallbacks
, so
that they can change what their content is based on their size.
Fields§
§logical_size: LogicalSize
§hidpi_factor: f32
Implementations§
Source§impl HidpiAdjustedBounds
impl HidpiAdjustedBounds
pub fn from_bounds(bounds: LayoutSize, hidpi_factor: f32) -> Self
pub fn get_physical_size(&self) -> PhysicalSize<u32>
pub fn get_logical_size(&self) -> LogicalSize
pub fn get_hidpi_factor(&self) -> f32
Trait Implementations§
Source§impl Clone for HidpiAdjustedBounds
impl Clone for HidpiAdjustedBounds
Source§fn clone(&self) -> HidpiAdjustedBounds
fn clone(&self) -> HidpiAdjustedBounds
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HidpiAdjustedBounds
impl Debug for HidpiAdjustedBounds
impl Copy for HidpiAdjustedBounds
Auto Trait Implementations§
impl Freeze for HidpiAdjustedBounds
impl RefUnwindSafe for HidpiAdjustedBounds
impl Send for HidpiAdjustedBounds
impl Sync for HidpiAdjustedBounds
impl Unpin for HidpiAdjustedBounds
impl UnwindSafe for HidpiAdjustedBounds
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)