1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2025-02-10 15:46:58 -05:00
polybar/include/x11/window.hpp

25 lines
577 B
C++
Raw Normal View History

2016-06-15 05:32:35 +02:00
#pragma once
#include <xcb/xcb.h>
2016-11-26 06:13:20 +01:00
#include <xcb/xcb_aux.h>
2016-12-26 09:40:15 +01:00
#include <xpp/window.hpp>
2016-11-26 06:13:20 +01:00
2016-06-15 05:32:35 +02:00
#include "common.hpp"
2016-11-19 06:22:44 +01:00
POLYBAR_NS
2016-06-15 05:32:35 +02:00
2016-12-26 09:40:15 +01:00
class connection;
2016-06-15 05:32:35 +02:00
2016-12-26 09:40:15 +01:00
class window : public xpp::window<connection&> {
2016-06-15 05:32:35 +02:00
public:
2016-12-26 09:40:15 +01:00
using xpp::window<class connection&>::window;
2016-06-15 05:32:35 +02:00
2016-12-26 09:40:15 +01:00
window& operator=(const xcb_window_t win);
2016-06-15 05:32:35 +02:00
2017-01-19 11:11:28 +01: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-06-15 05:32:35 +02:00
};
2016-11-19 06:22:44 +01:00
POLYBAR_NS_END