wlmaker
Loading...
Searching...
No Matches
include
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 <cairo.h>
24
#include <libbase/libbase.h>
25
#include <stdbool.h>
26
#include <stdint.h>
27
28
#include "
element.h
"
29
#include "
style.h
"
30
#include "
window.h
"
31
33
typedef
struct
_wlmtk_titlebar_button_t
wlmtk_titlebar_button_t
;
34
35
#ifdef __cplusplus
36
extern
"C"
{
37
#endif
// __cplusplus
38
40
typedef
void (*
wlmtk_titlebar_button_draw_t
)(
41
cairo_t *cairo_ptr,
int
siye, uint32_t color);
42
52
wlmtk_titlebar_button_t
*
wlmtk_titlebar_button_create
(
53
void
(*
click_handler
)(
wlmtk_window_t
*
window_ptr
),
54
wlmtk_window_t
*
window_ptr
,
55
wlmtk_titlebar_button_draw_t
draw
);
56
62
void
wlmtk_titlebar_button_destroy
(
63
wlmtk_titlebar_button_t
*titlebar_button_ptr);
64
71
void
wlmtk_titlebar_button_set_activated
(
72
wlmtk_titlebar_button_t
*titlebar_button_ptr,
73
bool
activated
);
74
86
bool
wlmtk_titlebar_button_redraw
(
87
wlmtk_titlebar_button_t
*titlebar_button_ptr,
88
bs_gfxbuf_t *focussed_gfxbuf_ptr,
89
bs_gfxbuf_t *blurred_gfxbuf_ptr,
90
int
position,
91
const
wlmtk_titlebar_style_t
*style_ptr);
92
100
wlmtk_element_t
*
wlmtk_titlebar_button_element
(
101
wlmtk_titlebar_button_t
*titlebar_button_ptr);
102
104
extern
const
bs_test_case_t
wlmtk_titlebar_button_test_cases
[];
105
106
#ifdef __cplusplus
107
}
// extern "C"
108
#endif
// __cplusplus
109
110
#endif
/* __WLMTK_TITLEBAR_BUTTON_H__ */
111
/* == End of titlebar_button.h ============================================= */
element.h
_wlmtk_element_t
Definition
element.h:175
_wlmtk_titlebar_button_t
Definition
titlebar_button.c:40
_wlmtk_titlebar_button_t::draw
wlmtk_titlebar_button_draw_t draw
Definition
titlebar_button.c:51
_wlmtk_titlebar_button_t::click_handler
void(* click_handler)(wlmtk_window_t *window_ptr)
Definition
titlebar_button.c:47
_wlmtk_titlebar_button_t::activated
bool activated
Definition
titlebar_button.c:44
_wlmtk_titlebar_button_t::window_ptr
wlmtk_window_t * window_ptr
Definition
titlebar_button.c:49
_wlmtk_window_t
Definition
window.c:82
wlmtk_titlebar_style_t
Definition
style.h:160
style.h
wlmtk_titlebar_button_destroy
void wlmtk_titlebar_button_destroy(wlmtk_titlebar_button_t *titlebar_button_ptr)
Definition
titlebar_button.c:117
wlmtk_titlebar_button_draw_t
void(* wlmtk_titlebar_button_draw_t)(cairo_t *cairo_ptr, int siye, uint32_t color)
Definition
titlebar_button.h:40
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:142
wlmtk_titlebar_button_element
wlmtk_element_t * wlmtk_titlebar_button_element(wlmtk_titlebar_button_t *titlebar_button_ptr)
Definition
titlebar_button.c:191
wlmtk_titlebar_button_set_activated
void wlmtk_titlebar_button_set_activated(wlmtk_titlebar_button_t *titlebar_button_ptr, bool activated)
Definition
titlebar_button.c:132
wlmtk_titlebar_button_test_cases
const bs_test_case_t wlmtk_titlebar_button_test_cases[]
Definition
titlebar_button.c:277
wlmtk_titlebar_button_create
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:87
window.h
Generated by
1.9.8