Enum style_traits::CSSPixel
source · pub enum CSSPixel {}
Expand description
One CSS “px” in the coordinate system of the “initial viewport”: http://www.w3.org/TR/css-device-adapt/#initial-viewport
CSSPixel
is equal to DeviceIndependentPixel
times a “page zoom” factor controlled by the user. This is
the desktop-style “full page” zoom that enlarges content but then reflows the layout viewport
so it still exactly fits the visible area.
At the default zoom level of 100%, one CSSPixel
is equal to one DeviceIndependentPixel
. However, if the
document is zoomed in or out then this scale may be larger or smaller.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CSSPixel
impl RefUnwindSafe for CSSPixel
impl Send for CSSPixel
impl Sync for CSSPixel
impl Unpin for CSSPixel
impl UnwindSafe for CSSPixel
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
)