summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'include/android/rect.h')
-rw-r--r--include/android/rect.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/android/rect.h b/include/android/rect.h
index bcd42a99e..80741c044 100644
--- a/include/android/rect.h
+++ b/include/android/rect.h
@@ -14,6 +14,14 @@
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 16
17/**
18 * @addtogroup NativeActivity Native Activity
19 * @{
20 */
21
22/**
23 * @file rect.h
24 */
17 25
18#ifndef ANDROID_RECT_H 26#ifndef ANDROID_RECT_H
19#define ANDROID_RECT_H 27#define ANDROID_RECT_H
@@ -24,13 +32,24 @@
24extern "C" { 32extern "C" {
25#endif 33#endif
26 34
35/**
36 * {@link ARect} is a struct that represents a rectangular window area.
37 *
38 * It is used with {@link
39 * ANativeActivityCallbacks::onContentRectChanged} event callback and
40 * ANativeWindow_lock() function.
41 */
27typedef struct ARect { 42typedef struct ARect {
28#ifdef __cplusplus 43#ifdef __cplusplus
29 typedef int32_t value_type; 44 typedef int32_t value_type;
30#endif 45#endif
46 /** left position */
31 int32_t left; 47 int32_t left;
48 /** top position */
32 int32_t top; 49 int32_t top;
50 /** left position */
33 int32_t right; 51 int32_t right;
52 /** bottom position */
34 int32_t bottom; 53 int32_t bottom;
35} ARect; 54} ARect;
36 55
@@ -39,3 +58,5 @@ typedef struct ARect {
39#endif 58#endif
40 59
41#endif // ANDROID_RECT_H 60#endif // ANDROID_RECT_H
61
62/** @} */