labwc/include/theme/xbm/parse.h

28 lines
478 B
C
Raw Normal View History

2020-06-29 19:27:59 +01:00
/*
* Parse xbm token to create pixmap
*
* Copyright Johan Malm 2020
*/
2020-08-03 20:56:38 +01:00
#ifndef __LABWC_PARSE_H
#define __LABWC_PARSE_H
2020-06-29 19:27:59 +01:00
#include <stdint.h>
#include "theme/xbm/tokenize.h"
struct pixmap {
uint32_t *data;
int width;
int height;
};
/**
* xbm_create_pixmap - parse xbm tokens and create pixmap
* @tokens: token vector
*/
struct pixmap xbm_create_pixmap(struct token *tokens);
struct pixmap xbm_create_pixmap_builtin(const char *button);
2020-08-03 20:56:38 +01:00
#endif /* __LABWC_PARSE_H */