include/util.h File Reference include/util.h utilities header #include <stdbool.h>#include <stddef.h>#include <gtk-4.0/gtk/gtk.h>#include "../include/fsm.h" Classes struct pile phantom documentation used to test the functioning of doxygen struct elem phantom documentation used to test the functioning of doxygen struct dblist phantom documentation used to test the functioning of doxygen struct slist phantom documentation used to test the functioning of doxygen Typedefs typedef struct pile pile phantom documentation used to test the functioning of doxygen typedef struct elem elem phantom documentation used to test the functioning of doxygen typedef struct slist slist phantom documentation used to test the functioning of doxygen Functions char * util_read_file (char *filename) char * util_concat (const char *str,...) void util_pile_clear (pile **) void util_pile_view (pile *) int util_pile_push (pile **, int) int util_pile_pop (pile **) int util_pile_length (pile *p) void util_list_2x2_init (dblist *l) void util_list_2x2_clear (dblist *l) void util_list_2x2_view (dblist l) int util_list_2x2_push_back (dblist *l, int val) int util_list_2x2_push_front (dblist *l, int val) int util_list_2x2_pop_back (dblist *l) int util_list_2x2_pop_front (dblist *l) int util_list_2x2_length (dblist l) void util_sorted_list_clear (slist **sl) void util_sorted_list_view (slist *sl) int util_sorted_list_insert (slist **sl, int val) int util_sorted_list_pop (slist **sl) int util_sorted_list_length (slist *sl) void util_trigger_test () void util_test_pile () void util_test_double_list () void util_test_sorted_list () long util_gl_get_stack (void *container_widget) Look for stack entry and returns stack_id. long util_gl_is_util_ready (void *container_widget) bool util_gl_init_stack (void *container_widget, GError *error_buffer) Look for stack entry and initializes OpenGL for it. bool util_gl_shutdown_stack (void *container_widget, GError *error_buffer) Look for stack entry and shutdowns OpenGL for it. void util_gl_clean_stack_index (void) phantom documentation used to test the functioning of doxygen bool util_gl_render_stack (GtkWidget *container_widget) Look for stack entry and triggers OpenGL for drawing. bool util_gl_update_axis (GtkWidget *container_widget, int axis, int value) Look for stack entry and triggers OpenGL for drawing. void util_gl_shutdown_all_stacks (void) Look for every stack entry and shutdowns OpenGL for it. GtkWidget * create_axis_slider (int axis) Creates a slider widget.
Detailed Description utilities header This file is part of Gem-graph.
Function Documentation
create_axis_slider() create_axis_sliderutil.h util.hcreate_axis_slider GtkWidget * create_axis_slider (int axis) Creates a slider widget. Parameters axis the axis we're building a label for
Returns GtkWidget*: pointer to the new widget
util_gl_get_stack() util_gl_get_stackutil.h util.hutil_gl_get_stack long util_gl_get_stack (void * container_widget) Look for stack entry and returns stack_id. Parameters container_widget generally the GtkBox that contains the GLArea
Returns stack_id
util_gl_init_stack() util_gl_init_stackutil.h util.hutil_gl_init_stack bool util_gl_init_stack (void * container_widget, GError * error_buffer) Look for stack entry and initializes OpenGL for it. Parameters container_widget generally the GtkBox that contains the GLArea error_buffer phantom documentation used to test the functioning of doxygen
Returns bool: true if success
util_gl_render_stack() util_gl_render_stackutil.h util.hutil_gl_render_stack bool util_gl_render_stack (GtkWidget * container_widget) Look for stack entry and triggers OpenGL for drawing. Parameters container_widget generally the GtkBox that contains the GLArea
Returns bool: true if success
util_gl_shutdown_all_stacks() util_gl_shutdown_all_stacksutil.h util.hutil_gl_shutdown_all_stacks void util_gl_shutdown_all_stacks (void ) Look for every stack entry and shutdowns OpenGL for it. returns true if success ? TODO why not bool ?
util_gl_shutdown_stack() util_gl_shutdown_stackutil.h util.hutil_gl_shutdown_stack bool util_gl_shutdown_stack (void * container_widget, GError * error_buffer) Look for stack entry and shutdowns OpenGL for it. Parameters container_widget generally the GtkBox that contains the GLArea error_buffer phantom documentation used to test the functioning of doxygen
Returns bool: true if success
util_gl_update_axis() util_gl_update_axisutil.h util.hutil_gl_update_axis bool util_gl_update_axis (GtkWidget * container_widget, int axis, int value) Look for stack entry and triggers OpenGL for drawing. Parameters container_widget generally the GtkBox that contains the GLArea axis phantom documentation used to test the functioning of doxygen value phantom documentation used to test the functioning of doxygen
Returns bool: true if success