Fix includes, fix copy ctor and mov ctor for CairoWrapper
Some checks failed
Build ptprnt / build (push) Failing after 1m1s
Some checks failed
Build ptprnt / build (push) Failing after 1m1s
This commit is contained in:
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -90,6 +90,9 @@
|
||||
"cSpell.words": [
|
||||
"fakelabel",
|
||||
"fontsize",
|
||||
"gboolean",
|
||||
"gint",
|
||||
"gobject",
|
||||
"halign",
|
||||
"libusb",
|
||||
"ptrnt",
|
||||
|
||||
@@ -33,6 +33,12 @@ class CairoWrapper : public ICairoWrapper {
|
||||
public:
|
||||
~CairoWrapper() override = default;
|
||||
|
||||
// No copy, no move
|
||||
CairoWrapper(const CairoWrapper&) = delete;
|
||||
CairoWrapper& operator=(const CairoWrapper&) = delete;
|
||||
CairoWrapper(CairoWrapper&&) = delete;
|
||||
CairoWrapper& operator=(CairoWrapper&&) = delete;
|
||||
|
||||
// Cairo image surface functions
|
||||
cairo_surface_t* cairo_image_surface_create(cairo_format_t format, int width, int height) override {
|
||||
return ::cairo_image_surface_create(format, width, height);
|
||||
@@ -86,9 +92,7 @@ class CairoWrapper : public ICairoWrapper {
|
||||
|
||||
PangoContext* pango_cairo_create_context(cairo_t* cr) override { return ::pango_cairo_create_context(cr); }
|
||||
|
||||
void pango_cairo_show_layout(cairo_t* cr, PangoLayout* layout) override {
|
||||
::pango_cairo_show_layout(cr, layout);
|
||||
}
|
||||
void pango_cairo_show_layout(cairo_t* cr, PangoLayout* layout) override { ::pango_cairo_show_layout(cr, layout); }
|
||||
|
||||
// Pango layout functions
|
||||
PangoLayout* pango_layout_new(PangoContext* context) override { return ::pango_layout_new(context); }
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <cairo.h>
|
||||
#include <pango/pango.h>
|
||||
#include <pango/pangocairo.h>
|
||||
|
||||
namespace ptprnt::graphics {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user