File: window.hpp

package info (click to toggle)
polybar 3.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,108 kB
  • sloc: cpp: 30,424; python: 3,750; sh: 284; makefile: 83
file content (24 lines) | stat: -rw-r--r-- 550 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include <xcb/xcb.h>
#include <xcb/xcb_aux.h>

#include <xpp/window.hpp>

#include "common.hpp"

POLYBAR_NS

class connection;

class window : public xpp::window<connection&> {
 public:
  window(const window&) = default;
  using xpp::window<class connection&>::window;

  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(uint32_t w, uint32_t strut, uint32_t x, bool bottom = false);
};

POLYBAR_NS_END