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.
15 struct DirectionalAction{
29 struct MoveResizeRelative {
34 struct SendToDesktop {
40 struct SendToNextPreviousDesktop {
53 int layer; /* < 0 = below, 0 = normal, > 0 = above */
56 struct NextPreviousDesktop {
65 guint32 corner; /* prop_atoms.net_wm_moveresize_* */
86 struct DirectionalAction diraction;
87 struct Execute execute;
88 struct ClientAction client;
89 struct MoveResizeRelative relative;
90 struct SendToDesktop sendto;
91 struct SendToNextPreviousDesktop sendtonextprev;
92 struct Desktop desktop;
93 struct NextPreviousDesktop nextprevdesktop;
94 struct MoveResize moveresize;
95 struct ShowMenu showmenu;
96 struct CycleWindows cycle;
101 /* The func member acts like an enum to tell which one of the structs in
102 the data union are valid.
104 void (*func)(union ActionData *data);
105 union ActionData data;
108 Action *action_new(void (*func)(union ActionData *data));
110 /* Creates a new Action from the name of the action
111 A few action types need data set after making this call still. Check if
112 the returned action's "func" is one of these.
113 action_execute - the path needs to be set
114 action_restart - the path can optionally be set
115 action_desktop - the destination desktop needs to be set
116 action_move_relative_horz - the delta
117 action_move_relative_vert - the delta
118 action_resize_relative_horz - the delta
119 action_resize_relative_vert - the delta
122 Action *action_from_string(char *name);
123 void action_free(Action *a);
126 void action_execute(union ActionData *data);
128 void action_focus(union ActionData *data);
130 void action_unfocus(union ActionData *data);
132 void action_iconify(union ActionData *data);
134 void action_raise(union ActionData *data);
136 void action_lower(union ActionData *data);
138 void action_focusraise(union ActionData *data);
140 void action_close(union ActionData *data);
142 void action_kill(union ActionData *data);
144 void action_shade(union ActionData *data);
146 void action_shadelower(union ActionData *data);
148 void action_unshaderaise(union ActionData *data);
150 void action_unshade(union ActionData *data);
152 void action_toggle_shade(union ActionData *data);
154 void action_toggle_omnipresent(union ActionData *data);
155 /* MoveResizeRelative */
156 void action_move_relative_horz(union ActionData *data);
157 /* MoveResizeRelative */
158 void action_move_relative_vert(union ActionData *data);
159 /* MoveResizeRelative */
160 void action_resize_relative_horz(union ActionData *data);
161 /* MoveResizeRelative */
162 void action_resize_relative_vert(union ActionData *data);
164 void action_maximize_full(union ActionData *data);
166 void action_unmaximize_full(union ActionData *data);
168 void action_toggle_maximize_full(union ActionData *data);
170 void action_maximize_horz(union ActionData *data);
172 void action_unmaximize_horz(union ActionData *data);
174 void action_toggle_maximize_horz(union ActionData *data);
176 void action_maximize_vert(union ActionData *data);
178 void action_unmaximize_vert(union ActionData *data);
180 void action_toggle_maximize_vert(union ActionData *data);
182 void action_send_to_desktop(union ActionData *data);
183 /* SendToNextPreviousDesktop */
184 void action_send_to_next_desktop(union ActionData *data);
185 /* SendToNextPreviousDesktop */
186 void action_send_to_previous_desktop(union ActionData *data);
188 void action_desktop(union ActionData *data);
189 /* NextPreviousDesktop */
190 void action_next_desktop(union ActionData *data);
191 /* NextPreviousDesktop */
192 void action_previous_desktop(union ActionData *data);
193 /* NextPreviousDesktop */
194 void action_next_desktop_column(union ActionData *data);
195 /* NextPreviousDesktop */
196 void action_previous_desktop_column(union ActionData *data);
197 /* NextPreviousDesktop */
198 void action_next_desktop_row(union ActionData *data);
199 /* NextPreviousDesktop */
200 void action_previous_desktop_row(union ActionData *data);
202 void action_toggle_decorations(union ActionData *data);
204 void action_moveresize(union ActionData *data);
206 void action_restart(union ActionData *data);
208 void action_exit(union ActionData *data);
210 void action_showmenu(union ActionData *data);
212 void action_cycle_windows(union ActionData *data);
213 /* DirectionalAction */
214 void action_directional_focus(union ActionData *data);
215 /* DirectionalAction */
216 void action_movetoedge(union ActionData *data);
218 void action_send_to_layer(union ActionData *data);
220 void action_toggle_layer(union ActionData *data);