wlmaker
Loading...
Searching...
No Matches
primitives.h
Go to the documentation of this file.
1/* ========================================================================= */
20#ifndef __WLMTK_PRIMITIVES_H__
21#define __WLMTK_PRIMITIVES_H__
22
23#include <cairo.h>
24#include <libbase/libbase.h>
25#include <stdbool.h>
26#include <stdint.h>
27
28#include "style.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif // __cplusplus
33
41 cairo_t *cairo_ptr,
42 const wlmtk_style_fill_t *fill_ptr);
43
55 cairo_t *cairo_ptr,
56 int x,
57 int y,
58 unsigned width,
59 unsigned height,
60 const wlmtk_style_fill_t *fill_ptr);
61
75 cairo_t *cairo_ptr,
76 bool illuminated);
77
87 cairo_t *cairo_ptr,
88 double bezel_width,
89 bool raised);
90
104 cairo_t *cairo_ptr,
105 int x,
106 int y,
107 unsigned width,
108 unsigned height,
109 double bezel_width,
110 bool raised);
111
120 cairo_t *cairo_ptr,
121 int size,
122 uint32_t color);
123
132 cairo_t *cairo_ptr,
133 int size,
134 uint32_t color);
135
145 cairo_t *cairo_ptr,
146 const wlmtk_style_font_t *font_style_ptr,
147 const char *title_ptr,
148 uint32_t color);
149
161 cairo_t *cairo_ptr,
162 int x,
163 int y,
164 const wlmtk_style_font_t *font_style_ptr,
165 uint32_t color,
166 const char *text_ptr);
167
169extern const bs_test_case_t wlmaker_primitives_test_cases[];
170
171#ifdef __cplusplus
172} // extern "C"
173#endif // __cplusplus
174
175#endif /* __WLMTK_PRIMITIVES_H__ */
176/* == End of primitives.h ================================================== */
void wlmaker_primitives_draw_bezel_at(cairo_t *cairo_ptr, int x, int y, unsigned width, unsigned height, double bezel_width, bool raised)
Definition primitives.c:153
void wlmaker_primitives_draw_bezel(cairo_t *cairo_ptr, double bezel_width, bool raised)
Definition primitives.c:141
void wlmaker_primitives_draw_minimize_icon(cairo_t *cairo_ptr, int size, uint32_t color)
Definition primitives.c:191
void wlmaker_primitives_draw_window_title(cairo_t *cairo_ptr, const wlmtk_style_font_t *font_style_ptr, const char *title_ptr, uint32_t color)
Definition primitives.c:236
const bs_test_case_t wlmaker_primitives_test_cases[]
Definition primitives.c:285
void wlmaker_primitives_cairo_fill_at(cairo_t *cairo_ptr, int x, int y, unsigned width, unsigned height, const wlmtk_style_fill_t *fill_ptr)
Definition primitives.c:40
void wlmaker_primitives_set_bezel_color(cairo_t *cairo_ptr, bool illuminated)
Definition primitives.c:129
void wlmaker_primitives_cairo_fill(cairo_t *cairo_ptr, const wlmtk_style_fill_t *fill_ptr)
Definition primitives.c:29
void wlmaker_primitives_draw_close_icon(cairo_t *cairo_ptr, int size, uint32_t color)
Definition primitives.c:212
void wlmaker_primitives_draw_text(cairo_t *cairo_ptr, int x, int y, const wlmtk_style_font_t *font_style_ptr, uint32_t color, const char *text_ptr)
Definition primitives.c:251
Definition style.h:73
Definition style.h:101