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.