util

Name

util -- 

Synopsis



#define     GCC_UNUSED
gint        floorm                          (gint a,
                                             gint b);
gint        ceilm                           (gint a,
                                             gint b);
void        copy_rect                       (guchar *dest_buf,
                                             gint dest_x,
                                             gint dest_y,
                                             gint dest_width,
                                             gint dest_height,
                                             guchar *src_buf,
                                             gint src_x,
                                             gint src_y,
                                             gint src_width,
                                             gint src_height,
                                             gint bpp);
gint        tile_width                      (void);
gint        tile_height                     (void);

Description

Details

GCC_UNUSED

#define     GCC_UNUSED


floorm ()

gint        floorm                          (gint a,
                                             gint b);


ceilm ()

gint        ceilm                           (gint a,
                                             gint b);


copy_rect ()

void        copy_rect                       (guchar *dest_buf,
                                             gint dest_x,
                                             gint dest_y,
                                             gint dest_width,
                                             gint dest_height,
                                             guchar *src_buf,
                                             gint src_x,
                                             gint src_y,
                                             gint src_width,
                                             gint src_height,
                                             gint bpp);


tile_width ()

gint        tile_width                      (void);

This function converts the guint that is returned by gimp_tile_width into a gint. This helps prevent all kind of signed/unsigned problems in the code.


tile_height ()

gint        tile_height                     (void);

This function converts the guint that is returned by gimp_tile_height into a gint. This helps prevent all kind of signed/unsigned problems in the code.