wlmaker
Loading...
Searching...
No Matches
titlebar_button.h
Go to the documentation of this file.
1/* ========================================================================= */
21#ifndef __WLMTK_TITLEBAR_BUTTON_H__
22#define __WLMTK_TITLEBAR_BUTTON_H__
23
24#include <cairo.h>
25#include <libbase/libbase.h>
26#include <stdbool.h>
27#include <stdint.h>
28
29#include "element.h"
30#include "window.h"
31
35
36#ifdef __cplusplus
37extern "C" {
38#endif // __cplusplus
39
42 cairo_t *cairo_ptr, int siye, uint32_t color);
43
54 void (*click_handler)(wlmtk_window_t *window_ptr),
55 wlmtk_window_t *window_ptr,
57
64 wlmtk_titlebar_button_t *titlebar_button_ptr);
65
73 wlmtk_titlebar_button_t *titlebar_button_ptr,
74 bool activated);
75
88 wlmtk_titlebar_button_t *titlebar_button_ptr,
89 bs_gfxbuf_t *focussed_gfxbuf_ptr,
90 bs_gfxbuf_t *blurred_gfxbuf_ptr,
91 int position,
92 const struct wlmtk_titlebar_style *style_ptr);
93
102 wlmtk_titlebar_button_t *titlebar_button_ptr);
103
105extern const bs_test_set_t wlmtk_titlebar_button_test_set;
106
107#ifdef __cplusplus
108} // extern "C"
109#endif // __cplusplus
110
111#endif /* __WLMTK_TITLEBAR_BUTTON_H__ */
112/* == End of titlebar_button.h ============================================= */
Definition element.h:188
Definition titlebar_button.c:42
Definition window.c:53
Definition style.h:124
void wlmtk_titlebar_button_destroy(wlmtk_titlebar_button_t *titlebar_button_ptr)
Definition titlebar_button.c:119
void(* wlmtk_titlebar_button_draw_t)(cairo_t *cairo_ptr, int siye, uint32_t color)
Definition titlebar_button.h:41
wlmtk_element_t * wlmtk_titlebar_button_element(wlmtk_titlebar_button_t *titlebar_button_ptr)
Definition titlebar_button.c:193
const bs_test_set_t wlmtk_titlebar_button_test_set
Definition titlebar_button.c:285
void wlmtk_titlebar_button_set_activated(wlmtk_titlebar_button_t *titlebar_button_ptr, bool activated)
Definition titlebar_button.c:134
bool wlmtk_titlebar_button_redraw(wlmtk_titlebar_button_t *titlebar_button_ptr, bs_gfxbuf_t *focussed_gfxbuf_ptr, bs_gfxbuf_t *blurred_gfxbuf_ptr, int position, const struct wlmtk_titlebar_style *style_ptr)
Definition titlebar_button.c:144
wlmtk_titlebar_button_t * wlmtk_titlebar_button_create(void(*click_handler)(wlmtk_window_t *window_ptr), wlmtk_window_t *window_ptr, wlmtk_titlebar_button_draw_t draw)
Definition titlebar_button.c:89