wlmaker
Loading...
Searching...
No Matches
src
toolkit
titlebar_button.h
Go to the documentation of this file.
1
/* ========================================================================= */
20
#ifndef __WLMTK_TITLEBAR_BUTTON_H__
21
#define __WLMTK_TITLEBAR_BUTTON_H__
22
23
#include <stdbool.h>
24
#include <libbase/libbase.h>
25
27
typedef
struct
_wlmtk_titlebar_button_t
wlmtk_titlebar_button_t
;
28
29
#include "
titlebar.h
"
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
// __cplusplus
34
36
typedef
void (*
wlmtk_titlebar_button_draw_t
)(
37
cairo_t *cairo_ptr, uint32_t color);
38
49
wlmtk_titlebar_button_t
*
wlmtk_titlebar_button_create
(
50
wlmtk_env_t
*env_ptr,
51
void
(*
click_handler
)(
wlmtk_window_t
*
window_ptr
),
52
wlmtk_window_t
*
window_ptr
,
53
wlmtk_titlebar_button_draw_t
draw
);
54
60
void
wlmtk_titlebar_button_destroy
(
61
wlmtk_titlebar_button_t
*titlebar_button_ptr);
62
69
void
wlmtk_titlebar_button_set_activated
(
70
wlmtk_titlebar_button_t
*titlebar_button_ptr,
71
bool
activated
);
72
84
bool
wlmtk_titlebar_button_redraw
(
85
wlmtk_titlebar_button_t
*titlebar_button_ptr,
86
bs_gfxbuf_t *focussed_gfxbuf_ptr,
87
bs_gfxbuf_t *blurred_gfxbuf_ptr,
88
int
position,
89
const
wlmtk_titlebar_style_t
*style_ptr);
90
98
wlmtk_element_t
*
wlmtk_titlebar_button_element
(
99
wlmtk_titlebar_button_t
*titlebar_button_ptr);
100
102
extern
const
bs_test_case_t
wlmtk_titlebar_button_test_cases
[];
103
104
#ifdef __cplusplus
105
}
// extern "C"
106
#endif
// __cplusplus
107
108
#endif
/* __WLMTK_TITLEBAR_BUTTON_H__ */
109
/* == End of titlebar_button.h ============================================= */
_wlmtk_element_t
Definition
element.h:143
_wlmtk_env_t
Definition
env.c:32
_wlmtk_titlebar_button_t
Definition
titlebar_button.c:35
_wlmtk_titlebar_button_t::draw
wlmtk_titlebar_button_draw_t draw
Definition
titlebar_button.c:46
_wlmtk_titlebar_button_t::click_handler
void(* click_handler)(wlmtk_window_t *window_ptr)
Definition
titlebar_button.c:42
_wlmtk_titlebar_button_t::activated
bool activated
Definition
titlebar_button.c:39
_wlmtk_titlebar_button_t::window_ptr
wlmtk_window_t * window_ptr
Definition
titlebar_button.c:44
_wlmtk_window_t
Definition
window.c:68
wlmtk_titlebar_style_t
Definition
titlebar.h:36
titlebar.h
wlmtk_titlebar_button_create
wlmtk_titlebar_button_t * wlmtk_titlebar_button_create(wlmtk_env_t *env_ptr, void(*click_handler)(wlmtk_window_t *window_ptr), wlmtk_window_t *window_ptr, wlmtk_titlebar_button_draw_t draw)
Definition
titlebar_button.c:81
wlmtk_titlebar_button_destroy
void wlmtk_titlebar_button_destroy(wlmtk_titlebar_button_t *titlebar_button_ptr)
Definition
titlebar_button.c:112
wlmtk_titlebar_button_redraw
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 wlmtk_titlebar_style_t *style_ptr)
Definition
titlebar_button.c:137
wlmtk_titlebar_button_element
wlmtk_element_t * wlmtk_titlebar_button_element(wlmtk_titlebar_button_t *titlebar_button_ptr)
Definition
titlebar_button.c:186
wlmtk_titlebar_button_set_activated
void wlmtk_titlebar_button_set_activated(wlmtk_titlebar_button_t *titlebar_button_ptr, bool activated)
Definition
titlebar_button.c:127
wlmtk_titlebar_button_test_cases
const bs_test_case_t wlmtk_titlebar_button_test_cases[]
Definition
titlebar_button.c:269
wlmtk_titlebar_button_draw_t
void(* wlmtk_titlebar_button_draw_t)(cairo_t *cairo_ptr, uint32_t color)
Definition
titlebar_button.h:36
Generated by
1.10.0