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
));
89 /* Creates a new Action from the name of the action
90 A few action types need data set after making this call still. Check if
91 the returned action's "func" is one of these.
92 action_execute - the path needs to be set
93 action_restart - the path can optionally be set
94 action_desktop - the destination desktop needs to be set
96 Action
*action_from_string(char *name
);
97 void action_free(Action
*a
);
100 void action_execute(union ActionData
*data
);
102 void action_focus(union ActionData
*data
);
104 void action_unfocus(union ActionData
*data
);
106 void action_iconify(union ActionData
*data
);
108 void action_raise(union ActionData
*data
);
110 void action_lower(union ActionData
*data
);
112 void action_focusraise(union ActionData
*data
);
114 void action_close(union ActionData
*data
);
116 void action_kill(union ActionData
*data
);
118 void action_shade(union ActionData
*data
);
120 void action_unshade(union ActionData
*data
);
122 void action_toggle_shade(union ActionData
*data
);
124 void action_toggle_omnipresent(union ActionData
*data
);
125 /* MoveResizeRelative */
126 void action_move_relative(union ActionData
*data
);
127 /* MoveResizeRelative */
128 void action_resize_relative(union ActionData
*data
);
130 void action_maximize_full(union ActionData
*data
);
132 void action_unmaximize_full(union ActionData
*data
);
134 void action_toggle_maximize_full(union ActionData
*data
);
136 void action_maximize_horz(union ActionData
*data
);
138 void action_unmaximize_horz(union ActionData
*data
);
140 void action_toggle_maximize_horz(union ActionData
*data
);
142 void action_maximize_vert(union ActionData
*data
);
144 void action_unmaximize_vert(union ActionData
*data
);
146 void action_toggle_maximize_vert(union ActionData
*data
);
148 void action_send_to_desktop(union ActionData
*data
);
149 /* SendToNextPreviousDesktop */
150 void action_send_to_next_desktop(union ActionData
*data
);
151 /* SendToNextPreviousDesktop */
152 void action_send_to_previous_desktop(union ActionData
*data
);
154 void action_desktop(union ActionData
*data
);
155 /* NextPreviousDesktop */
156 void action_next_desktop(union ActionData
*data
);
157 /* NextPreviousDesktop */
158 void action_previous_desktop(union ActionData
*data
);
159 /* NextPreviousDesktop */
160 void action_next_desktop_column(union ActionData
*data
);
161 /* NextPreviousDesktop */
162 void action_previous_desktop_column(union ActionData
*data
);
163 /* NextPreviousDesktop */
164 void action_next_desktop_row(union ActionData
*data
);
165 /* NextPreviousDesktop */
166 void action_previous_desktop_row(union ActionData
*data
);
168 void action_toggle_decorations(union ActionData
*data
);
170 void action_move(union ActionData
*data
);
172 void action_resize(union ActionData
*data
);
174 void action_restart(union ActionData
*data
);
176 void action_exit(union ActionData
*data
);