PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
image.h File Reference
#include "drawable.h"
#include <stdint.h>
Include dependency graph for image.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct image image_t
 

Functions

image_timage_new_blank (display_t *disp, uint64_t width, uint64_t height)
 
image_timage_new (display_t *disp, const char *path)
 
void image_free (image_t *image)
 
drawable_timage_draw (image_t *image)
 
void image_rect (image_t *image, rect_t *rect)
 
uint64_t image_width (image_t *image)
 
uint64_t image_height (image_t *image)
 

Typedef Documentation

◆ image_t

typedef struct image image_t

Definition at line 13 of file image.h.

Function Documentation

◆ image_new_blank()

image_t * image_new_blank ( display_t disp,
uint64_t  width,
uint64_t  height 
)

Definition at line 7 of file image.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ image_new()

image_t * image_new ( display_t disp,
const char *  path 
)

Definition at line 27 of file image.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ image_free()

void image_free ( image_t image)

Definition at line 74 of file image.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ image_draw()

drawable_t * image_draw ( image_t image)

Definition at line 84 of file image.c.

Here is the caller graph for this function:

◆ image_rect()

void image_rect ( image_t image,
rect_t rect 
)

Definition at line 89 of file image.c.

◆ image_width()

uint64_t image_width ( image_t image)

Definition at line 94 of file image.c.

Here is the caller graph for this function:

◆ image_height()

uint64_t image_height ( image_t image)

Definition at line 99 of file image.c.

Here is the caller graph for this function: