mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Made all header files to have LABWC_ prefix in include guard identifers. Converted from __LABWC_ in 35 include/ files. Converted from __LAB_ in 5 include/ files. Added LABWC prefix to 3 include/ files. Added include guards to 3 include/ files. The double underscores were removed since according to C standard those "are always reserved for any use".
38 lines
791 B
C
38 lines
791 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Parse xbm token to create pixmap
|
|
*
|
|
* Copyright Johan Malm 2020
|
|
*/
|
|
|
|
#ifndef LABWC_PARSE_H
|
|
#define LABWC_PARSE_H
|
|
|
|
#include "xbm/tokenize.h"
|
|
#include <stdint.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 */
|