wlmaker
Toggle main menu visibility
Loading...
Searching...
No Matches
src
config.h
Go to the documentation of this file.
1
/* ========================================================================= */
21
#ifndef __CONFIG_H__
22
#define __CONFIG_H__
23
24
#include <inttypes.h>
25
#include <libbase/libbase.h>
26
#include <libbase/plist.h>
27
#include <stdbool.h>
28
#include <stddef.h>
29
30
#include "
files.h
"
31
#include "
input/cursor.h
"
32
#include "
task_list.h
"
// IWYU pragma: keep
33
#include "
toolkit/toolkit.h
"
34
35
#ifdef __cplusplus
36
extern
"C"
{
37
#endif
// __cplusplus
38
40
typedef
enum
{
42
WLMAKER_CONFIG_DECORATION_SUGGEST_CLIENT
,
44
WLMAKER_CONFIG_DECORATION_SUGGEST_SERVER
,
46
WLMAKER_CONFIG_DECORATION_ENFORCE_CLIENT
,
48
WLMAKER_CONFIG_DECORATION_ENFORCE_SERVER
49
}
wlmaker_config_decoration_t
;
50
52
typedef
struct
{
54
wlmtk_style_font_t
font
;
56
uint32_t
text_color
;
57
}
wlmaker_config_clip_style_t
;
58
60
typedef
struct
{
62
uint32_t
background_color
;
64
struct
wlmtk_tile_style
tile
;
66
struct
wlmtk_dock_style
dock
;
68
struct
wlmtk_window_style
*
window_style_ptr
;
70
bool
has_window_style
;
72
struct
wlmtk_menu_style
*
menu_style_ptr
;
74
bool
has_menu_style
;
76
wlmaker_config_clip_style_t
clip
;
78
struct
wlmaker_task_list_style
task_list
;
80
struct
wlmim_cursor_style
cursor
;
81
}
wlmaker_config_style_t
;
82
102
bspl_object_t *
wlmaker_config_object_load
(
103
wlmaker_files_t
*files_ptr,
104
const
char
*
name_ptr
,
105
const
char
*arg_fname_ptr,
106
const
char
*xdg_config_fname_ptr,
107
const
uint8_t *default_data_ptr,
108
size_t
default_data_size);
109
121
bspl_dict_t *
wlmaker_config_load
(
122
wlmaker_files_t
*files_ptr,
123
const
char
*fname_ptr);
124
135
bspl_dict_t *
wlmaker_state_load
(
136
wlmaker_files_t
*files_ptr,
137
const
char
*fname_ptr);
138
152
bool
wlmaker_theme_load
(
153
wlmaker_files_t
*files_ptr,
154
const
char
*fname_ptr,
155
wlmaker_config_style_t
*style_ptr);
156
158
void
wlmaker_config_style_release
(
wlmaker_config_style_t
*style_ptr);
159
160
extern
const
bspl_desc_t
wlmaker_config_style_desc
[];
161
163
extern
const
bs_test_set_t
wlmaker_config_test_set
;
164
165
#ifdef __cplusplus
166
}
// extern "C"
167
#endif
// __cplusplus
168
169
#endif
/* __CONFIG_H__ */
170
/* == End of config.h ====================================================== */
wlmaker_config_test_set
const bs_test_set_t wlmaker_config_test_set
Definition
config.c:261
wlmaker_config_style_desc
const bspl_desc_t wlmaker_config_style_desc[]
Definition
config.c:65
wlmaker_config_load
bspl_dict_t * wlmaker_config_load(wlmaker_files_t *files_ptr, const char *fname_ptr)
Definition
config.c:126
wlmaker_config_style_release
void wlmaker_config_style_release(wlmaker_config_style_t *style_ptr)
wlmaker_config_decoration_t
wlmaker_config_decoration_t
Definition
config.h:40
WLMAKER_CONFIG_DECORATION_SUGGEST_CLIENT
@ WLMAKER_CONFIG_DECORATION_SUGGEST_CLIENT
Definition
config.h:42
WLMAKER_CONFIG_DECORATION_SUGGEST_SERVER
@ WLMAKER_CONFIG_DECORATION_SUGGEST_SERVER
Definition
config.h:44
WLMAKER_CONFIG_DECORATION_ENFORCE_CLIENT
@ WLMAKER_CONFIG_DECORATION_ENFORCE_CLIENT
Definition
config.h:46
WLMAKER_CONFIG_DECORATION_ENFORCE_SERVER
@ WLMAKER_CONFIG_DECORATION_ENFORCE_SERVER
Definition
config.h:48
wlmaker_theme_load
bool wlmaker_theme_load(wlmaker_files_t *files_ptr, const char *fname_ptr, wlmaker_config_style_t *style_ptr)
Definition
config.c:158
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:102
wlmaker_state_load
bspl_dict_t * wlmaker_state_load(wlmaker_files_t *files_ptr, const char *fname_ptr)
Definition
config.c:142
cursor.h
files.h
wlmaker_files_t
struct _wlmaker_files_t wlmaker_files_t
Definition
files.h:27
wlmaker_config_clip_style_t
Definition
config.h:52
wlmaker_config_clip_style_t::text_color
uint32_t text_color
Definition
config.h:56
wlmaker_config_clip_style_t::font
wlmtk_style_font_t font
Definition
config.h:54
wlmaker_config_style_t
Definition
config.h:60
wlmaker_config_style_t::cursor
struct wlmim_cursor_style cursor
Definition
config.h:80
wlmaker_config_style_t::clip
wlmaker_config_clip_style_t clip
Definition
config.h:76
wlmaker_config_style_t::dock
struct wlmtk_dock_style dock
Definition
config.h:66
wlmaker_config_style_t::has_menu_style
bool has_menu_style
Definition
config.h:74
wlmaker_config_style_t::has_window_style
bool has_window_style
Definition
config.h:70
wlmaker_config_style_t::tile
struct wlmtk_tile_style tile
Definition
config.h:64
wlmaker_config_style_t::window_style_ptr
struct wlmtk_window_style * window_style_ptr
Definition
config.h:68
wlmaker_config_style_t::menu_style_ptr
struct wlmtk_menu_style * menu_style_ptr
Definition
config.h:72
wlmaker_config_style_t::task_list
struct wlmaker_task_list_style task_list
Definition
config.h:78
wlmaker_config_style_t::background_color
uint32_t background_color
Definition
config.h:62
wlmaker_task_list_style
Definition
task_list.h:35
wlmim_cursor_style
Definition
cursor.h:44
wlmim_cursor_style::name_ptr
char * name_ptr
Definition
cursor.h:48
wlmtk_dock_style
Definition
dock.h:52
wlmtk_menu_style
Definition
menu.h:49
wlmtk_style_font_t
Definition
style.h:105
wlmtk_tile_style
Definition
tile.h:44
wlmtk_window_style
Definition
window.h:99
task_list.h
toolkit.h
Generated by
1.17.0