Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:49:55

0001 /* Pango
0002  * pango-language.h: Language handling routines
0003  *
0004  * Copyright (C) 1999 Red Hat Software
0005  *
0006  * This library is free software; you can redistribute it and/or
0007  * modify it under the terms of the GNU Library General Public
0008  * License as published by the Free Software Foundation; either
0009  * version 2 of the License, or (at your option) any later version.
0010  *
0011  * This library is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014  * Library General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU Library General Public
0017  * License along with this library; if not, write to the
0018  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
0019  * Boston, MA 02111-1307, USA.
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 /* For back compat.  Will have to keep indefinitely. */
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 /* __PANGO_LANGUAGE_H__ */