[][src]Struct skia_safe::rrect::RRect

#[repr(transparent)]
pub struct RRect(_);

Methods

impl RRect[src]

pub fn new() -> Self[src]

pub fn get_type(&self) -> Type[src]

pub fn is_empty(&self) -> bool[src]

pub fn is_rect(&self) -> bool[src]

pub fn is_oval(&self) -> bool[src]

pub fn is_simple(&self) -> bool[src]

pub fn is_nine_patch(&self) -> bool[src]

pub fn is_complex(&self) -> bool[src]

pub fn width(&self) -> scalar[src]

pub fn height(&self) -> scalar[src]

pub fn simple_radii(&self) -> Vector[src]

pub fn set_empty(&mut self)[src]

pub fn set_rect(&mut self, rect: impl AsRef<Rect>)[src]

pub fn new_empty() -> Self[src]

pub fn new_rect(rect: impl AsRef<Rect>) -> Self[src]

pub fn new_oval(oval: impl AsRef<Rect>) -> Self[src]

pub fn new_rect_xy(rect: impl AsRef<Rect>, x_rad: scalar, y_rad: scalar) -> Self[src]

pub fn new_nine_patch(
    rect: impl AsRef<Rect>,
    left_rad: scalar,
    top_rad: scalar,
    right_rad: scalar,
    bottom_rad: scalar
) -> Self
[src]

pub fn new_rect_radii(rect: impl AsRef<Rect>, radii: &[Vector; 4]) -> Self[src]

pub fn set_oval(&mut self, oval: impl AsRef<Rect>)[src]

pub fn set_rect_xy(
    &mut self,
    rect: impl AsRef<Rect>,
    x_rad: scalar,
    y_rad: scalar
)
[src]

pub fn set_nine_patch(
    &mut self,
    rect: impl AsRef<Rect>,
    left_rad: scalar,
    top_rad: scalar,
    right_rad: scalar,
    bottom_rad: scalar
)
[src]

pub fn set_rect_radii(&mut self, rect: impl AsRef<Rect>, radii: &[Vector; 4])[src]

pub fn rect(&self) -> &Rect[src]

pub fn radii(&self, corner: Corner) -> Vector[src]

pub fn bounds(&self) -> &Rect[src]

pub fn inset(&mut self, delta: impl Into<Vector>)[src]

pub fn with_inset(&self, delta: impl Into<Vector>) -> Self[src]

pub fn outset(&mut self, delta: impl Into<Vector>)[src]

pub fn with_outset(&self, delta: impl Into<Vector>) -> Self[src]

pub fn offset(&mut self, delta: impl Into<Vector>)[src]

pub fn with_offset(&self, delta: impl Into<Vector>) -> Self[src]

pub fn contains(&self, rect: impl AsRef<Rect>) -> bool[src]

pub fn is_valid(&self) -> bool[src]

pub const SIZE_IN_MEMORY: usize[src]

pub fn write_to_memory(&self, buffer: &mut Vec<u8>)[src]

pub fn read_from_memory(&mut self, buffer: &[u8]) -> usize[src]

#[must_use] pub fn transform(&self, matrix: &Matrix) -> Option<Self>[src]

pub fn dump(&self, as_hex: impl Into<Option<bool>>)[src]

pub fn dump_hex(&self)[src]

Trait Implementations

impl AsRef<RRect> for RRect[src]

impl Default for RRect[src]

impl Clone for RRect[src]

impl PartialEq<RRect> for RRect[src]

impl Copy for RRect[src]

Auto Trait Implementations

impl Send for RRect

impl Unpin for RRect

impl Sync for RRect

impl RefUnwindSafe for RRect

impl UnwindSafe for RRect

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]