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