Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
x11grab.h
Go to the documentation of this file.
1
5#pragma once
6
7// standard includes
8#include <optional>
9
10// local includes
11#include "src/platform/common.h"
12#include "src/utility.h"
13
14// X11 Display
15extern "C" struct _XDisplay;
16
17namespace egl {
18 class cursor_t;
19}
20
21namespace platf::x11 {
22 struct cursor_ctx_raw_t;
23 void freeCursorCtx(cursor_ctx_raw_t *ctx);
24 void freeDisplay(_XDisplay *xdisplay);
25
26 using cursor_ctx_t = util::safe_ptr<cursor_ctx_raw_t, freeCursorCtx>;
27 using xdisplay_t = util::safe_ptr<_XDisplay, freeDisplay>;
28
29 class cursor_t {
30 public:
31 static std::optional<cursor_t> make();
32
33 void capture(egl::cursor_t &img);
34
41 void blend(img_t &img, int offsetX, int offsetY);
42
43 cursor_ctx_t ctx;
44 };
45
46 xdisplay_t make_display();
47} // namespace platf::x11
void blend(img_t &img, int offsetX, int offsetY)
Definition x11grab.cpp:877
Declarations for common platform specific utilities.
Declarations for utility functions.