Hermes
0.7.0
Linux game streaming host
Toggle main menu visibility
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
15
extern
"C"
struct
_XDisplay;
16
17
namespace
egl {
18
class
cursor_t
;
19
}
20
21
namespace
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
egl::cursor_t
Definition
graphics.h:267
platf::x11::cursor_t
Definition
x11grab.h:29
platf::x11::cursor_t::blend
void blend(img_t &img, int offsetX, int offsetY)
Definition
x11grab.cpp:877
common.h
Declarations for common platform specific utilities.
platf::img_t
Definition
common.h:346
utility.h
Declarations for utility functions.
src
platform
linux
x11grab.h
Generated by
1.18.0