#include #include int main (int argc, char **argv) { #if 0 GtkWidget *window, *box, *image; GameGraphic *port; GdkPixbuf *pixbuf; #endif GameGraphic *graphic; GameGame *game; gtk_init (&argc, &argv); game = game_game_new ("Test", "0.0", NULL, NULL); graphic = GAME_GRAPHIC (game_game_add_object (game, GAME_TYPE_TEXT, "width", 1.0, "height", 1.0, "text", "Hello World", NULL)); #if 0 window = gtk_window_new (GTK_WINDOW_TOPLEVEL); box = gtk_vbox_new (FALSE, TRUE); port = game_viewport_new_full (graphic, 1, 1, 32); image = game_gnome_board_new (port); gtk_container_add (GTK_CONTAINER (box), image); #if 1 port = game_viewport_new_full (graphic, 0.5, 0.5, 32); image = game_gnome_board_new (port); gtk_container_add (GTK_CONTAINER (box), image); port = game_viewport_new_full (graphic, 0.5, 0.5, 32); game_viewport_scroll_to (GAME_VIEWPORT (port), 0.0, 0.5); image = game_gnome_board_new (port); gtk_container_add (GTK_CONTAINER (box), image); #endif g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); gtk_container_add (GTK_CONTAINER (window), box); gtk_widget_show_all (window); #endif gtk_main (); return 0; }