#[repr(C)]pub struct ARect {
pub left: i32,
pub top: i32,
pub right: i32,
pub bottom: i32,
}
Expand description
Rectangular window area.
This is the NDK equivalent of the android.graphics.Rect class in Java. It is used with {@link ANativeActivityCallbacks::onContentRectChanged} event callback and the ANativeWindow_lock() function.
In a valid ARect, left <= right and top <= bottom. ARect with left=0, top=10, right=1, bottom=11 contains only one pixel at x=0, y=10.
Fields§
§left: i32
Minimum X coordinate of the rectangle.
top: i32
Minimum Y coordinate of the rectangle.
right: i32
Maximum X coordinate of the rectangle.
bottom: i32
Maximum Y coordinate of the rectangle.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ARect
impl RefUnwindSafe for ARect
impl Send for ARect
impl Sync for ARect
impl Unpin for ARect
impl UnwindSafe for ARect
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