i3/i3bar/include/xcb.h

52 lines
880 B
C
Raw Normal View History

2010-07-21 19:15:18 -04:00
#ifndef XCB_H_
#define XCB_H_
int font_height;
2010-07-21 19:15:18 -04:00
2010-08-06 20:10:05 -04:00
/*
* Initialize xcb and use the specified fontname for text-rendering
*
*/
2010-07-21 19:15:18 -04:00
void init_xcb();
2010-08-06 20:10:05 -04:00
/*
* Cleanup the xcb-stuff.
* Called once, before the program terminates.
*
*/
2010-07-21 19:15:18 -04:00
void clean_xcb();
2010-08-06 20:10:05 -04:00
/*
* Get the earlier requested atoms and save them in the prepared data-structure
*
*/
2010-07-21 19:15:18 -04:00
void get_atoms();
2010-08-06 20:10:05 -04:00
/*
* Destroy the bar of the specified output
*
*/
void destroy_window(i3_output *output);
/*
* Reconfigure all bars and create new for newly activated outputs
*
*/
2010-08-05 21:32:05 -04:00
void reconfig_windows();
2010-08-06 20:10:05 -04:00
/*
* Render the bars, with buttons and statusline
*
*/
2010-08-03 21:34:18 -04:00
void draw_bars();
2010-08-06 20:10:05 -04:00
/*
* Calculate the rendered width of a string with the configured font.
* The string has to be encoded in ucs2 and glyph_len has to be the length
* of the string (in width)
*
*/
2010-08-05 21:32:05 -04:00
int get_string_width(xcb_char2b_t *string, int glyph_len);
2010-07-21 19:15:18 -04:00
#endif