gimp-utils

gimp-utils

Synopsis

#define             GIMP_TIMER_END                      (message)
#define             GIMP_TIMER_START
#define             MAX4                                (a,
                                                         b,
                                                         c,
                                                         d)
#define             MIN4                                (a,
                                                         b,
                                                         c,
                                                         d)
gint64              gimp_g_type_instance_get_memsize    (GTypeInstance *instance);
gint64              gimp_g_object_get_memsize           (GObject *object);
gint64              gimp_g_hash_table_get_memsize       (GHashTable *hash,
                                                         gint64 data_size);
gint64              gimp_g_hash_table_get_memsize_foreach
                                                        (GHashTable *hash,
                                                         GimpMemsizeFunc func,
                                                         gint64 *gui_size);
gint64              gimp_g_slist_get_memsize            (GSList *slist,
                                                         gint64 data_size);
gint64              gimp_g_slist_get_memsize_foreach    (GSList *slist,
                                                         GimpMemsizeFunc func,
                                                         gint64 *gui_size);
gint64              gimp_g_list_get_memsize             (GList *list,
                                                         gint64 data_size);
gint64              gimp_g_list_get_memsize_foreach     (GList *slist,
                                                         GimpMemsizeFunc func,
                                                         gint64 *gui_size);
gint64              gimp_g_value_get_memsize            (GValue *value);
gint64              gimp_g_param_spec_get_memsize       (GParamSpec *pspec);
gint64              gimp_string_get_memsize             (const gchar *string);
gint64              gimp_parasite_get_memsize           (GimpParasite *parasite,
                                                         gint64 *gui_size);
gchar *             gimp_get_default_language           (const gchar *category);
GimpUnit            gimp_get_default_unit               (void);
GParameter *        gimp_parameters_append              (GType object_type,
                                                         GParameter *params,
                                                         gint *n_params,
                                                         ...);
GParameter *        gimp_parameters_append_valist       (GType object_type,
                                                         GParameter *params,
                                                         gint *n_params,
                                                         va_list args);
void                gimp_parameters_free                (GParameter *params,
                                                         gint n_params);
void                gimp_value_array_truncate           (GValueArray *args,
                                                         gint n_values);
gchar *             gimp_get_temp_filename              (Gimp *gimp,
                                                         const gchar *extension);
gchar *             gimp_markup_extract_text            (const gchar *markup);
const gchar *       gimp_enum_get_value_name            (GType enum_type,
                                                         gint value);
#define             GIMP_CONSTRAIN_LINE_90_DEGREES
#define             GIMP_CONSTRAIN_LINE_45_DEGREES
#define             GIMP_CONSTRAIN_LINE_15_DEGREES
void                gimp_constrain_line                 (gdouble start_x,
                                                         gdouble start_y,
                                                         gdouble *end_x,
                                                         gdouble *end_y,
                                                         gint n_snap_lines);

Description

Details

GIMP_TIMER_END()

#define             GIMP_TIMER_END(message)


GIMP_TIMER_START

#define             GIMP_TIMER_START()


MAX4()

#define MAX4(a,b,c,d) MAX (MAX ((a), (b)), MAX ((c), (d)))


MIN4()

#define MIN4(a,b,c,d) MIN (MIN ((a), (b)), MIN ((c), (d)))


gimp_g_type_instance_get_memsize ()

gint64              gimp_g_type_instance_get_memsize    (GTypeInstance *instance);


gimp_g_object_get_memsize ()

gint64              gimp_g_object_get_memsize           (GObject *object);


gimp_g_hash_table_get_memsize ()

gint64              gimp_g_hash_table_get_memsize       (GHashTable *hash,
                                                         gint64 data_size);


gimp_g_hash_table_get_memsize_foreach ()

gint64              gimp_g_hash_table_get_memsize_foreach
                                                        (GHashTable *hash,
                                                         GimpMemsizeFunc func,
                                                         gint64 *gui_size);


gimp_g_slist_get_memsize ()

gint64              gimp_g_slist_get_memsize            (GSList *slist,
                                                         gint64 data_size);


gimp_g_slist_get_memsize_foreach ()

gint64              gimp_g_slist_get_memsize_foreach    (GSList *slist,
                                                         GimpMemsizeFunc func,
                                                         gint64 *gui_size);


gimp_g_list_get_memsize ()

gint64              gimp_g_list_get_memsize             (GList *list,
                                                         gint64 data_size);


gimp_g_list_get_memsize_foreach ()

gint64              gimp_g_list_get_memsize_foreach     (GList *slist,
                                                         GimpMemsizeFunc func,
                                                         gint64 *gui_size);


gimp_g_value_get_memsize ()

gint64              gimp_g_value_get_memsize            (GValue *value);


gimp_g_param_spec_get_memsize ()

gint64              gimp_g_param_spec_get_memsize       (GParamSpec *pspec);


gimp_string_get_memsize ()

gint64              gimp_string_get_memsize             (const gchar *string);


gimp_parasite_get_memsize ()

gint64              gimp_parasite_get_memsize           (GimpParasite *parasite,
                                                         gint64 *gui_size);


gimp_get_default_language ()

gchar *             gimp_get_default_language           (const gchar *category);


gimp_get_default_unit ()

GimpUnit            gimp_get_default_unit               (void);


gimp_parameters_append ()

GParameter *        gimp_parameters_append              (GType object_type,
                                                         GParameter *params,
                                                         gint *n_params,
                                                         ...);


gimp_parameters_append_valist ()

GParameter *        gimp_parameters_append_valist       (GType object_type,
                                                         GParameter *params,
                                                         gint *n_params,
                                                         va_list args);


gimp_parameters_free ()

void                gimp_parameters_free                (GParameter *params,
                                                         gint n_params);


gimp_value_array_truncate ()

void                gimp_value_array_truncate           (GValueArray *args,
                                                         gint n_values);


gimp_get_temp_filename ()

gchar *             gimp_get_temp_filename              (Gimp *gimp,
                                                         const gchar *extension);


gimp_markup_extract_text ()

gchar *             gimp_markup_extract_text            (const gchar *markup);


gimp_enum_get_value_name ()

const gchar *       gimp_enum_get_value_name            (GType enum_type,
                                                         gint value);

Returns the value name for a given value of a given enum type. Useful to have inline in GIMP_LOG() messages for example.

enum_type :

Enum type

value :

Enum value

Returns :

The value name.

GIMP_CONSTRAIN_LINE_90_DEGREES

#define GIMP_CONSTRAIN_LINE_90_DEGREES 2


GIMP_CONSTRAIN_LINE_45_DEGREES

#define GIMP_CONSTRAIN_LINE_45_DEGREES 4


GIMP_CONSTRAIN_LINE_15_DEGREES

#define GIMP_CONSTRAIN_LINE_15_DEGREES 12


gimp_constrain_line ()

void                gimp_constrain_line                 (gdouble start_x,
                                                         gdouble start_y,
                                                         gdouble *end_x,
                                                         gdouble *end_y,
                                                         gint n_snap_lines);

Projects a line onto the specified subset of evenly radially distributed lines. n_lines of 2 makes the line snap horizontally or vertically. n_lines of 4 snaps on 45 degree steps. n_lines of 12 on 15 degree steps. etc.

n_snap_lines :

Number evenly disributed lines to snap to.