Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
pango.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2022 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
12
13#ifndef __UTILS_PANGO_H__
14#define __UTILS_PANGO_H__
15
16#include <memory>
17
18#include "gui/backend/gtk_widgets/gtk_wrapper.h"
19
25
26struct PangoLayoutDeleter
27{
28 PangoLayoutDeleter () {};
29
30 void operator() (PangoLayout * layout) const { g_object_unref (layout); };
31};
32
33using PangoLayoutUniquePtr = std::unique_ptr<PangoLayout, PangoLayoutDeleter>;
34
35PangoLayoutUniquePtr
36z_pango_create_layout_from_description (
37 GtkWidget * widget,
38 PangoFontDescription * descr);
39
43
44#endif /* __UTILS_PANGO_H__ */