GimpBrushCache

GimpBrushCache

Synopsis

                    GimpBrushCache;
struct              GimpBrushCacheClass;
void                gimp_brush_cache_add                (GimpBrushCache *cache,
                                                         gpointer data,
                                                         gint width,
                                                         gint height,
                                                         gdouble scale,
                                                         gdouble aspect_ratio,
                                                         gdouble angle,
                                                         gdouble hardness);
void                gimp_brush_cache_clear              (GimpBrushCache *cache);
gconstpointer       gimp_brush_cache_get                (GimpBrushCache *cache,
                                                         gint width,
                                                         gint height,
                                                         gdouble scale,
                                                         gdouble aspect_ratio,
                                                         gdouble angle,
                                                         gdouble hardness);
GimpBrushCache *    gimp_brush_cache_new                (GDestroyNotify data_destory,
                                                         gchar debug_hit,
                                                         gchar debug_miss);

Description

Details

GimpBrushCache

typedef struct {
  GimpObject      parent_instance;

  GDestroyNotify  data_destroy;

  gpointer        last_data;
  gint            last_width;
  gint            last_height;
  gdouble         last_scale;
  gdouble         last_aspect_ratio;
  gdouble         last_angle;
  gdouble         last_hardness;

  gchar           debug_hit;
  gchar           debug_miss;
} GimpBrushCache;


struct GimpBrushCacheClass

struct GimpBrushCacheClass {
  GimpObjectClass  parent_class;
};


gimp_brush_cache_add ()

void                gimp_brush_cache_add                (GimpBrushCache *cache,
                                                         gpointer data,
                                                         gint width,
                                                         gint height,
                                                         gdouble scale,
                                                         gdouble aspect_ratio,
                                                         gdouble angle,
                                                         gdouble hardness);


gimp_brush_cache_clear ()

void                gimp_brush_cache_clear              (GimpBrushCache *cache);


gimp_brush_cache_get ()

gconstpointer       gimp_brush_cache_get                (GimpBrushCache *cache,
                                                         gint width,
                                                         gint height,
                                                         gdouble scale,
                                                         gdouble aspect_ratio,
                                                         gdouble angle,
                                                         gdouble hardness);


gimp_brush_cache_new ()

GimpBrushCache *    gimp_brush_cache_new                (GDestroyNotify data_destory,
                                                         gchar debug_hit,
                                                         gchar debug_miss);