icon-loader: support xpm icons

This commit is contained in:
Johan Malm 2024-09-29 13:33:01 +01:00
parent 3394f191a4
commit e1c85f0ef5
5 changed files with 1986 additions and 2 deletions

14
include/img/img-xpm.h Normal file
View file

@ -0,0 +1,14 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_IMG_XPM_H
#define LABWC_IMG_XPM_H
struct lab_data_buffer;
/**
* img_xpm_load() - Convert xpm file to buffer with cairo surface
* @filename: xpm file
* @buffer: cairo-surface-buffer to create
*/
void img_xpm_load(const char *filename, struct lab_data_buffer **buffer);
#endif /* LABWC_IMG_XPM_H */