OGLplus
(0.59.0)
a C++ wrapper for rendering APIs
eagine
interop
x11
gc.hpp
Go to the documentation of this file.
1
9
#ifndef EAGINE_INTEROP_X11_GC_HPP
10
#define EAGINE_INTEROP_X11_GC_HPP
11
12
#include "
display.hpp
"
13
#include "
pixmap.hpp
"
14
15
#include <X11/Xlib.h>
16
#include <stdexcept>
17
18
namespace
eagine::x11
{
19
20
class
gc :
public
display_object<::GC> {
21
public
:
22
gc(
const
display& dpy,
const
pixmap& pmp)
23
: display_object<::GC>(
24
dpy,
25
::XCreateGC(dpy, pmp, 0, nullptr),
26
::XFreeGC,
27
"Error creating X GC (graphics context)"
) {}
28
};
29
30
}
// namespace eagine::x11
31
32
#endif
pixmap.hpp
eagine::x11
X11 wrapper code is placed in this namespace.
Definition:
x11.hpp:11
display.hpp
Copyright © 2015-2021
Matúš Chochlík
.
<
chochlik -at -gmail.com
>
Documentation generated on Tue Apr 13 2021 by
Doxygen
(version 1.8.17).