scrolling objects and situations in the bottom horizontal pane

This commit is contained in:
Jean Sirmai 2024-05-10 23:14:45 +02:00
parent 62ad9c2e33
commit bb0379bb08
Signed by: jean
GPG Key ID: FB3115C340E057E3
8 changed files with 12 additions and 5 deletions

View File

@ -1,12 +1,11 @@
#include <stdio.h>
#include <gtk-4.0/gtk/gtk.h>
#include "cold.h"
//#include "cold.h"
#include "display.h"
#include "contain.h"
#include "texts.h"
// https://docs.gtk.org/gtk4/section-text-widget.html
GtkWidget *get_edit_rules_page_new(){
GtkWidget *xxx_grid = gtk_grid_new();

View File

@ -1 +1 @@
contain.o: contain.c cold.h display.h contain.h texts.h
contain.o: contain.c display.h contain.h texts.h

View File

@ -36,3 +36,4 @@ GtkWidget *get_edit_discuss_page_new();
GtkWidget *get_edit_help_page_new();
*/

BIN
contain.o

Binary file not shown.

View File

@ -133,17 +133,23 @@ static GtkBox *get_situations_box(){
}
static GtkWidget *get_frame_objects(){
GtkWidget *scroll = gtk_scrolled_window_new ();
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll), GTK_POLICY_AUTOMATIC, GTK_POLICY_NEVER);
GtkWidget *frame_objects = gtk_frame_new (" Objects"); // defines each class of object transparence
gtk_widget_set_size_request (frame_objects, 0, H_STYLES_PANE); // < utile seulement pour la largeur min/max
gtk_frame_set_child (GTK_FRAME (frame_objects), GTK_WIDGET (get_objects_box()));
return frame_objects;
gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (scroll), frame_objects);
return scroll;
}
static GtkWidget *get_frame_situations(){
GtkWidget *scroll = gtk_scrolled_window_new ();
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll), GTK_POLICY_AUTOMATIC, GTK_POLICY_NEVER);
GtkWidget *frame_situations = gtk_frame_new (" Situations"); // facilitates each situation identification
gtk_widget_set_size_request (GTK_WIDGET (frame_situations), 0, H_STYLES_PANE); // < utile seulement pour la largeur min/max
gtk_frame_set_child (GTK_FRAME (frame_situations), GTK_WIDGET (get_situations_box()));
return frame_situations;
gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (scroll), frame_situations);
return scroll;
}
GtkWidget *get_OBJECTS_and_SITUATIONS(){

BIN
display.o

Binary file not shown.

1
hot.c
View File

@ -9,6 +9,7 @@
// https://forge.a-lec.org/gem-graph/gem-graph-client/src/branch/devel/Makefile
// https://docs.gtk.org/gtk4/visual_index.html < widgets gallery
// https://docs.gtk.org/gtk4/section-text-widget.html
// https://docs.gtk.org/gtk4/class.Widget.html#height-for-width-geometry-management
// GTK_ORIENTATION_VERTICAL GTK_ORIENTATION_HORIZONTAL

BIN
myprogram

Binary file not shown.