[−][src]Struct azul_core::callbacks::HidpiAdjustedBounds
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
impl HidpiAdjustedBounds
[src]
pub fn from_bounds(bounds: LayoutSize, hidpi_factor: f32) -> Self
[src]
pub fn get_physical_size(&self) -> PhysicalSize<u32>
[src]
pub fn get_logical_size(&self) -> LogicalSize
[src]
pub fn get_hidpi_factor(&self) -> f32
[src]
Trait Implementations
impl Clone for HidpiAdjustedBounds
[src]
fn clone(&self) -> HidpiAdjustedBounds
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for HidpiAdjustedBounds
[src]
impl Debug for HidpiAdjustedBounds
[src]
Auto Trait Implementations
impl RefUnwindSafe for HidpiAdjustedBounds
impl Send for HidpiAdjustedBounds
impl Sync for HidpiAdjustedBounds
impl Unpin for HidpiAdjustedBounds
impl UnwindSafe for HidpiAdjustedBounds
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,