wlmaker
Loading...
Searching...
No Matches
style.h
Go to the documentation of this file.
1/* ========================================================================= */
21#ifndef __WLMTK_STYLE_H__
22#define __WLMTK_STYLE_H__
23
24#include <cairo.h>
25#include <inttypes.h>
26#include <libbase/libbase.h>
27#include <libbase/plist.h>
28#include <stdbool.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif // __cplusplus
33
61
63typedef struct {
65 uint32_t color;
67
69typedef struct {
71 uint32_t from;
73 uint32_t to;
75
94
96#define WLMTK_STYLE_FONT_FACE_LENGTH 128
97
99typedef enum {
100 WLMTK_FONT_WEIGHT_NORMAL,
101 WLMTK_FONT_WEIGHT_BOLD,
103
113
114
118 uint64_t width;
120 uint32_t color;
121};
122
142
146
157 bspl_object_t *object_ptr,
158 const union bspl_desc_value *desc_value_ptr,
159 void *value_ptr);
160
162extern const bspl_desc_t wlmtk_style_margin_desc[];
163
165extern const bspl_desc_t wlmtk_style_font_desc[];
166
168extern const bs_test_set_t wlmtk_style_test_set;
169
170#ifdef __cplusplus
171} // extern "C"
172#endif // __cplusplus
173
174#endif /* __WLMTK_STYLE_H__ */
175/* == End of style.h ================================================== */
Definition style.h:116
uint64_t width
Definition style.h:118
uint32_t color
Definition style.h:120
uint32_t from
Definition style.h:71
uint32_t to
Definition style.h:73
Definition style.h:63
uint32_t color
Definition style.h:65
Definition style.h:77
wlmtk_style_color_gradient_data_t hgradient
Definition style.h:85
wlmtk_style_color_solid_data_t solid
Definition style.h:83
wlmtk_style_color_gradient_data_t vgradient
Definition style.h:87
wlmtk_style_fill_type_t type
Definition style.h:79
wlmtk_style_color_gradient_data_t dgradient
Definition style.h:89
wlmtk_style_color_gradient_data_t adgradient
Definition style.h:91
Definition style.h:105
uint64_t size
Definition style.h:111
wlmtk_style_font_weight_t weight
Definition style.h:109
Definition style.h:124
uint32_t focussed_text_color
Definition style.h:130
uint64_t height
Definition style.h:134
uint64_t bezel_width
Definition style.h:136
wlmtk_style_fill_t blurred_fill
Definition style.h:128
struct wlmtk_margin_style margin
Definition style.h:138
wlmtk_style_fill_t focussed_fill
Definition style.h:126
uint32_t blurred_text_color
Definition style.h:132
wlmtk_style_font_t font
Definition style.h:140
const bspl_desc_t wlmtk_style_font_desc[]
Definition style.c:44
const bspl_desc_t wlmtk_style_margin_desc[]
Definition style.c:29
cairo_font_weight_t wlmtk_style_font_weight_cairo_from_wlmtk(wlmtk_style_font_weight_t weight)
Definition style.c:93
bool wlmtk_style_decode_fill(bspl_object_t *object_ptr, const union bspl_desc_value *desc_value_ptr, void *value_ptr)
Definition style.c:107
wlmtk_style_font_weight_t
Definition style.h:99
wlmtk_style_fill_type_t
Definition style.h:35
@ WLMTK_STYLE_COLOR_VGRADIENT
Definition style.h:41
@ WLMTK_STYLE_COLOR_SOLID
Definition style.h:37
@ WLMTK_STYLE_COLOR_ADGRADIENT
Definition style.h:59
@ WLMTK_STYLE_COLOR_HGRADIENT
Definition style.h:39
@ WLMTK_STYLE_COLOR_DGRADIENT
Definition style.h:49
#define WLMTK_STYLE_FONT_FACE_LENGTH
Definition style.h:96
const bs_test_set_t wlmtk_style_test_set
Definition style.c:168