From a4ccabcf6deaeb42c65d5d6d84ba0ceff8003876 Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Wed, 20 Feb 2013 07:43:20 -0600 Subject: 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 Message-id: 1361367806-4599-4-git-send-email-aliguori@us.ibm.com --- include/ui/console.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/ui') 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 -- cgit v1.2.3-55-g7522