mv xbm/ ..

This commit is contained in:
Johan Malm 2020-08-31 20:01:08 +01:00
parent a042aad9f6
commit fd8d9a395d
16 changed files with 22 additions and 13 deletions

View file

@ -1,37 +0,0 @@
/*
* Parse xbm token to create pixmap
*
* Copyright Johan Malm 2020
*/
#ifndef __LABWC_PARSE_H
#define __LABWC_PARSE_H
#include <stdint.h>
#include "theme/xbm/tokenize.h"
struct pixmap {
uint32_t *data;
int width;
int height;
};
/**
* parse_set_color - set color to be used when parsing icons
* @rgba: four floats representing red, green, blue, alpha
*/
void parse_set_color(float *rgba);
/**
* parse_xbm_tokens - parse xbm tokens and create pixmap
* @tokens: token vector
*/
struct pixmap parse_xbm_tokens(struct token *tokens);
/**
* parse_xbm_builtin - parse builtin xbm button and create pixmap
* @button: button byte array (xbm format)
*/
struct pixmap parse_xbm_builtin(const char *button, int size);
#endif /* __LABWC_PARSE_H */

View file

@ -1,33 +0,0 @@
/*
* XBM file tokenizer
*
* Copyright Johan Malm 2020
*/
#ifndef __LABWC_TOKENIZE_H
#define __LABWC_TOKENIZE_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];
int value;
size_t pos;
enum token_type type;
};
/**
* tokenize - tokenize xbm file
* @buffer: buffer containing xbm file
* return token vector
*/
struct token *tokenize_xbm(char *buffer);
#endif /* __LABWC_TOKENIZE_H */

View file

@ -1,13 +0,0 @@
#ifndef __LABWC_XBM_H
#define __LABWC_XBM_H
#include <wlr/render/wlr_renderer.h>
#include "theme/xbm/parse.h"
/**
* xbm_load - load theme xbm files into global theme struct
*/
void xbm_load(struct wlr_renderer *renderer);
#endif /* __LABWC_XBM_H */