[−][src]Struct skia_safe::Size
Fields
width: scalar
height: scalar
Methods
impl Size
[src]
pub const fn new(w: scalar, h: scalar) -> Size
[src]
pub fn from_isize(src: ISize) -> Size
[src]
pub fn new_empty() -> Self
[src]
pub fn set(&mut self, w: scalar, h: scalar)
[src]
pub fn is_zero(self) -> bool
[src]
pub fn is_empty(self) -> bool
[src]
pub fn set_empty(&mut self)
[src]
pub fn equals(self, w: scalar, h: scalar) -> bool
[src]
pub fn to_round(self) -> ISize
[src]
pub fn to_ceil(self) -> ISize
[src]
pub fn to_floor(self) -> ISize
[src]
Trait Implementations
impl Default for Size
[src]
impl Clone for Size
[src]
impl PartialEq<Size> for Size
[src]
impl From<(f32, f32)> for Size
[src]
impl From<ISize> for Size
[src]
impl From<(i32, i32)> for Size
[src]
impl Copy for Size
[src]
impl Add<Size> for Point
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Size) -> Self
[src]
impl Sub<Size> for Point
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Size) -> Self
[src]
impl AddAssign<Size> for Point
[src]
fn add_assign(&mut self, rhs: Size)
[src]
impl SubAssign<Size> for Point
[src]
fn sub_assign(&mut self, rhs: Size)
[src]
impl Debug for Size
[src]
Auto Trait Implementations
impl Unpin for Size
impl Sync for Size
impl Send for Size
impl UnwindSafe for Size
impl RefUnwindSafe for Size
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,