PatchworkOS
Loading...
Searching...
No Matches
image.h File Reference
#include "drawable.h"
#include <stdint.h>

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_draw()

drawable_t * image_draw ( image_t image)

Definition at line 84 of file image.c.

References image_t::draw, and image.

Referenced by draw_image(), and draw_image_blend().

◆ image_free()

◆ image_height()

uint64_t image_height ( image_t image)

Definition at line 99 of file image.c.

References drawable_t::contentRect, image_t::draw, image, and RECT_HEIGHT.

Referenced by button_draw(), main(), and procedure().

◆ image_new()

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

◆ image_new_blank()

◆ image_rect()

void image_rect ( image_t image,
rect_t rect 
)

Definition at line 89 of file image.c.

References drawable_t::contentRect, image_t::draw, and image.

◆ image_width()

uint64_t image_width ( image_t image)

Definition at line 94 of file image.c.

References drawable_t::contentRect, image_t::draw, image, and RECT_WIDTH.

Referenced by button_draw(), main(), and procedure().