1e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian/*
2e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian * Copyright (C) 2010 The Android Open Source Project
3e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian *
4e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian * Licensed under the Apache License, Version 2.0 (the "License");
5e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian * you may not use this file except in compliance with the License.
6e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian * You may obtain a copy of the License at
7e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian *
8e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian *      http://www.apache.org/licenses/LICENSE-2.0
9e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian *
10e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian * Unless required by applicable law or agreed to in writing, software
11e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian * distributed under the License is distributed on an "AS IS" BASIS,
12e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian * See the License for the specific language governing permissions and
14e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian * limitations under the License.
15e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian */
16e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian
17bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine/**
18bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine * @addtogroup NativeActivity Native Activity
19bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine * @{
20bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine */
21bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine
22bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine/**
23bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine * @file rect.h
24bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine */
25e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian
26e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian#ifndef ANDROID_RECT_H
27e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian#define ANDROID_RECT_H
28e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian
29e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian#include <stdint.h>
30e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian
31e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian#ifdef __cplusplus
32e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopianextern "C" {
33e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian#endif
34e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian
35bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine/**
36bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine * {@link ARect} is a struct that represents a rectangular window area.
37bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine *
38bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine * It is used with {@link
39bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine * ANativeActivityCallbacks::onContentRectChanged} event callback and
40bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine * ANativeWindow_lock() function.
41bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine */
42e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopiantypedef struct ARect {
43e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian#ifdef __cplusplus
44e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian    typedef int32_t value_type;
45e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian#endif
46bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine    /** left position */
47e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian    int32_t left;
48bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine    /** top position */
49e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian    int32_t top;
50bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine    /** left position */
51e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian    int32_t right;
52bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine    /** bottom position */
53e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian    int32_t bottom;
54e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian} ARect;
55e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian
56e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian#ifdef __cplusplus
57e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian};
58e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian#endif
59e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian
60e1c61d3cc8458ce9a15d8109f728e60f5248939dMathias Agopian#endif // ANDROID_RECT_H
61bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine
62bf6d5e012cd9b15568c2351831f3349cf564bf18Johan Euphrosine/** @} */
63