-
Notifications
You must be signed in to change notification settings - Fork 3
/
Shape.h
48 lines (37 loc) · 901 Bytes
/
Shape.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// Created by hector on 15-04-19.
//
#ifndef EXAMPLE_SHAPE_H
#define EXAMPLE_SHAPE_H
#include <stdio.h>
#include <stdlib.h>
#include <X11/Xatom.h>
#include <X11/Xlib.h>
#include <X11/extensions/shape.h>
#include <zconf.h>
#include <cstring>
class ShapeWindows {
public:
Window show(int width, int height);
void move(int x, int y);
void paint();
private:
void paintCircle();
void removeBorderCircle();
struct MotifWmHints {
unsigned long flags;
unsigned long functions;
unsigned long decorations;
long input_mode;
unsigned long status;
};
static MotifWmHints *getMotifWindowsHints(Display *display, Window window);
static void removeTittleBar(Display *display, Window window);
private:
Display *m_display;
Window m_window;
int m_width;
int m_height;
int m_screen;
};
#endif //EXAMPLE_SHAPE_H