mirror of
https://github.com/labwc/labwc.git
synced 2025-11-10 13:30:00 -05:00
Render window close button
This commit is contained in:
parent
40e862f3ac
commit
baca410560
17 changed files with 177 additions and 50 deletions
|
|
@ -1,41 +0,0 @@
|
|||
#ifndef XBM_H
|
||||
#define XBM_H
|
||||
|
||||
#include <cairo.h>
|
||||
|
||||
enum token_type {
|
||||
TOKEN_NONE = 0,
|
||||
TOKEN_IDENT,
|
||||
TOKEN_INT,
|
||||
TOKEN_SPECIAL,
|
||||
TOKEN_OTHER,
|
||||
};
|
||||
|
||||
#define MAX_TOKEN_SIZE (256)
|
||||
struct token {
|
||||
char name[MAX_TOKEN_SIZE];
|
||||
size_t pos;
|
||||
enum token_type type;
|
||||
};
|
||||
|
||||
/**
|
||||
* xbm_create_bitmap - parse xbm tokens and create pixmap
|
||||
* @tokens: token vector
|
||||
*/
|
||||
cairo_surface_t *xbm_create_bitmap(struct token *tokens);
|
||||
|
||||
/**
|
||||
* tokenize - tokenize xbm file
|
||||
* @buffer: buffer containing xbm file
|
||||
* return token vector
|
||||
*/
|
||||
struct token *xbm_tokenize(char *buffer);
|
||||
|
||||
/**
|
||||
* xbm_read_file - read file into buffer (as it's easier to tokenize that way)
|
||||
* @filename: file to be read
|
||||
* return allocated memory
|
||||
*/
|
||||
char *xbm_read_file(const char *filename);
|
||||
|
||||
#endif /* XBM_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue