28#define I2IR(Image) ((dw::core::ImgRenderer*)(Image->img_rndr))
35 int32_t bg_color, int32_t fg_color)
41 Image->img_rndr = img_rndr;
45 Image->bg_color = bg_color;
46 Image->fg_color = fg_color;
47 Image->ScanNumber = 0;
60 int32_t bg_color, int32_t fg_color)
113 _MSG(
"a_Image_set_parms: width=%d height=%d iw=%d ih=%d\n",
122 Image->width = width;
123 Image->height = height;
132 _MSG(
"a_Image_write\n");
146 _MSG(
"a_Image_close\n");
155 _MSG(
"a_Image_abort\n");
bitvec_t * a_Bitvec_new(int num_bits)
Create a new bitvec with 'num_bits' size.
void a_Bitvec_set_bit(bitvec_t *bvec, int pos)
Set a bit.
void a_Bitvec_free(bitvec_t *bvec)
Free a bitvec.
Displays an instance of dw::core::Imgbuf.
The platform independent interface for image buffers.
The central class for managing and drawing a widget tree.
#define dReturn_if_fail(expr)
#define dNew(type, count)
The core of Dw is defined in this namespace.
Dw is in this namespace, or sub namespaces of this one.
#define I2IR(Image)
Image to Object-ImgRenderer macro.
void a_Image_ref(DilloImage *Image)
Add a reference to an Image struct Do nothing if the argument is NULL.
void a_Image_unref(DilloImage *Image)
Unref and free if necessary Do nothing if the argument is NULL.
DilloImage * a_Image_new_with_dw(void *layout, const char *alt_text, int32_t bg_color, int32_t fg_color)
Create and initialize a new image structure with an image widget.
void * a_Image_get_dw(DilloImage *Image)
Return the image renderer as a widget.
static void Image_free(DilloImage *Image)
Deallocate an Image structure.
void a_Image_abort(DilloImage *Image)
Implement the abort method.
void a_Image_write(DilloImage *Image, uint_t y)
Implement the write method.
DilloImage * a_Image_new(void *layout, void *img_rndr, int32_t bg_color, int32_t fg_color)
Create and initialize a new image structure.
void a_Image_close(DilloImage *Image)
Implement the close method.
void a_Image_set_parms(DilloImage *Image, void *v_imgbuf, DilloUrl *url, int version, uint_t width, uint_t height, DilloImgType type)
Set initial parameters of the image.
The DilloImage data-structure and methods.
@ IMG_Write
Feeding the entry.
@ IMG_SetParms
Parameters set.
@ IMG_Empty
Just created the entry.