Debian Codegraph @

lib/json/font-manager-orthography.h

raw
1 /* font-manager-orthography.h
2 *
3 * Copyright (C) 2009-2022 Jerry Casiano
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program.
17 *
18 * If not, see <http://www.gnu.org/licenses/gpl-3.0.txt>.
19 */
20
21 #pragma once
22
23 #include <glib.h>
24 #include <json-glib/json-glib.h>
25
26 #include "font-manager-json-proxy.h"
27
28 static const FontManagerJsonProxyProperty OrthographyProperties [] =
29 {
30 { "RESERVED", G_TYPE_RESERVED_GLIB_FIRST, NULL },
31 { "name", G_TYPE_STRING, "English name for orthography" },
32 { "native", G_TYPE_STRING, "Native name for orthography" },
33 { "sample", G_TYPE_STRING, "Pangram or sample string"},
34 { "coverage", G_TYPE_DOUBLE, "Coverage as a percentage" },
35 { FONT_MANAGER_JSON_PROXY_SOURCE, G_TYPE_RESERVED_USER_FIRST, "JsonObject source for this class" }
36 };
37
38
39 #define FONT_MANAGER_TYPE_ORTHOGRAPHY (font_manager_orthography_get_type ())
40 G_DECLARE_FINAL_TYPE(FontManagerOrthography, font_manager_orthography, FONT_MANAGER, ORTHOGRAPHY, FontManagerJsonProxy)
41
42 FontManagerOrthography * font_manager_orthography_new (JsonObject *orthography);
43 GList * font_manager_orthography_get_filter (FontManagerOrthography *self);
44