[][src]Struct skia_safe::ISize

#[repr(C)]
pub struct ISize {
    pub width: i32,
    pub height: i32,
}

Fields

width: i32height: i32

Methods

impl ISize[src]

pub const fn new(w: i32, h: i32) -> ISize[src]

pub fn new_empty() -> ISize[src]

pub fn set(&mut self, w: i32, h: i32)[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: i32, h: i32) -> bool[src]

Trait Implementations

impl Eq for ISize[src]

impl Default for ISize[src]

impl Clone for ISize[src]

impl PartialEq<ISize> for ISize[src]

impl From<ISize> for Rect[src]

impl From<(i32, i32)> for ISize[src]

impl From<ISize> for Size[src]

impl Copy for ISize[src]

impl Add<ISize> for IPoint[src]

type Output = IPoint

The resulting type after applying the + operator.

impl Sub<ISize> for IPoint[src]

type Output = IPoint

The resulting type after applying the - operator.

impl AddAssign<ISize> for IPoint[src]

impl SubAssign<ISize> for IPoint[src]

impl Debug for ISize[src]

Auto Trait Implementations

impl Send for ISize

impl Unpin for ISize

impl Sync for ISize

impl UnwindSafe for ISize

impl RefUnwindSafe for ISize

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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