mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 19:43:01 +00:00
ed2e3ee66f
---------------------------------------------------------------------- Modified Files: ChangeLog app/Makefile.am app/brush_select.c app/gimpbrushlist.c app/gimpbrushlist.h app/gimpsetF.h added sorting on the brush_list, fixed some encapulation issues. app/paint_funcs.c minor speed tweak to border_region Added Files: app/gimpbrushlistF.h app/gimpbrushlistP.h app/gimplist.c app/gimplist.h app/gimplistF.h app/gimplistP.h Split gimpbrushlist.h into 3 files. New class "GimpList" ----------------------------------------------------------------------
39 lines
1 KiB
C
39 lines
1 KiB
C
#ifndef __GIMPLIST_H__
|
|
#define __GIMPLIST_H__
|
|
|
|
#include <glib.h>
|
|
#include "gimplistF.h"
|
|
|
|
|
|
/* GimpList - a typed list of objects with signals for adding and
|
|
removing of stuff. If it is weak, destroyed objects get removed
|
|
automatically. If it is not, it refs them so they won't be freed
|
|
till they are removed. (Though they can be destroyed, of course) */
|
|
|
|
#define GIMP_TYPE_LIST gimp_list_get_type()
|
|
|
|
#define GIMP_LIST(obj) GTK_CHECK_CAST (obj, GIMP_TYPE_LIST, GimpList)
|
|
|
|
|
|
|
|
#define GIMP_IS_LIST(obj) GTK_CHECK_TYPE (obj, gimp_list_get_type())
|
|
|
|
/* Signals:
|
|
add
|
|
remove
|
|
*/
|
|
|
|
|
|
guint gimp_list_get_type (void);
|
|
|
|
GimpList* gimp_list_new (GtkType type, gboolean weak);
|
|
GtkType gimp_list_type (GimpList* list);
|
|
gboolean gimp_list_add (GimpList* gimplist, gpointer ob);
|
|
gboolean gimp_list_remove (GimpList* gimplist, gpointer ob);
|
|
gboolean gimp_list_have (GimpList* gimplist, gpointer ob);
|
|
void gimp_list_foreach(GimpList* gimplist, GFunc func,
|
|
gpointer user_data);
|
|
gint gimp_list_size (GimpList* gimplist);
|
|
|
|
#endif
|