|
PatchworkOS
|
Go to the source code of this file.
Typedefs | |
| typedef struct image | image_t |
Functions | |
| image_t * | image_new_blank (display_t *disp, uint64_t width, uint64_t height) |
| image_t * | image_new (display_t *disp, const char *path) |
| void | image_free (image_t *image) |
| drawable_t * | image_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) |
| 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().
| void image_free | ( | image_t * | image | ) |
Definition at line 74 of file image.c.
References drawable_t::buffer, drawable_t::disp, image_t::draw, image_t::entry, free(), image, display_t::images, list_remove(), mtx_lock(), mtx_unlock(), and display_t::mutex.
Referenced by display_free(), image_new(), main(), window_deco_free(), and window_deco_init_controls().
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().
Definition at line 27 of file image.c.
References drawable_t::buffer, close(), image_t::draw, ERR, FBMP_MAGIC, file, image, image_free(), image_new_blank(), NULL, open(), read(), seek(), SEEK_END, and SEEK_SET.
Referenced by main(), and window_deco_init_controls().
Definition at line 7 of file image.c.
References drawable_t::buffer, drawable_t::contentRect, drawable_t::disp, image_t::draw, image_t::entry, image, display_t::images, drawable_t::invalidRect, list_entry_init(), list_push(), malloc(), mtx_lock(), mtx_unlock(), display_t::mutex, NULL, RECT_INIT_DIM, and drawable_t::stride.
Referenced by image_new().
Definition at line 89 of file image.c.
References drawable_t::contentRect, image_t::draw, and 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().