aboutsummaryrefslogtreecommitdiffstats
path: root/android/skin/window.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-02-10 15:43:59 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-02-10 15:43:59 -0800
commitc27f813900a3c114562efbb8df1065e94766fc48 (patch)
treed95919283707dcab61009e27007374a745c9541e /android/skin/window.h
parent0852ad57fa372f9b2854e4df685eaba8d8ef6790 (diff)
downloadexternal_qemu-c27f813900a3c114562efbb8df1065e94766fc48.zip
external_qemu-c27f813900a3c114562efbb8df1065e94766fc48.tar.gz
external_qemu-c27f813900a3c114562efbb8df1065e94766fc48.tar.bz2
auto import from //branches/cupcake/...@130745
Diffstat (limited to 'android/skin/window.h')
-rw-r--r--android/skin/window.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/android/skin/window.h b/android/skin/window.h
new file mode 100644
index 0000000..3e92e40
--- /dev/null
+++ b/android/skin/window.h
@@ -0,0 +1,65 @@
+/* Copyright (C) 2007-2008 The Android Open Source Project
+**
+** This software is licensed under the terms of the GNU General Public
+** License version 2, as published by the Free Software Foundation, and
+** may be copied, distributed, and modified under those terms.
+**
+** This program is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+** GNU General Public License for more details.
+*/
+#ifndef _SKIN_WINDOW_H
+#define _SKIN_WINDOW_H
+
+#include "android/skin/file.h"
+#include "android/skin/trackball.h"
+#include <SDL.h>
+
+typedef struct SkinWindow SkinWindow;
+
+extern SkinWindow* skin_window_create( SkinLayout* layout,
+ int x,
+ int y,
+ double scale,
+ int no_display );
+
+extern void skin_window_enable_touch( SkinWindow* window, int enabled );
+extern void skin_window_enable_trackball( SkinWindow* window, int enabled );
+extern void skin_window_enable_dpad( SkinWindow* window, int enabled );
+extern void skin_window_enable_qwerty( SkinWindow* window, int enabled );
+
+extern int skin_window_reset ( SkinWindow* window, SkinLayout* layout );
+extern void skin_window_free ( SkinWindow* window );
+extern void skin_window_redraw( SkinWindow* window, SkinRect* rect );
+extern void skin_window_process_event( SkinWindow* window, SDL_Event* ev );
+
+extern void skin_window_set_onion( SkinWindow* window,
+ SkinImage* onion,
+ SkinRotation rotation,
+ int alpha );
+
+extern void skin_window_set_scale( SkinWindow* window,
+ double scale );
+
+extern void skin_window_set_title( SkinWindow* window,
+ const char* title );
+
+extern void skin_window_set_trackball( SkinWindow* window, SkinTrackBall* ball );
+extern void skin_window_show_trackball( SkinWindow* window, int enable );
+extern void skin_window_toggle_fullscreen( SkinWindow* window );
+
+/* change the brightness of the emulator LCD screen. 'brightness' will be clamped to 0..255 */
+extern void skin_window_set_lcd_brightness( SkinWindow* window, int brightness );
+
+typedef struct {
+ int width;
+ int height;
+ SkinRotation rotation;
+ void* data;
+} ADisplayInfo;
+
+extern void skin_window_get_display( SkinWindow* window, ADisplayInfo *info );
+extern void skin_window_update_display( SkinWindow* window, int x, int y, int w, int h );
+
+#endif /* _SKIN_WINDOW_H */