2 * i3bar - an xcb-based status- and ws-bar for i3
4 * © 2010-2011 Axel Wagner and contributors
6 * See file LICNSE for license information
13 //#include "outputs.h"
15 struct xcb_color_strings_t {
28 typedef struct xcb_colors_t xcb_colors_t;
31 * Initialize xcb and use the specified fontname for text-rendering
37 * Initialize the colors
40 void init_colors(const struct xcb_color_strings_t *colors);
43 * Cleanup the xcb-stuff.
44 * Called once, before the program terminates.
50 * Get the earlier requested atoms and save them in the prepared data-structure
56 * Destroy the bar of the specified output
59 void destroy_window(i3_output *output);
62 * Reallocate the statusline-buffer
65 void realloc_sl_buffer();
68 * Reconfigure all bars and create new for newly activated outputs
71 void reconfig_windows();
74 * Render the bars, with buttons and statusline
80 * Redraw the bars, i.e. simply copy the buffer to the barwindow
86 * Predicts the length of text based on cached data.
87 * The string has to be encoded in ucs2 and glyph_len has to be the length
88 * of the string (in glyphs).
91 uint32_t predict_text_extents(xcb_char2b_t *text, uint32_t length);