The Battle for Wesnoth  1.19.9+dev
Namespaces | Typedefs | Functions | Variables
cairo.hpp File Reference
#include "sdl/point.hpp"
#include <cairo.h>
#include <memory>
Include dependency graph for cairo.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 cairo
 

Typedefs

using cairo::surface_ptr = std::unique_ptr< cairo_surface_t, void(*)(cairo_surface_t *)>
 
using cairo::context_ptr = std::unique_ptr< cairo_t, void(*)(cairo_t *)>
 

Functions

surface_ptr cairo::create_surface (uint8_t *buffer, const point &size)
 
context_ptr cairo::create_context (const surface_ptr &surf)
 

Variables

constexpr cairo_format_t cairo::format = CAIRO_FORMAT_ARGB32
 Color format for cairo surfaces. More...