Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
glib_utils.h File Reference
#include "system/macros.h"
#include <glib.h>
+ Include dependency graph for glib_utils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define g_list_is_singleton(list)   ((list) && (!(list)->next))
 

Functions

static gboolean g_list_shorter_than (const GList *list, unsigned len)
 
static GListg_list_next_bounded (GList *list)
 
static const GListg_list_next_wraparound (const GList *list, const GList *head)
 
static const GListg_list_prev_wraparound (const GList *list)
 
static gchar * dt_string_replace (const char *string, const char *to_replace)
 

Macro Definition Documentation

◆ g_list_is_singleton

#define g_list_is_singleton (   list)    ((list) && (!(list)->next))

Definition at line 33 of file glib_utils.h.

Function Documentation

◆ dt_string_replace()

static gchar * dt_string_replace ( const char *  string,
const char *  to_replace 
)
inlinestatic

◆ g_list_next_bounded()

static GList * g_list_next_bounded ( GList list)
inlinestatic

Definition at line 47 of file glib_utils.h.

References L.

Referenced by _brush_get_position_in_segment(), and _polygon_get_position_in_segment().

◆ g_list_next_wraparound()

◆ g_list_prev_wraparound()

static const GList * g_list_prev_wraparound ( const GList list)
inlinestatic

Definition at line 57 of file glib_utils.h.

References L.

◆ g_list_shorter_than()