#[repr(C)]pub struct OhosImageRect {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}Expand description
@brief Defines the information about an image rectangle.
@since 10 @version 2.0
Fields§
§x: i32X coordinate of the rectangle.
y: i32Y coordinate of the rectangle.
width: i32Width of the rectangle, in pixels.
height: i32Height of the rectangle, in pixels.
Trait Implementations§
Source§impl Clone for OhosImageRect
impl Clone for OhosImageRect
Source§fn clone(&self) -> OhosImageRect
fn clone(&self) -> OhosImageRect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OhosImageRect
Auto Trait Implementations§
impl Freeze for OhosImageRect
impl RefUnwindSafe for OhosImageRect
impl Send for OhosImageRect
impl Sync for OhosImageRect
impl Unpin for OhosImageRect
impl UnsafeUnpin for OhosImageRect
impl UnwindSafe for OhosImageRect
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