File indexing completed on 2024-11-15 09:49:55
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #ifndef __PANGO_LANGUAGE_H__
0023 #define __PANGO_LANGUAGE_H__
0024
0025 #include <glib.h>
0026 #include <glib-object.h>
0027
0028 #include <pango/pango-types.h>
0029 #include <pango/pango-version-macros.h>
0030 #include <pango/pango-script.h>
0031
0032 G_BEGIN_DECLS
0033
0034 #define PANGO_TYPE_LANGUAGE (pango_language_get_type ())
0035
0036 PANGO_AVAILABLE_IN_ALL
0037 GType pango_language_get_type (void) G_GNUC_CONST;
0038
0039 PANGO_AVAILABLE_IN_1_16
0040 PangoLanguage * pango_language_get_default (void) G_GNUC_CONST;
0041
0042 PANGO_AVAILABLE_IN_1_48
0043 PangoLanguage ** pango_language_get_preferred (void) G_GNUC_CONST;
0044
0045 PANGO_AVAILABLE_IN_ALL
0046 PangoLanguage * pango_language_from_string (const char *language);
0047
0048 PANGO_AVAILABLE_IN_ALL
0049 const char * pango_language_to_string (PangoLanguage *language) G_GNUC_CONST;
0050
0051
0052 #define pango_language_to_string(language) ((const char *)language)
0053
0054 PANGO_AVAILABLE_IN_ALL
0055 const char * pango_language_get_sample_string (PangoLanguage *language) G_GNUC_CONST;
0056
0057 PANGO_AVAILABLE_IN_ALL
0058 gboolean pango_language_matches (PangoLanguage *language,
0059 const char *range_list) G_GNUC_PURE;
0060
0061 PANGO_AVAILABLE_IN_1_4
0062 gboolean pango_language_includes_script (PangoLanguage *language,
0063 PangoScript script) G_GNUC_PURE;
0064 PANGO_AVAILABLE_IN_1_22
0065 const PangoScript * pango_language_get_scripts (PangoLanguage *language,
0066 int *num_scripts);
0067
0068 G_END_DECLS
0069
0070 #endif