28 lines
1.1 KiB
C
28 lines
1.1 KiB
C
#include <stdio.h>
|
|
#include <gtk-4.0/gtk/gtk.h>
|
|
#include "hot.h"
|
|
#include "warm.h"
|
|
#include "cold.h"
|
|
|
|
GtkWidget *get_space_page_new(){
|
|
GtkWidget *space_grid = gtk_grid_new();
|
|
|
|
GtkDrawingArea *surface = GTK_DRAWING_AREA(gtk_drawing_area_new ());
|
|
gtk_drawing_area_set_content_width (surface, 640);
|
|
gtk_drawing_area_set_content_height (surface, 600);
|
|
gtk_grid_attach (GTK_GRID(space_grid), GTK_WIDGET(surface), 0, 0, 1, 1);
|
|
|
|
GtkBox *XYZ_box = GTK_BOX(gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2)); // spacing = 2
|
|
gtk_box_append (XYZ_box, gtk_button_new_with_label ("X"));
|
|
gtk_box_append (XYZ_box, gtk_button_new_with_label ("Y"));
|
|
gtk_box_append (XYZ_box, gtk_button_new_with_label ("Z"));
|
|
gtk_grid_attach (GTK_GRID(space_grid), GTK_WIDGET(XYZ_box), 1, 0, 1, 1);
|
|
|
|
gtk_grid_attach (GTK_GRID(space_grid), gtk_button_new_with_label ("RUN / STOP (and all that stuff...)"), 0, 1, 2, 1);
|
|
gtk_grid_attach (GTK_GRID(space_grid), gtk_button_new_with_label ("Objects / Situations (transparences)"), 0, 2, 2, 1);
|
|
gtk_grid_attach (GTK_GRID(space_grid), gtk_button_new_with_label ("camera (zoom...)"), 0, 3, 2, 1);
|
|
return space_grid;
|
|
}
|
|
|
|
|