scrolling objects and situations in the bottom horizontal pane
This commit is contained in:
parent
62ad9c2e33
commit
bb0379bb08
|
@ -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();
|
||||
|
|
|
@ -1 +1 @@
|
|||
contain.o: contain.c cold.h display.h contain.h texts.h
|
||||
contain.o: contain.c display.h contain.h texts.h
|
||||
|
|
|
@ -36,3 +36,4 @@ GtkWidget *get_edit_discuss_page_new();
|
|||
GtkWidget *get_edit_help_page_new();
|
||||
*/
|
||||
|
||||
|
||||
|
|
10
display.c
10
display.c
|
@ -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(){
|
||||
|
|
1
hot.c
1
hot.c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue