[−][src]Struct skia_safe::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]
rect: impl AsRef<Rect>,
left_rad: scalar,
top_rad: scalar,
right_rad: scalar,
bottom_rad: scalar
) -> Self
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]
&mut self,
rect: impl AsRef<Rect>,
x_rad: scalar,
y_rad: scalar
)
pub fn set_nine_patch(
&mut self,
rect: impl AsRef<Rect>,
left_rad: scalar,
top_rad: scalar,
right_rad: scalar,
bottom_rad: scalar
)[src]
&mut self,
rect: impl AsRef<Rect>,
left_rad: scalar,
top_rad: scalar,
right_rad: scalar,
bottom_rad: scalar
)
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 Default for RRect[src]
impl Clone for RRect[src]
fn clone(&self) -> RRect[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq<RRect> for RRect[src]
fn eq(&self, rhs: &Self) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Copy for RRect[src]
impl AsRef<RRect> for RRect[src]
Auto Trait Implementations
impl Unpin for RRect
impl Send for RRect
impl Sync for RRect
impl RefUnwindSafe for RRect
impl UnwindSafe for RRect
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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> 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,