pub struct PictureSize { /* private fields */ }Expand description
The size in pixels of a picture text and layouts are placed on. Never empty, and within
the largest frame the engine draws (alpha2_media::MAX_FRAME_DIMENSION,
alpha2_media::MAX_FRAME_PIXELS).
Implementations§
Source§impl PictureSize
impl PictureSize
Sourcepub const fn new(width: u32, height: u32) -> Result<Self, PictureSizeError>
pub const fn new(width: u32, height: u32) -> Result<Self, PictureSizeError>
A picture of width by height pixels.
§Errors
Returns PictureSizeError for an empty side or a size larger than any frame.
Trait Implementations§
Source§impl Clone for PictureSize
impl Clone for PictureSize
impl Copy for PictureSize
Source§impl Debug for PictureSize
impl Debug for PictureSize
impl Eq for PictureSize
Source§impl Hash for PictureSize
impl Hash for PictureSize
Source§impl PartialEq for PictureSize
impl PartialEq for PictureSize
impl StructuralPartialEq for PictureSize
Auto Trait Implementations§
impl Freeze for PictureSize
impl RefUnwindSafe for PictureSize
impl Send for PictureSize
impl Sync for PictureSize
impl Unpin for PictureSize
impl UnsafeUnpin for PictureSize
impl UnwindSafe for PictureSize
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