summaryrefslogtreecommitdiff
path: root/include/ui
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2013-02-20 07:43:20 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2013-02-21 16:34:48 -0600
commita4ccabcf6deaeb42c65d5d6d84ba0ceff8003876 (patch)
tree026ef8d21f381dd0aeeab50a84ba166d75fdc851 /include/ui
parentd82831dbc5471d72785c49b33710436af49bf9ca (diff)
downloadqemu-a4ccabcf6deaeb42c65d5d6d84ba0ceff8003876.tar.gz
ui: add basic GTK gui (v5)
This is minimalistic and just contains the basic widget infrastructure. The GUI consists of a menu and a GtkNotebook. To start with, the notebook has its tabs hidden which provides a UI that looks very similar to SDL with the exception of the menu bar. The menu bar allows a user to toggle the visibility of the tabs. Cairo is used for rendering. I used gtk-vnc as a reference. gtk-vnc solves the same basic problems as QEMU since it was originally written as a remote display for QEMU. So for the most part, the approach to rendering and keyboard handling should be pretty solid for GTK. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-id: 1361367806-4599-4-git-send-email-aliguori@us.ibm.com
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/console.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ui/console.h b/include/ui/console.h
index 694994b29f..c42bca6efe 100644
--- a/include/ui/console.h
+++ b/include/ui/console.h
@@ -487,4 +487,8 @@ void curses_display_init(DisplayState *ds, int full_screen);
int index_from_key(const char *key);
int index_from_keycode(int code);
+/* gtk.c */
+void early_gtk_display_init(void);
+void gtk_display_init(DisplayState *ds);
+
#endif