GimpProjection

GimpProjection

Synopsis

struct              GimpProjectionIdleRender;
                    GimpProjection;
GimpProjection *    gimp_projection_new                 (GimpProjectable *projectable);
GeglNode *          gimp_projection_get_sink_node       (GimpProjection *proj);
TileManager *       gimp_projection_get_tiles_at_level  (GimpProjection *proj,
                                                         gint level,
                                                         gboolean *is_premult);
gint                gimp_projection_get_level           (GimpProjection *proj,
                                                         gdouble scale_x,
                                                         gdouble scale_y);
void                gimp_projection_flush               (GimpProjection *proj);
void                gimp_projection_flush_now           (GimpProjection *proj);
void                gimp_projection_finish_draw         (GimpProjection *proj);
gint64              gimp_projection_estimate_memsize    (GimpImageBaseType type,
                                                         gint width,
                                                         gint height);

Object Hierarchy

  GObject
   +----GimpObject
         +----GimpProjection

Implemented Interfaces

GimpProjection implements GimpPickableInterface.

Signals

  "update"                                         : Run First

Description

Details

struct GimpProjectionIdleRender

struct GimpProjectionIdleRender {
  gint    width;
  gint    height;
  gint    x;
  gint    y;
  gint    base_x;
  gint    base_y;
  guint   idle_id;
  GSList *update_areas;   /*  flushed update areas */
};


GimpProjection

typedef struct _GimpProjection GimpProjection;


gimp_projection_new ()

GimpProjection *    gimp_projection_new                 (GimpProjectable *projectable);


gimp_projection_get_sink_node ()

GeglNode *          gimp_projection_get_sink_node       (GimpProjection *proj);


gimp_projection_get_tiles_at_level ()

TileManager *       gimp_projection_get_tiles_at_level  (GimpProjection *proj,
                                                         gint level,
                                                         gboolean *is_premult);


gimp_projection_get_level ()

gint                gimp_projection_get_level           (GimpProjection *proj,
                                                         gdouble scale_x,
                                                         gdouble scale_y);

This function returns the optimal pyramid level for a given scale factor.

proj :

pointer to a GimpProjection

scale_x :

horizontal scale factor

scale_y :

vertical scale factor

Returns :

the pyramid level to use for a given display scale factor.

gimp_projection_flush ()

void                gimp_projection_flush               (GimpProjection *proj);


gimp_projection_flush_now ()

void                gimp_projection_flush_now           (GimpProjection *proj);


gimp_projection_finish_draw ()

void                gimp_projection_finish_draw         (GimpProjection *proj);


gimp_projection_estimate_memsize ()

gint64              gimp_projection_estimate_memsize    (GimpImageBaseType type,
                                                         gint width,
                                                         gint height);

Calculates a rough estimate of the memory that is required for the projection of an image with the given width and height.

type :

the image base type

width :

projection width

height :

projection height

Returns :

a rough estimate of the memory requirements.

Signal Details

The "update" signal

void                user_function                      (GimpProjection *gimpprojection,
                                                        gboolean        arg1,
                                                        gint            arg2,
                                                        gint            arg3,
                                                        gint            arg4,
                                                        gint            arg5,
                                                        gpointer        user_data)           : Run First

gimpprojection :

the object which received the signal.

user_data :

user data set when the signal handler was connected.