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
{
30 struct SendToDesktop
{
35 struct SendToNextPreviousDesktop
{
46 struct NextPreviousDesktop
{
68 struct Execute execute
;
69 struct ClientAction client
;
70 struct MoveResizeRelative relative
;
71 struct SendToDesktop sendto
;
72 struct SendToNextPreviousDesktop sendtonextprev
;
73 struct Desktop desktop
;
74 struct NextPreviousDesktop nextprevdesktop
;
80 /* The func member acts like an enum to tell which one of the structs in
81 the data union are valid.
83 void (*func
)(union ActionData
*data
);
84 union ActionData data
;
87 Action
*action_new(void (*func
)(union ActionData
*data
));
88 void action_free(Action
*a
);
91 void action_execute(union ActionData
*data
);
93 void action_focus(union ActionData
*data
);
95 void action_unfocus(union ActionData
*data
);
97 void action_iconify(union ActionData
*data
);
99 void action_raise(union ActionData
*data
);
101 void action_lower(union ActionData
*data
);
103 void action_focusraise(union ActionData
*data
);
105 void action_close(union ActionData
*data
);
107 void action_kill(union ActionData
*data
);
109 void action_shade(union ActionData
*data
);
111 void action_unshade(union ActionData
*data
);
113 void action_toggle_shade(union ActionData
*data
);
115 void action_toggle_omnipresent(union ActionData
*data
);
116 /* MoveResizeRelative */
117 void action_move_relative(union ActionData
*data
);
118 /* MoveResizeRelative */
119 void action_resize_relative(union ActionData
*data
);
121 void action_maximize_full(union ActionData
*data
);
123 void action_unmaximize_full(union ActionData
*data
);
125 void action_toggle_maximize_full(union ActionData
*data
);
127 void action_maximize_horz(union ActionData
*data
);
129 void action_unmaximize_horz(union ActionData
*data
);
131 void action_toggle_maximize_horz(union ActionData
*data
);
133 void action_maximize_vert(union ActionData
*data
);
135 void action_unmaximize_vert(union ActionData
*data
);
137 void action_toggle_maximize_vert(union ActionData
*data
);
139 void action_send_to_desktop(union ActionData
*data
);
140 /* SendToNextPreviousDesktop */
141 void action_send_to_next_desktop(union ActionData
*data
);
142 /* SendToNextPreviousDesktop */
143 void action_send_to_previous_desktop(union ActionData
*data
);
145 void action_desktop(union ActionData
*data
);
146 /* NextPreviousDesktop */
147 void action_next_desktop(union ActionData
*data
);
148 /* NextPreviousDesktop */
149 void action_previous_desktop(union ActionData
*data
);
150 /* NextPreviousDesktop */
151 void action_next_desktop_column(union ActionData
*data
);
152 /* NextPreviousDesktop */
153 void action_previous_desktop_column(union ActionData
*data
);
154 /* NextPreviousDesktop */
155 void action_next_desktop_row(union ActionData
*data
);
156 /* NextPreviousDesktop */
157 void action_previous_desktop_row(union ActionData
*data
);
159 void action_toggle_decorations(union ActionData
*data
);
161 void action_move(union ActionData
*data
);
163 void action_resize(union ActionData
*data
);
165 void action_restart(union ActionData
*data
);
167 void action_exit(union ActionData
*data
);