2 * i3bar - an xcb-based status- and ws-bar for i3
4 * © 2010 Axel Wagner and contributors
6 * See file LICNSE for license information
25 struct parsed_colors_t {
28 uint32_t active_ws_fg;
29 uint32_t active_ws_bg;
30 uint32_t inactive_ws_fg;
31 uint32_t inactive_ws_bg;
32 uint32_t urgent_ws_bg;
33 uint32_t urgent_ws_fg;
37 * Initialize xcb and use the specified fontname for text-rendering
43 * Initialize the colors
46 void init_colors(const struct colors_t *colors);
49 * Cleanup the xcb-stuff.
50 * Called once, before the program terminates.
56 * Get the earlier requested atoms and save them in the prepared data-structure
62 * Destroy the bar of the specified output
65 void destroy_window(i3_output *output);
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);