wlmaker
Loading...
Searching...
No Matches
action.h
Go to the documentation of this file.
1/* ========================================================================= */
21#ifndef __WLMAKER_ACTION_H__
22#define __WLMAKER_ACTION_H__
23
24#include <libbase/libbase.h>
25#include <libbase/plist.h>
26#include <stdbool.h>
27
28#include "task_list.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif // __cplusplus
33
35typedef enum {
36 WLMAKER_ACTION_NONE,
37
38 WLMAKER_ACTION_QUIT,
39 WLMAKER_ACTION_LOCK_SCREEN,
40 WLMAKER_ACTION_LOCK_INHIBIT_BEGIN,
41 WLMAKER_ACTION_LOCK_INHIBIT_END,
42 WLMAKER_ACTION_LAUNCH_TERMINAL,
43 WLMAKER_ACTION_SHELL_EXECUTE,
44 WLMAKER_ACTION_EXECUTE,
45
46 WLMAKER_ACTION_WORKSPACE_TO_PREVIOUS,
47 WLMAKER_ACTION_WORKSPACE_TO_NEXT,
48 WLMAKER_ACTION_WORKSPACE_ADD,
49 WLMAKER_ACTION_WORKSPACE_DESTROY_LAST,
50
51 WLMAKER_ACTION_TASK_TO_PREVIOUS,
52 WLMAKER_ACTION_TASK_TO_NEXT,
53
54 WLMAKER_ACTION_WINDOW_RAISE,
55 WLMAKER_ACTION_WINDOW_LOWER,
56 WLMAKER_ACTION_WINDOW_TOGGLE_FULLSCREEN,
57 WLMAKER_ACTION_WINDOW_TOGGLE_MAXIMIZED,
58
59 WLMAKER_ACTION_WINDOW_MAXIMIZE,
60 WLMAKER_ACTION_WINDOW_UNMAXIMIZE,
61 WLMAKER_ACTION_WINDOW_FULLSCREEN,
62 WLMAKER_ACTION_WINDOW_SHADE,
63 WLMAKER_ACTION_WINDOW_UNSHADE,
64 WLMAKER_ACTION_WINDOW_CLOSE,
65 WLMAKER_ACTION_WINDOW_TO_NEXT_WORKSPACE,
66 WLMAKER_ACTION_WINDOW_TO_PREVIOUS_WORKSPACE,
67
68 WLMAKER_ACTION_ROOT_MENU,
69
70 WLMAKER_ACTION_THEME_LOAD_FROM_FILE,
71
72 WLMAKER_ACTION_OUTPUT_MAGNIFY,
73 WLMAKER_ACTION_OUTPUT_REDUCE,
74 WLMAKER_ACTION_OUTPUT_SAVE_STATE,
75
76 // Note: Keep these numbered consecutively.
77 WLMAKER_ACTION_SWITCH_TO_VT1,
78 WLMAKER_ACTION_SWITCH_TO_VT2,
79 WLMAKER_ACTION_SWITCH_TO_VT3,
80 WLMAKER_ACTION_SWITCH_TO_VT4,
81 WLMAKER_ACTION_SWITCH_TO_VT5,
82 WLMAKER_ACTION_SWITCH_TO_VT6,
83 WLMAKER_ACTION_SWITCH_TO_VT7,
84 WLMAKER_ACTION_SWITCH_TO_VT8,
85 WLMAKER_ACTION_SWITCH_TO_VT9,
86 WLMAKER_ACTION_SWITCH_TO_VT10,
87 WLMAKER_ACTION_SWITCH_TO_VT11,
88 WLMAKER_ACTION_SWITCH_TO_VT12,
89
91
92extern const char *wlmaker_action_config_dict_key;
93
94extern const bspl_enum_desc_t wlmaker_action_desc[];
95
98
110 bspl_dict_t *keybindings_dict_ptr,
111 bool add_logo);
112
119
129 wlmaker_action_t action,
130 void *arg_ptr);
131
133extern const bs_test_set_t wlmaker_action_test_set;
134
135#ifdef __cplusplus
136} // extern "C"
137#endif // __cplusplus
138
139#endif /* __ACTION_H__ */
140/* == End of action.h ====================================================== */
wlmaker_action_t
Definition action.h:35
const bs_test_set_t wlmaker_action_test_set
Definition action.c:718
void wlmaker_action_execute(wlmaker_server_t *server_ptr, wlmaker_action_t action, void *arg_ptr)
Definition action.c:206
void wlmaker_action_unbind_keys(wlmaker_action_handle_t *handle_ptr)
Definition action.c:188
const char * wlmaker_action_config_dict_key
Definition action.c:98
const bspl_enum_desc_t wlmaker_action_desc[]
Definition action.c:101
wlmaker_action_handle_t * wlmaker_action_bind_keys(wlmaker_server_t *server_ptr, bspl_dict_t *keybindings_dict_ptr, bool add_logo)
Definition action.c:165
Definition action.c:53
wlmaker_server_t * server_ptr
Definition action.c:57
bool add_logo
Definition action.c:59
Definition server.h:76