ARect
矩形窗口区域。
摘要
这是 NDK 中与 Java 的 android.graphics.Rect 类对应的结构体。它与 ANativeActivityCallbacks::onContentRectChanged 事件回调和 ANativeWindow_lock() 函数一起使用。
在有效的 ARect 中,left <= right 且 top <= bottom。left=0、top=10、right=1、bottom=11 的 ARect 只包含一个像素,坐标为 x=0, y=10。
公共属性 |
|
---|---|
bottom
|
int32_t
矩形的 Y 坐标最大值。
|
left
|
int32_t
矩形的 X 坐标最小值。
|
right
|
int32_t
矩形的 X 坐标最大值。
|
top
|
int32_t
矩形的 Y 坐标最小值。
|
公共属性
bottom
在android/rect.h
中声明
int32_t ARect::bottom
矩形的 Y 坐标最大值。
left
在android/rect.h
中声明
int32_t ARect::left
矩形的 X 坐标最小值。
right
在android/rect.h
中声明
int32_t ARect::right
矩形的 X 坐标最大值。
top
在android/rect.h
中声明
int32_t ARect::top
矩形的 Y 坐标最小值。