#ifndef PANGO_HH #define PANGO_HH #include #include namespace pango { namespace priv { struct GObjectDelete { void operator()(gpointer ptr) const { g_object_unref(ptr); } }; struct PangoFontMetricsDelete { void operator()(PangoFontMetrics* ptr) const { pango_font_metrics_unref(ptr); } }; struct PangoFontDescriptionDelete { void operator()(PangoFontDescription* ptr) const { pango_font_description_free(ptr); } }; } // namespace priv typedef std::unique_ptr unique_layout; typedef std::unique_ptr unique_font_description; typedef std::unique_ptr unique_font_metrics; } // namespace pango #endif // PANGO_HH