-
Notifications
You must be signed in to change notification settings - Fork 2
/
HaikuServerDecoration.h
32 lines (24 loc) · 1.01 KB
/
HaikuServerDecoration.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
#pragma once
#include "Wayland.h"
#include "WlGlobal.h"
#include "ServerDecoration.h"
#include <Window.h>
class HaikuSurface;
class HaikuServerDecorationManager;
class HaikuServerDecorationManagerGlobal: public WlGlocal {
public:
static HaikuServerDecorationManagerGlobal *Create(struct wl_display *display);
virtual ~HaikuServerDecorationManagerGlobal() = default;
void Bind(struct wl_client *wl_client, uint32_t version, uint32_t id) override;
};
class HaikuServerDecoration: public OrgKdeKwinServerDecoration {
private:
HaikuSurface *fSurface;
OrgKdeKwinServerDecoration::Mode fMode = OrgKdeKwinServerDecoration::modeNone;
public:
static HaikuServerDecoration *Create(HaikuServerDecorationManager *manager, HaikuSurface *surface, uint32_t id);
static HaikuServerDecoration *FromResource(struct wl_resource *resource) {return (HaikuServerDecoration*)WlResource::FromResource(resource);}
inline OrgKdeKwinServerDecoration::Mode Mode() {return fMode;}
window_look Look();
void HandleRequestMode(uint32_t mode) final;
};