PatchworkOS
Loading...
Searching...
No Matches
image.h
Go to the documentation of this file.
1#ifndef PATCHWORK_IMAGE_H
2#define PATCHWORK_IMAGE_H 1
3
4#include "drawable.h"
5
6#include <stdint.h>
7
8#if defined(__cplusplus)
9extern "C"
10{
11#endif
12
13typedef struct image image_t;
14
16
17image_t* image_new(display_t* disp, const char* path);
18
20
22
23void image_rect(image_t* image, rect_t* rect);
24
26
28
29#if defined(__cplusplus)
30}
31#endif
32
33#endif
void image_free(image_t *image)
Definition image.c:74
uint64_t image_height(image_t *image)
Definition image.c:99
void image_rect(image_t *image, rect_t *rect)
Definition image.c:89
uint64_t image_width(image_t *image)
Definition image.c:94
image_t * image_new(display_t *disp, const char *path)
Definition image.c:27
image_t * image_new_blank(display_t *disp, uint64_t width, uint64_t height)
Definition image.c:7
drawable_t * image_draw(image_t *image)
Definition image.c:84
static image_t * image
Definition main.c:5
__UINT64_TYPE__ uint64_t
Definition stdint.h:17
Opaque display structure.
Definition internal.h:61
Drawable structure.
Definition drawable.h:35
Definition rect.h:13