[][src]Struct skia_safe::Size

#[repr(C)]
pub struct Size {
    pub width: scalar,
    pub height: scalar,
}

Fields

width: scalarheight: 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 Debug for Size[src]

impl Sub<Size> for Point[src]

type Output = Self

The resulting type after applying the - operator.

impl Add<Size> for Point[src]

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<Size> for Point[src]

impl SubAssign<Size> for Point[src]

Auto Trait Implementations

impl Send for Size

impl Unpin for Size

impl Sync for Size

impl RefUnwindSafe for Size

impl UnwindSafe for Size

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]