blob: b3f47b2d3d2fed0ce5d32672284a7c50f4b7b7f9 [file] [log] [blame]
Dianne Hackborn8b49bd12010-06-30 13:56:17 -07001/*
2 * Copyright (C) 2010 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17
18#ifndef ANDROID_NATIVE_WINDOW_H
19#define ANDROID_NATIVE_WINDOW_H
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25struct ANativeWindow;
26typedef struct ANativeWindow ANativeWindow;
27
Dianne Hackborn54a181b2010-06-30 18:35:14 -070028/*
29 * Return the current width in pixels of the window surface. Returns a
30 * negative value on error.
31 */
32int32_t ANativeWindow_getWidth(ANativeWindow* window);
33
34/*
35 * Return the current height in pixels of the window surface. Returns a
36 * negative value on error.
37 */
38int32_t ANativeWindow_getHeight(ANativeWindow* window);
39
40/*
41 * Return the current pixel format of the window surface. Returns a
42 * negative value on error.
43 */
44int32_t ANativeWindow_getFormat(ANativeWindow* window);
Dianne Hackborn8b49bd12010-06-30 13:56:17 -070045
46#ifdef __cplusplus
47};
48#endif
49
50#endif // ANDROID_NATIVE_WINDOW_H