pub struct ViewBox {
pub min_x: Option<f32>,
pub min_y: Option<f32>,
pub max_x: Option<f32>,
pub max_y: Option<f32>,
}
Fields§
§min_x: Option<f32>
§min_y: Option<f32>
§max_x: Option<f32>
§max_y: Option<f32>
Implementations§
source§impl ViewBox
impl ViewBox
pub fn new(min_x: f32, min_y: f32, max_x: f32, max_y: f32) -> Self
pub fn add(&self, other: &Self) -> Self
pub fn min_x(&self) -> f32
pub fn min_y(&self) -> f32
pub fn max_x(&self) -> f32
pub fn max_y(&self) -> f32
pub fn width(&self) -> f32
pub fn height(&self) -> f32
pub fn with_margin(self, margin: f32) -> Self
Trait Implementations§
source§impl PartialEq for ViewBox
impl PartialEq for ViewBox
impl Copy for ViewBox
impl StructuralPartialEq for ViewBox
Auto Trait Implementations§
impl RefUnwindSafe for ViewBox
impl Send for ViewBox
impl Sync for ViewBox
impl Unpin for ViewBox
impl UnwindSafe for ViewBox
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