ARect

#include <rect.h>

Rectangular window area.

Summary

This is the NDK equivalent of the android.graphics.Rect class in Java. It is used with 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.

Public attributes

bottom
int32_t
Maximum Y coordinate of the rectangle.
left
int32_t
Minimum X coordinate of the rectangle.
right
int32_t
Maximum X coordinate of the rectangle.
top
int32_t
Minimum Y coordinate of the rectangle.

Public attributes

bottom

int32_t ARect::bottom

Maximum Y coordinate of the rectangle.

left

int32_t ARect::left

Minimum X coordinate of the rectangle.

right

int32_t ARect::right

Maximum X coordinate of the rectangle.

top

int32_t ARect::top

Minimum Y coordinate of the rectangle.