wlmaker
Toggle main menu visibility
Loading...
Searching...
No Matches
src
config.h
Go to the documentation of this file.
1
/* ========================================================================= */
20
#ifndef __CONFIG_H__
21
#define __CONFIG_H__
22
23
#include <inttypes.h>
24
#include <libbase/libbase.h>
25
#include <libbase/plist.h>
26
#include <stddef.h>
27
28
#include "
toolkit/toolkit.h
"
29
#include "
files.h
"
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
// __cplusplus
34
36
typedef
enum
{
38
WLMAKER_CONFIG_DECORATION_SUGGEST_CLIENT
,
40
WLMAKER_CONFIG_DECORATION_SUGGEST_SERVER
,
42
WLMAKER_CONFIG_DECORATION_ENFORCE_CLIENT
,
44
WLMAKER_CONFIG_DECORATION_ENFORCE_SERVER
45
}
wlmaker_config_decoration_t
;
46
48
typedef
struct
{
50
wlmtk_style_fill_t
fill
;
52
wlmtk_style_font_t
font
;
54
uint32_t
text_color
;
55
}
wlmaker_config_task_list_style_t
;
56
58
typedef
struct
{
60
wlmtk_style_font_t
font
;
62
uint32_t
text_color
;
63
}
wlmaker_config_clip_style_t
;
64
66
typedef
struct
{
68
char
*
name_ptr
;
70
uint64_t
size
;
71
}
wlmaker_config_cursor_style_t
;
72
74
typedef
struct
{
76
uint32_t
background_color
;
78
wlmtk_tile_style_t
tile
;
80
wlmtk_dock_style_t
dock
;
82
wlmtk_window_style_t
window
;
84
wlmtk_menu_style_t
menu
;
86
wlmaker_config_clip_style_t
clip
;
88
wlmaker_config_task_list_style_t
task_list
;
90
wlmaker_config_cursor_style_t
cursor
;
91
}
wlmaker_config_style_t
;
92
93
extern
const
float
config_output_scale
;
94
114
bspl_object_t *
wlmaker_config_object_load
(
115
wlmaker_files_t
*files_ptr,
116
const
char
*name_ptr,
117
const
char
*arg_fname_ptr,
118
const
char
*xdg_config_fname_ptr,
119
const
uint8_t *default_data_ptr,
120
size_t
default_data_size);
121
133
bspl_dict_t *
wlmaker_config_load
(
134
wlmaker_files_t
*files_ptr,
135
const
char
*fname_ptr);
136
147
bspl_dict_t *
wlmaker_state_load
(
148
wlmaker_files_t
*files_ptr,
149
const
char
*fname_ptr);
150
151
extern
const
bspl_desc_t
wlmaker_config_style_desc
[];
152
154
extern
const
bs_test_set_t
wlmaker_config_test_set
;
155
156
#ifdef __cplusplus
157
}
// extern "C"
158
#endif
// __cplusplus
159
160
#endif
/* __CONFIG_H__ */
161
/* == End of config.h ====================================================== */
config_output_scale
const float config_output_scale
Definition
config.c:57
wlmaker_config_test_set
const bs_test_set_t wlmaker_config_test_set
Definition
config.c:498
wlmaker_config_style_desc
const bspl_desc_t wlmaker_config_style_desc[]
Definition
config.c:285
wlmaker_config_load
bspl_dict_t * wlmaker_config_load(wlmaker_files_t *files_ptr, const char *fname_ptr)
Definition
config.c:340
wlmaker_config_decoration_t
wlmaker_config_decoration_t
Definition
config.h:36
WLMAKER_CONFIG_DECORATION_SUGGEST_CLIENT
@ WLMAKER_CONFIG_DECORATION_SUGGEST_CLIENT
Definition
config.h:38
WLMAKER_CONFIG_DECORATION_SUGGEST_SERVER
@ WLMAKER_CONFIG_DECORATION_SUGGEST_SERVER
Definition
config.h:40
WLMAKER_CONFIG_DECORATION_ENFORCE_CLIENT
@ WLMAKER_CONFIG_DECORATION_ENFORCE_CLIENT
Definition
config.h:42
WLMAKER_CONFIG_DECORATION_ENFORCE_SERVER
@ WLMAKER_CONFIG_DECORATION_ENFORCE_SERVER
Definition
config.h:44
wlmaker_config_object_load
bspl_object_t * wlmaker_config_object_load(wlmaker_files_t *files_ptr, const char *name_ptr, const char *arg_fname_ptr, const char *xdg_config_fname_ptr, const uint8_t *default_data_ptr, size_t default_data_size)
Definition
config.c:316
wlmaker_state_load
bspl_dict_t * wlmaker_state_load(wlmaker_files_t *files_ptr, const char *fname_ptr)
Definition
config.c:356
files.h
wlmaker_files_t
struct _wlmaker_files_t wlmaker_files_t
Definition
files.h:26
wlmaker_config_clip_style_t
Definition
config.h:58
wlmaker_config_clip_style_t::text_color
uint32_t text_color
Definition
config.h:62
wlmaker_config_clip_style_t::font
wlmtk_style_font_t font
Definition
config.h:60
wlmaker_config_cursor_style_t
Definition
config.h:66
wlmaker_config_cursor_style_t::size
uint64_t size
Definition
config.h:70
wlmaker_config_cursor_style_t::name_ptr
char * name_ptr
Definition
config.h:68
wlmaker_config_style_t
Definition
config.h:74
wlmaker_config_style_t::tile
wlmtk_tile_style_t tile
Definition
config.h:78
wlmaker_config_style_t::cursor
wlmaker_config_cursor_style_t cursor
Definition
config.h:90
wlmaker_config_style_t::task_list
wlmaker_config_task_list_style_t task_list
Definition
config.h:88
wlmaker_config_style_t::clip
wlmaker_config_clip_style_t clip
Definition
config.h:86
wlmaker_config_style_t::menu
wlmtk_menu_style_t menu
Definition
config.h:84
wlmaker_config_style_t::window
wlmtk_window_style_t window
Definition
config.h:82
wlmaker_config_style_t::dock
wlmtk_dock_style_t dock
Definition
config.h:80
wlmaker_config_style_t::background_color
uint32_t background_color
Definition
config.h:76
wlmaker_config_task_list_style_t
Definition
config.h:48
wlmaker_config_task_list_style_t::fill
wlmtk_style_fill_t fill
Definition
config.h:50
wlmaker_config_task_list_style_t::text_color
uint32_t text_color
Definition
config.h:54
wlmaker_config_task_list_style_t::font
wlmtk_style_font_t font
Definition
config.h:52
wlmtk_dock_style_t
Definition
style.h:120
wlmtk_menu_style_t
Definition
menu.h:44
wlmtk_style_fill_t
Definition
style.h:73
wlmtk_style_font_t
Definition
style.h:101
wlmtk_tile_style_t
Definition
tile.h:40
wlmtk_window_style_t
Definition
style.h:180
toolkit.h
Generated by
1.17.0