2016-06-15 03:32:35 +00:00
|
|
|
#pragma once
|
|
|
|
|
2016-11-26 23:46:41 +00:00
|
|
|
#include <xcb/xcb.h>
|
2016-11-26 05:13:20 +00:00
|
|
|
#include <xcb/xcb_aux.h>
|
2016-12-26 08:40:15 +00:00
|
|
|
#include <xpp/window.hpp>
|
2016-11-26 05:13:20 +00:00
|
|
|
|
2016-06-15 03:32:35 +00:00
|
|
|
#include "common.hpp"
|
|
|
|
|
2016-11-19 05:22:44 +00:00
|
|
|
POLYBAR_NS
|
2016-06-15 03:32:35 +00:00
|
|
|
|
2016-12-26 08:40:15 +00:00
|
|
|
class connection;
|
2016-06-15 03:32:35 +00:00
|
|
|
|
2016-12-26 08:40:15 +00:00
|
|
|
class window : public xpp::window<connection&> {
|
2016-06-15 03:32:35 +00:00
|
|
|
public:
|
2016-12-26 08:40:15 +00:00
|
|
|
using xpp::window<class connection&>::window;
|
2016-06-15 03:32:35 +00:00
|
|
|
|
2016-12-26 08:40:15 +00:00
|
|
|
window& operator=(const xcb_window_t win);
|
2016-06-15 03:32:35 +00:00
|
|
|
|
2016-11-13 20:50:21 +00:00
|
|
|
window create_checked(
|
2017-01-19 10:11:28 +00:00
|
|
|
short int x, short int y, unsigned short int w, unsigned short int h, unsigned int mask = 0, const xcb_params_cw_t* p = nullptr);
|
2016-11-02 19:22:45 +00:00
|
|
|
|
2017-01-19 10:11:28 +00:00
|
|
|
window change_event_mask(unsigned int mask);
|
|
|
|
window ensure_event_mask(unsigned int event);
|
2016-11-19 03:03:18 +00:00
|
|
|
|
2017-01-19 10:11:28 +00:00
|
|
|
window reconfigure_geom(unsigned short int w, unsigned short int h, short int x = 0, short int y = 0);
|
|
|
|
window reconfigure_pos(short int x, short int y);
|
|
|
|
window reconfigure_struts(unsigned short int w, unsigned short int h, short int x, bool bottom = false);
|
2016-11-04 17:54:33 +00:00
|
|
|
|
2016-11-12 11:56:39 +00:00
|
|
|
void redraw();
|
2016-12-31 06:39:50 +00:00
|
|
|
|
|
|
|
void visibility_notify(xcb_visibility_t state);
|
2016-06-15 03:32:35 +00:00
|
|
|
};
|
|
|
|
|
2016-11-19 05:22:44 +00:00
|
|
|
POLYBAR_NS_END
|