2016-01-23 19:55:01 +00:00
|
|
|
#ifndef _SWAYBAR_RENDER_H
|
|
|
|
#define _SWAYBAR_RENDER_H
|
|
|
|
|
|
|
|
#include "config.h"
|
2016-01-24 01:34:20 +00:00
|
|
|
#include "bar.h"
|
2016-01-23 19:55:01 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Render swaybar.
|
|
|
|
*/
|
2016-01-24 01:34:20 +00:00
|
|
|
void render(struct output *output, struct config *config, struct status_line *line);
|
2016-01-23 19:55:01 +00:00
|
|
|
|
2016-01-23 23:23:09 +00:00
|
|
|
/**
|
|
|
|
* Set window height and modify internal spacing accordingly.
|
|
|
|
*/
|
|
|
|
void set_window_height(struct window *window, int height);
|
|
|
|
|
2016-07-11 03:47:10 +00:00
|
|
|
/**
|
|
|
|
* Compute the size of a workspace name
|
|
|
|
*/
|
|
|
|
void workspace_button_size(struct window *window, const char *workspace_name, int *width, int *height);
|
|
|
|
|
2016-01-23 19:55:01 +00:00
|
|
|
#endif /* _SWAYBAR_RENDER_H */
|