gem-graph-client/hot.c

29 lines
1.5 KiB
C
Raw Normal View History

2024-04-27 16:16:21 +02:00
#include <stdio.h>
#include <gtk-4.0/gtk/gtk.h>
2024-04-29 23:43:04 +02:00
#include "warm.h"
#include "cold.h"
2024-04-30 18:59:44 +02:00
// https://docs.gtk.org/gtk4/visual_index.html < widgets gallery
2024-04-30 07:17:00 +02:00
static GtkWidget *get_frame_objects(){
GtkWidget *frame_objects = gtk_frame_new ("Objects"); // define each class of object transparence
gtk_widget_set_size_request (frame_objects, 100, H_STYLES_PANE); // < utile seulement pour la largeur min/max
return frame_objects;
2024-05-06 17:14:52 +02:00
}
2024-04-30 13:06:46 +02:00
static GtkWidget *get_frame_situations(){
GtkWidget *frame_situations = gtk_frame_new ("Situations"); // facilitate each situation identification
gtk_widget_set_size_request (frame_situations, 100, H_STYLES_PANE); // < utile seulement pour la largeur min/max
return frame_situations;
}
2024-04-30 18:59:44 +02:00
GtkWidget *get_objects_and_situations_horizontal_pane(){
2024-05-06 12:45:24 +02:00
GtkWidget *objects_and_situations_horizontal_pane = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
GtkWidget *frame_situations = gtk_frame_new ("Situations"); // facilitate each situation identification
gtk_widget_set_size_request (objects_and_situations_horizontal_pane, W_GL_AREA, H_STYLES_PANE);
gtk_widget_set_size_request (frame_situations, 100, H_STYLES_PANE); // < utile seulement pour la largeur min/max
gtk_paned_set_start_child (GTK_PANED(objects_and_situations_horizontal_pane), GTK_WIDGET (get_frame_objects()));
gtk_paned_set_end_child (GTK_PANED(objects_and_situations_horizontal_pane), GTK_WIDGET (get_frame_situations()));
return objects_and_situations_horizontal_pane;
}