6 /* These have to all have a Client* at the top even if they don't use it, so
7 that I can set it blindly later on. So every function will have a Client*
8 available (possibly NULL though) if it wants it.
24 struct MoveResizeRelative {
29 struct SendToDesktop {
35 struct SendToNextPreviousDesktop {
46 struct NextPreviousDesktop {
81 struct Execute execute;
82 struct ClientAction client;
83 struct MoveResizeRelative relative;
84 struct SendToDesktop sendto;
85 struct SendToNextPreviousDesktop sendtonextprev;
86 struct Desktop desktop;
87 struct NextPreviousDesktop nextprevdesktop;
90 struct ShowMenu showMenu;
91 struct CycleWindows cycle;
95 /* The func member acts like an enum to tell which one of the structs in
96 the data union are valid.
98 void (*func)(union ActionData *data);
99 union ActionData data;
102 Action *action_new(void (*func)(union ActionData *data));
104 /* Creates a new Action from the name of the action
105 A few action types need data set after making this call still. Check if
106 the returned action's "func" is one of these.
107 action_execute - the path needs to be set
108 action_restart - the path can optionally be set
109 action_desktop - the destination desktop needs to be set
110 action_move_relative_horz - the delta
111 action_move_relative_vert - the delta
112 action_resize_relative_horz - the delta
113 action_resize_relative_vert - the delta
115 Action *action_from_string(char *name);
116 void action_free(Action *a);
119 void action_execute(union ActionData *data);
121 void action_focus(union ActionData *data);
123 void action_unfocus(union ActionData *data);
125 void action_iconify(union ActionData *data);
127 void action_raise(union ActionData *data);
129 void action_lower(union ActionData *data);
131 void action_focusraise(union ActionData *data);
133 void action_close(union ActionData *data);
135 void action_kill(union ActionData *data);
137 void action_shade(union ActionData *data);
139 void action_shadelower(union ActionData *data);
141 void action_unshaderaise(union ActionData *data);
143 void action_unshade(union ActionData *data);
145 void action_toggle_shade(union ActionData *data);
147 void action_toggle_omnipresent(union ActionData *data);
148 /* MoveResizeRelative */
149 void action_move_relative_horz(union ActionData *data);
150 /* MoveResizeRelative */
151 void action_move_relative_vert(union ActionData *data);
152 /* MoveResizeRelative */
153 void action_resize_relative_horz(union ActionData *data);
154 /* MoveResizeRelative */
155 void action_resize_relative_vert(union ActionData *data);
157 void action_maximize_full(union ActionData *data);
159 void action_unmaximize_full(union ActionData *data);
161 void action_toggle_maximize_full(union ActionData *data);
163 void action_maximize_horz(union ActionData *data);
165 void action_unmaximize_horz(union ActionData *data);
167 void action_toggle_maximize_horz(union ActionData *data);
169 void action_maximize_vert(union ActionData *data);
171 void action_unmaximize_vert(union ActionData *data);
173 void action_toggle_maximize_vert(union ActionData *data);
175 void action_send_to_desktop(union ActionData *data);
176 /* SendToNextPreviousDesktop */
177 void action_send_to_next_desktop(union ActionData *data);
178 /* SendToNextPreviousDesktop */
179 void action_send_to_previous_desktop(union ActionData *data);
181 void action_desktop(union ActionData *data);
182 /* NextPreviousDesktop */
183 void action_next_desktop(union ActionData *data);
184 /* NextPreviousDesktop */
185 void action_previous_desktop(union ActionData *data);
186 /* NextPreviousDesktop */
187 void action_next_desktop_column(union ActionData *data);
188 /* NextPreviousDesktop */
189 void action_previous_desktop_column(union ActionData *data);
190 /* NextPreviousDesktop */
191 void action_next_desktop_row(union ActionData *data);
192 /* NextPreviousDesktop */
193 void action_previous_desktop_row(union ActionData *data);
195 void action_toggle_decorations(union ActionData *data);
197 void action_move(union ActionData *data);
199 void action_resize(union ActionData *data);
201 void action_restart(union ActionData *data);
203 void action_exit(union ActionData *data);
205 void action_showmenu(union ActionData *data);
207 void action_cycle_windows(union ActionData *data);