pub struct ViewParameters { /* private fields */ }Implementations§
Source§impl ViewParameters
impl ViewParameters
pub fn new(vx: i32, vy: i32, vw: u32, vh: u32, width: u32, height: u32) -> Self
pub fn view_box(&self) -> (i32, i32, u32, u32)
pub fn view_box_str(&self) -> String
pub fn set_view_box(&mut self, vx: i32, vy: i32, vw: u32, vh: u32)
pub fn x(&self) -> Option<i32>
pub fn set_x(&mut self, x: i32)
pub fn y(&self) -> Option<i32>
pub fn set_y(&mut self, y: i32)
pub fn width(&self) -> u32
pub fn set_width(&mut self, width: u32)
pub fn height(&self) -> u32
pub fn set_height(&mut self, height: u32)
pub fn extend(&mut self, other: &ViewParameters)
pub fn extend_with_pos(&mut self, other: &ViewParameters, x: i32, y: i32)
pub fn extend_with_margin(&mut self, other: &ViewParameters, margin: i32)
Trait Implementations§
Source§impl Clone for ViewParameters
impl Clone for ViewParameters
Source§fn clone(&self) -> ViewParameters
fn clone(&self) -> ViewParameters
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 ViewParameters
impl Debug for ViewParameters
Source§impl Default for ViewParameters
impl Default for ViewParameters
Source§fn default() -> ViewParameters
fn default() -> ViewParameters
Returns the “default value” for a type. Read more
Source§impl Display for ViewParameters
impl Display for ViewParameters
Auto Trait Implementations§
impl Freeze for ViewParameters
impl RefUnwindSafe for ViewParameters
impl Send for ViewParameters
impl Sync for ViewParameters
impl Unpin for ViewParameters
impl UnwindSafe for ViewParameters
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.