aboutsummaryrefslogtreecommitdiff
path: root/pugl/pugl/pugl_cairo.hpp
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2020-10-02 13:39:13 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2020-10-02 13:39:13 +0200
commitfc6c5a6882d9b0c76097d4720f06d21a226f1a77 (patch)
treefa4952b857e6108d6b338177986c8989650099f6 /pugl/pugl/pugl_cairo.hpp
parent86db492597a0006f546ce4b32342d03a7045ec08 (diff)
downloadvm.lv2-fc6c5a6882d9b0c76097d4720f06d21a226f1a77.tar.xz
Squashed 'subprojects/nk_pugl/' changes from abbf3be3..93f305cb
93f305cb Merge commit 'bfea30b198e3ab18cc645914ff61ce5a6964755c' into master bfea30b1 Squashed 'pugl/' changes from 8f28d8c9..1b1a1c3a 32ccfd5c meson: add missing dependency on glu. git-subtree-dir: subprojects/nk_pugl git-subtree-split: 93f305cbed22b904a0d5892413a41493293da742
Diffstat (limited to 'pugl/pugl/pugl_cairo.hpp')
-rw-r--r--pugl/pugl/pugl_cairo.hpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/pugl/pugl/pugl_cairo.hpp b/pugl/pugl/pugl_cairo.hpp
new file mode 100644
index 0000000..5b17ab7
--- /dev/null
+++ b/pugl/pugl/pugl_cairo.hpp
@@ -0,0 +1,50 @@
+/*
+ Copyright 2012-2020 David Robillard <d@drobilla.net>
+
+ Permission to use, copy, modify, and/or distribute this software for any
+ purpose with or without fee is hereby granted, provided that the above
+ copyright notice and this permission notice appear in all copies.
+
+ THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+*/
+
+/**
+ @file pugl_cairo.hpp
+ @brief Declaration of Cairo backend accessor for C++.
+*/
+
+#ifndef PUGL_PUGL_CAIRO_HPP
+#define PUGL_PUGL_CAIRO_HPP
+
+#include "pugl/pugl.h"
+#include "pugl/pugl_cairo.h"
+
+namespace pugl {
+
+/**
+ @defgroup cairoxx Cairo
+ Cairo graphics support.
+ @ingroup pugl_cxx
+ @{
+*/
+
+/// @copydoc puglCairoBackend
+static inline const PuglBackend*
+cairoBackend()
+{
+ return puglCairoBackend();
+}
+
+/**
+ @}
+*/
+
+} // namespace pugl
+
+#endif // PUGL_PUGL_CAIRO_HPP