Struct epaint::shape::ViewportInPixels
source · pub struct ViewportInPixels {
pub left_px: i32,
pub top_px: i32,
pub from_bottom_px: i32,
pub width_px: i32,
pub height_px: i32,
}
Expand description
Size of the viewport in whole, physical pixels.
Fields§
§left_px: i32
Physical pixel offset for left side of the viewport.
top_px: i32
Physical pixel offset for top side of the viewport.
from_bottom_px: i32
Physical pixel offset for bottom side of the viewport.
This is what glViewport
, glScissor
etc expects for the y axis.
width_px: i32
Viewport width in physical pixels.
height_px: i32
Viewport height in physical pixels.
Implementations§
Auto Trait Implementations§
impl Freeze for ViewportInPixels
impl RefUnwindSafe for ViewportInPixels
impl Send for ViewportInPixels
impl Sync for ViewportInPixels
impl Unpin for ViewportInPixels
impl UnwindSafe for ViewportInPixels
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