Struct tiny_skia_path::IntSize
source · pub struct IntSize { /* private fields */ }
Expand description
Implementations§
source§impl IntSize
impl IntSize
sourcepub fn from_wh(width: u32, height: u32) -> Option<Self>
pub fn from_wh(width: u32, height: u32) -> Option<Self>
Creates a new IntSize
from width and height.
sourcepub fn to_int_rect(&self, x: i32, y: i32) -> IntRect
pub fn to_int_rect(&self, x: i32, y: i32) -> IntRect
Converts the current size into a IntRect
at a provided position.
sourcepub fn to_screen_int_rect(&self, x: u32, y: u32) -> ScreenIntRect
pub fn to_screen_int_rect(&self, x: u32, y: u32) -> ScreenIntRect
Converts the current size into a IntRect
at a provided position.
Trait Implementations§
source§impl PartialEq<IntSize> for IntSize
impl PartialEq<IntSize> for IntSize
impl Copy for IntSize
impl StructuralPartialEq for IntSize
Auto Trait Implementations§
impl RefUnwindSafe for IntSize
impl Send for IntSize
impl Sync for IntSize
impl Unpin for IntSize
impl UnwindSafe for IntSize
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more