howm
howm
workspace.h
Go to the documentation of this file.
1 #ifndef WORKSPACE_H
2 #define WORKSPACE_H
3 
4 #include <stddef.h>
5 
16 void kill_ws(monitor_t *m, workspace_t *ws);
17 void focus_next_ws(void);
18 workspace_t *offset_ws(workspace_t *ws, int offset);
19 void focus_prev_ws(void);
20 void focus_last_ws(void);
21 void change_ws(const workspace_t *ws);
22 uint32_t workspace_to_index(const workspace_t *ws);
23 workspace_t *index_to_workspace(const monitor_t *m, uint32_t index);
24 void add_ws(monitor_t *m);
25 void remove_ws(monitor_t *m, workspace_t *ws);
26 
27 #endif
void focus_last_ws(void)
Focus the last focused workspace.
Definition: workspace.c:106
void focus_next_ws(void)
Focus the next workspace.
Definition: workspace.c:117
void remove_ws(monitor_t *m, workspace_t *ws)
Remove a workspace and update the global state.
Definition: workspace.c:237
void change_ws(const workspace_t *ws)
Change to a different workspace and map the correct windows.
Definition: workspace.c:130
uint32_t workspace_to_index(const workspace_t *ws)
Find and return a workspace&#39;s index in the workspace list.
Definition: workspace.c:165
void focus_prev_ws(void)
Focus the previous workspace.
Definition: workspace.c:95
Definition: types.h:48
void kill_ws(monitor_t *m, workspace_t *ws)
Kills the given workspace.
Definition: workspace.c:29
void add_ws(monitor_t *m)
Create a new workspace and update global state.
Definition: workspace.c:201
workspace_t * index_to_workspace(const monitor_t *m, uint32_t index)
Convert a workspace&#39;s index in a workspace list to an index.
Definition: workspace.c:186
Definition: types.h:73
workspace_t * offset_ws(workspace_t *ws, int offset)
Return a workspace after offsetting.
Definition: workspace.c:77