pub struct ViewportHint {
pub width: f32,
pub padding_x: f32,
pub padding_top: f32,
pub padding_bottom: f32,
}Expand description
Preferred viewport configuration for rendering.
Fields§
§width: f32Reference width in pixels (default 1100).
padding_x: f32Horizontal padding in pixels.
padding_top: f32Top padding in pixels.
padding_bottom: f32Bottom padding in pixels.
Trait Implementations§
Source§impl Clone for ViewportHint
impl Clone for ViewportHint
Source§fn clone(&self) -> ViewportHint
fn clone(&self) -> ViewportHint
Returns a duplicate 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 ViewportHint
impl Debug for ViewportHint
Source§impl Default for ViewportHint
impl Default for ViewportHint
Source§impl PartialEq for ViewportHint
impl PartialEq for ViewportHint
impl StructuralPartialEq for ViewportHint
Auto Trait Implementations§
impl Freeze for ViewportHint
impl RefUnwindSafe for ViewportHint
impl Send for ViewportHint
impl Sync for ViewportHint
impl Unpin for ViewportHint
impl UnsafeUnpin for ViewportHint
impl UnwindSafe for ViewportHint
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