17 #ifndef DGL_CAIRO_HPP_INCLUDED
18 #define DGL_CAIRO_HPP_INCLUDED
20 #include "ImageBase.hpp"
21 #include "ImageBaseWidgets.hpp"
22 #include "SubWidget.hpp"
24 #include <cairo/cairo.h>
57 CairoImage(
const char* rawData, uint width, uint height, ImageFormat format);
81 ImageFormat format = kImageFormatBGRA) noexcept
override;
94 inline void loadFromMemory(
const char* rawData, uint w, uint h, ImageFormat format = kImageFormatBGRA)
102 cairo_surface_t* surface;
112 template <
class BaseW
idget>
157 void onDisplay()
override
Definition: Window.hpp:50
Definition: Application.hpp:34
void drawAt(const GraphicsContext &context, const Point< int > &pos) override
CairoImage & operator=(const CairoImage &image) noexcept
Definition: ImageBaseWidgets.hpp:28
void loadFromMemory(const char *rawData, const Size< uint > &size, ImageFormat format=kImageFormatBGRA) noexcept override
Definition: ImageBase.hpp:44