include/util.h File Referenceinclude/util.hutilities header #include <stdbool.h>#include <stddef.h>#include <gtk-4.0/gtk/gtk.h>#include "../include/fsm.h"Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:Classes struct pilephantom documentation struct elemsimplest element of a double-chained list struct dblistrequired to init the empty list struct slistphantom documentation Typedefs typedef struct pile pilephantom documentation typedef struct elem elemsimplest element of a double-chained list typedef struct slist slistphantom documentation Functions char * util_read_file (char *filename)reads a file from filename into a provided buffer char * util_concat (const char *str,...)/home/jean/Gem-Graph/gem-graph-client/src/util/strings_op.c:63: warning: unable to resolve reference to '...' for ref command TODO (...ref desactivated) @ ref https://sourceware.org/glibc/manual/latest/html_mono/libc.html#Variadic-Prototypes 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)Phantom documentation. void util_list_2x2_clear (dblist *l)Phantom documentation. void util_list_2x2_view (dblist l)Phantom documentation. int util_list_2x2_push_back (dblist *l, int val)Phantom documentation. int util_list_2x2_push_front (dblist *l, int val)Phantom documentation. int util_list_2x2_pop_back (dblist *l)Phantom documentation. int util_list_2x2_pop_front (dblist *l)Phantom documentation. int util_list_2x2_length (dblist l)Phantom documentation. 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 ()simplifying utilities tests void util_test_pile ()sample test void util_test_double_list ()sample test void util_test_sorted_list ()sample test long util_gl_get_stack (void *container_widget)Look for stack entry and returns stack_id. 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 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 Descriptionutilities header This file is part of Gem-graph. Function Documentationcreate_axis_slider()create_axis_sliderutil.hutil.hcreate_axis_sliderGtkWidget * create_axis_slider (int axis)Creates a slider widget.
Parameters
axismeaning which axis we're building (for label)
ReturnsGtkWidget* pointer to the new widget
Here is the call graph for this function:util_concat()util_concatutil.hutil.hutil_concatchar * util_concat (const char * str, ...)/home/jean/Gem-Graph/gem-graph-client/src/util/strings_op.c:63: warning: unable to resolve reference to '...' for ref command TODO (...ref desactivated) @ ref https://sourceware.org/glibc/manual/latest/html_mono/libc.html#Variadic-Prototypes See also(in glibc/manual) > ellipsis (‘…’) A.2.2.2 Receiving the Argument Valueswidget_get_selected_rule_conditions_list_btt() widget_get_page_measure() util_trigger_test() on_topbar_right_measure_clicked() on_toggle_state_rules_data() fsm_set_state_rules_data() fsm_set_exec_edit() fsm_add_result()
Parameters
*str...
Returns*
Here is the caller graph for this function:util_gl_get_stack()util_gl_get_stackutil.hutil.hutil_gl_get_stacklong util_gl_get_stack (void * container_widget)Look for stack entry and returns stack_id.
Parameters
*container_widget
Returnsstack_id util_gl_init_stack()util_gl_init_stackutil.hutil.hutil_gl_init_stackbool util_gl_init_stack (void * container_widget, GError * error_buffer)Look for stack entry and initializes OpenGL for it.
Parameters
*container_widget*error_buffer
Returnssuccess
Here is the call graph for this function:
Here is the caller graph for this function:util_gl_render_stack()util_gl_render_stackutil.hutil.hutil_gl_render_stackbool util_gl_render_stack (GtkWidget * container_widget)Look for stack entry and triggers OpenGL for drawing.
Parameters
container_widgetgenerally the GtkBox that contains the GLArea
Returnsbool: true if success
Here is the call graph for this function:
Here is the caller graph for this function:util_gl_shutdown_all_stacks()util_gl_shutdown_all_stacksutil.hutil.hutil_gl_shutdown_all_stacksvoid util_gl_shutdown_all_stacks (void )Look for every stack entry and shutdowns OpenGL for it. DO NOT DOCUMENT param void < argument 'void' of command @ param is not foundDO NOT DOCUMENT returns bool true if success < does not return anything
Here is the call graph for this function:util_gl_shutdown_stack()util_gl_shutdown_stackutil.hutil.hutil_gl_shutdown_stackbool util_gl_shutdown_stack (void * container_widget, GError * error_buffer)Look for stack entry and shutdowns OpenGL for it.
Parameters
*container_widget*error_buffer
Returnssuccess
Here is the call graph for this function:
Here is the caller graph for this function:util_gl_update_axis()util_gl_update_axisutil.hutil.hutil_gl_update_axisbool util_gl_update_axis (GtkWidget * container_widget, int axis, int value)Look for stack entry and triggers OpenGL for drawing.
Parameters
*container_widgetaxisvalue
Returnsbool: true if success
Here is the caller graph for this function:util_list_2x2_clear()util_list_2x2_clearutil.hutil.hutil_list_2x2_clearvoid util_list_2x2_clear (dblist * l)Phantom documentation.
Parameters
*l
Here is the caller graph for this function:util_list_2x2_init()util_list_2x2_initutil.hutil.hutil_list_2x2_initvoid util_list_2x2_init (dblist * l)Phantom documentation.
Parameters
*l
Here is the caller graph for this function:util_list_2x2_length()util_list_2x2_lengthutil.hutil.hutil_list_2x2_lengthint util_list_2x2_length (dblist l)Phantom documentation.
Parameters
*l
Returnsint
Here is the caller graph for this function:util_list_2x2_pop_back()util_list_2x2_pop_backutil.hutil.hutil_list_2x2_pop_backint util_list_2x2_pop_back (dblist * l)Phantom documentation.
Parameters
*l
Returnsint
Here is the caller graph for this function:util_list_2x2_pop_front()util_list_2x2_pop_frontutil.hutil.hutil_list_2x2_pop_frontint util_list_2x2_pop_front (dblist * l)Phantom documentation.
Parameters
*l
Returnsint util_list_2x2_push_back()util_list_2x2_push_backutil.hutil.hutil_list_2x2_push_backint util_list_2x2_push_back (dblist * l, int val)Phantom documentation.
Parameters
*lval
Returnsint
Here is the caller graph for this function:util_list_2x2_push_front()util_list_2x2_push_frontutil.hutil.hutil_list_2x2_push_frontint util_list_2x2_push_front (dblist * l, int val)Phantom documentation.
Parameters
*lval
Returnsint
Here is the caller graph for this function:util_list_2x2_view()util_list_2x2_viewutil.hutil.hutil_list_2x2_viewvoid util_list_2x2_view (dblist l)Phantom documentation.
Parameters
*l
Here is the call graph for this function:
Here is the caller graph for this function:util_pile_clear()util_pile_clearutil.hutil.hutil_pile_clearvoid util_pile_clear (pile ** p)
Parameters
**p
Here is the caller graph for this function:util_pile_length()util_pile_lengthutil.hutil.hutil_pile_lengthint util_pile_length (pile * p)
Parameters
**p
Returnslength
Here is the caller graph for this function:util_pile_pop()util_pile_poputil.hutil.hutil_pile_popint util_pile_pop (pile ** p)
Parameters
**p
Returnsvalue
Here is the caller graph for this function:util_pile_push()util_pile_pushutil.hutil.hutil_pile_pushint util_pile_push (pile ** p, int value)
Parameters
**pvalue
Returnsvalue
Here is the caller graph for this function:util_pile_view()util_pile_viewutil.hutil.hutil_pile_viewvoid util_pile_view (pile * p)
Parameters
**p
Here is the call graph for this function:
Here is the caller graph for this function:util_read_file()util_read_fileutil.hutil.hutil_read_filechar * util_read_file (char * filename)reads a file from filename into a provided buffer
Parameters
*filename
Returnschar
Here is the caller graph for this function:util_sorted_list_clear()util_sorted_list_clearutil.hutil.hutil_sorted_list_clearvoid util_sorted_list_clear (slist ** sl)
Parameters
**sl
Here is the caller graph for this function:util_sorted_list_insert()util_sorted_list_insertutil.hutil.hutil_sorted_list_insertint util_sorted_list_insert (slist ** sl, int value)
Parameters
**slvalue
Returnsvalue
Here is the caller graph for this function:util_sorted_list_length()util_sorted_list_lengthutil.hutil.hutil_sorted_list_lengthint util_sorted_list_length (slist * sl)
Parameters
**sl
Returnslength
Here is the caller graph for this function:util_sorted_list_pop()util_sorted_list_poputil.hutil.hutil_sorted_list_popint util_sorted_list_pop (slist ** sl)
Parameters
**sl
Returnsvalue
Here is the caller graph for this function:util_sorted_list_view()util_sorted_list_viewutil.hutil.hutil_sorted_list_viewvoid util_sorted_list_view (slist * sl)
Parameters
**sl
Here is the call graph for this function:
Here is the caller graph for this function: