Top |
ChafaImageChafaImage — An image to be placed on a ChafaCanvas |
ChafaImage * | chafa_image_new () |
void | chafa_image_ref () |
void | chafa_image_unref () |
void | chafa_image_set_frame () |
A ChafaImage represents a raster image for placement on a ChafaCanvas. It can currently hold a single ChafaFrame.
To place an image on a canvas, it must first be assigned to a ChafaPlacement.
ChafaImage *
chafa_image_new (void
);
Creates a new ChafaImage. The image is initially transparent and dimensionless.
Since: 1.14
void
chafa_image_ref (ChafaImage *image
);
Adds a reference to image
.
Since: 1.14
void
chafa_image_unref (ChafaImage *image
);
Removes a reference from image
. When the reference count drops to zero,
the image is freed and can no longer be used.
Since: 1.14
void chafa_image_set_frame (ChafaImage *image
,ChafaFrame *frame
);
Assigns frame
as the content for image
. The image will keep its own
reference to the frame.
Since: 1.14