Commit ce097c06 authored by Chun-wei Fan's avatar Chun-wei Fan
Browse files

Decorate the symbols in the headers with version macros

From the last commit, decorate all the symbols with the version
macros.  Also add the version macros in the docs.

https://bugzilla.gnome.org/show_bug.cgi?id=767587
parent 57964efb
......@@ -1100,6 +1100,96 @@ PANGO_VERSION_CHECK
pango_version
pango_version_string
pango_version_check
PANGO_VERSION_1_2
PANGO_VERSION_1_4
PANGO_VERSION_1_6
PANGO_VERSION_1_8
PANGO_VERSION_1_10
PANGO_VERSION_1_12
PANGO_VERSION_1_14
PANGO_VERSION_1_16
PANGO_VERSION_1_18
PANGO_VERSION_1_20
PANGO_VERSION_1_22
PANGO_VERSION_1_24
PANGO_VERSION_1_26
PANGO_VERSION_1_28
PANGO_VERSION_1_30
PANGO_VERSION_1_32
PANGO_VERSION_1_34
PANGO_VERSION_1_36
PANGO_VERSION_1_38
PANGO_VERSION_1_40
PANGO_VERSION_1_42
PANGO_MIN_REQUIRED
PANGO_MAX_ALLOWED
<SUBSECTION Private>
PANGO_AVAILABLE_IN_ALL
PANGO_VERSION_CUR_STABLE
PANGO_VERSION_PREV_STABLE
PANGO_AVAILABLE_IN_1_2
PANGO_AVAILABLE_IN_1_4
PANGO_AVAILABLE_IN_1_6
PANGO_AVAILABLE_IN_1_8
PANGO_AVAILABLE_IN_1_10
PANGO_AVAILABLE_IN_1_12
PANGO_AVAILABLE_IN_1_14
PANGO_AVAILABLE_IN_1_16
PANGO_AVAILABLE_IN_1_18
PANGO_AVAILABLE_IN_1_20
PANGO_AVAILABLE_IN_1_22
PANGO_AVAILABLE_IN_1_24
PANGO_AVAILABLE_IN_1_26
PANGO_AVAILABLE_IN_1_28
PANGO_AVAILABLE_IN_1_30
PANGO_AVAILABLE_IN_1_32
PANGO_AVAILABLE_IN_1_34
PANGO_AVAILABLE_IN_1_36
PANGO_AVAILABLE_IN_1_38
PANGO_AVAILABLE_IN_1_40
PANGO_AVAILABLE_IN_1_42
PANGO_DEPRECATED_IN_1_2
PANGO_DEPRECATED_IN_1_2_FOR
PANGO_DEPRECATED_IN_1_4
PANGO_DEPRECATED_IN_1_4_FOR
PANGO_DEPRECATED_IN_1_6
PANGO_DEPRECATED_IN_1_6_FOR
PANGO_DEPRECATED_IN_1_8
PANGO_DEPRECATED_IN_1_8_FOR
PANGO_DEPRECATED_IN_1_10
PANGO_DEPRECATED_IN_1_10_FOR
PANGO_DEPRECATED_IN_1_12
PANGO_DEPRECATED_IN_1_12_FOR
PANGO_DEPRECATED_IN_1_14
PANGO_DEPRECATED_IN_1_14_FOR
PANGO_DEPRECATED_IN_1_16
PANGO_DEPRECATED_IN_1_16_FOR
PANGO_DEPRECATED_IN_1_18
PANGO_DEPRECATED_IN_1_18_FOR
PANGO_DEPRECATED_IN_1_20
PANGO_DEPRECATED_IN_1_20_FOR
PANGO_DEPRECATED_IN_1_22
PANGO_DEPRECATED_IN_1_22_FOR
PANGO_DEPRECATED_IN_1_24
PANGO_DEPRECATED_IN_1_24_FOR
PANGO_DEPRECATED_IN_1_26
PANGO_DEPRECATED_IN_1_26_FOR
PANGO_DEPRECATED_IN_1_28
PANGO_DEPRECATED_IN_1_28_FOR
PANGO_DEPRECATED_IN_1_30
PANGO_DEPRECATED_IN_1_30_FOR
PANGO_DEPRECATED_IN_1_32
PANGO_DEPRECATED_IN_1_32_FOR
PANGO_DEPRECATED_IN_1_34
PANGO_DEPRECATED_IN_1_34_FOR
PANGO_DEPRECATED_IN_1_36
PANGO_DEPRECATED_IN_1_36_FOR
PANGO_DEPRECATED_IN_1_38
PANGO_DEPRECATED_IN_1_38_FOR
PANGO_DEPRECATED_IN_1_40
PANGO_DEPRECATED_IN_1_40_FOR
PANGO_DEPRECATED_IN_1_42
PANGO_DEPRECATED_IN_1_42_FOR
</SECTION>
<SECTION>
......
......@@ -53,12 +53,17 @@ struct _PangoColor
* The #GObject type for #PangoColor.
*/
#define PANGO_TYPE_COLOR pango_color_get_type ()
PANGO_AVAILABLE_IN_ALL
GType pango_color_get_type (void) G_GNUC_CONST;
PANGO_AVAILABLE_IN_ALL
PangoColor *pango_color_copy (const PangoColor *src);
PANGO_AVAILABLE_IN_ALL
void pango_color_free (PangoColor *color);
PANGO_AVAILABLE_IN_ALL
gboolean pango_color_parse (PangoColor *color,
const char *spec);
PANGO_AVAILABLE_IN_1_16
gchar *pango_color_to_string(const PangoColor *color);
......@@ -429,97 +434,148 @@ struct _PangoAttrFontFeatures
gchar *features;
};
PANGO_AVAILABLE_IN_ALL
PangoAttrType pango_attr_type_register (const gchar *name);
PANGO_AVAILABLE_IN_1_22
const char * pango_attr_type_get_name (PangoAttrType type) G_GNUC_CONST;
PANGO_AVAILABLE_IN_1_20
void pango_attribute_init (PangoAttribute *attr,
const PangoAttrClass *klass);
PANGO_AVAILABLE_IN_ALL
PangoAttribute * pango_attribute_copy (const PangoAttribute *attr);
PANGO_AVAILABLE_IN_ALL
void pango_attribute_destroy (PangoAttribute *attr);
PANGO_AVAILABLE_IN_ALL
gboolean pango_attribute_equal (const PangoAttribute *attr1,
const PangoAttribute *attr2) G_GNUC_PURE;
PANGO_AVAILABLE_IN_ALL
PangoAttribute *pango_attr_language_new (PangoLanguage *language);
PANGO_AVAILABLE_IN_ALL
PangoAttribute *pango_attr_family_new (const char *family);
PANGO_AVAILABLE_IN_ALL
PangoAttribute *pango_attr_foreground_new (guint16 red,
guint16 green,
guint16 blue);
PANGO_AVAILABLE_IN_ALL
PangoAttribute *pango_attr_background_new (guint16 red,
guint16 green,
guint16 blue);
PANGO_AVAILABLE_IN_ALL
PangoAttribute *pango_attr_size_new (int size);
PANGO_AVAILABLE_IN_1_8
PangoAttribute *pango_attr_size_new_absolute (int size);
PANGO_AVAILABLE_IN_ALL
PangoAttribute *pango_attr_style_new (PangoStyle style);
PANGO_AVAILABLE_IN_ALL
PangoAttribute *pango_attr_weight_new (PangoWeight weight);
PANGO_AVAILABLE_IN_ALL
PangoAttribute *pango_attr_variant_new (PangoVariant variant);
PANGO_AVAILABLE_IN_ALL
PangoAttribute *pango_attr_stretch_new (PangoStretch stretch);
PANGO_AVAILABLE_IN_ALL
PangoAttribute *pango_attr_font_desc_new (const PangoFontDescription *desc);
PANGO_AVAILABLE_IN_ALL
PangoAttribute *pango_attr_underline_new (PangoUnderline underline);
PANGO_AVAILABLE_IN_1_8
PangoAttribute *pango_attr_underline_color_new (guint16 red,
guint16 green,
guint16 blue);
PANGO_AVAILABLE_IN_ALL
PangoAttribute *pango_attr_strikethrough_new (gboolean strikethrough);
PANGO_AVAILABLE_IN_1_8
PangoAttribute *pango_attr_strikethrough_color_new (guint16 red,
guint16 green,
guint16 blue);
PANGO_AVAILABLE_IN_ALL
PangoAttribute *pango_attr_rise_new (int rise);
PANGO_AVAILABLE_IN_ALL
PangoAttribute *pango_attr_scale_new (double scale_factor);
PANGO_AVAILABLE_IN_1_4
PangoAttribute *pango_attr_fallback_new (gboolean enable_fallback);
PANGO_AVAILABLE_IN_1_6
PangoAttribute *pango_attr_letter_spacing_new (int letter_spacing);
PANGO_AVAILABLE_IN_ALL
PangoAttribute *pango_attr_shape_new (const PangoRectangle *ink_rect,
const PangoRectangle *logical_rect);
PANGO_AVAILABLE_IN_1_8
PangoAttribute *pango_attr_shape_new_with_data (const PangoRectangle *ink_rect,
const PangoRectangle *logical_rect,
gpointer data,
PangoAttrDataCopyFunc copy_func,
GDestroyNotify destroy_func);
PANGO_AVAILABLE_IN_1_16
PangoAttribute *pango_attr_gravity_new (PangoGravity gravity);
PANGO_AVAILABLE_IN_1_16
PangoAttribute *pango_attr_gravity_hint_new (PangoGravityHint hint);
PANGO_AVAILABLE_IN_1_38
PangoAttribute *pango_attr_font_features_new (const gchar *features);
PANGO_AVAILABLE_IN_1_38
PangoAttribute *pango_attr_foreground_alpha_new (guint16 alpha);
PANGO_AVAILABLE_IN_1_38
PangoAttribute *pango_attr_background_alpha_new (guint16 alpha);
PANGO_AVAILABLE_IN_ALL
GType pango_attr_list_get_type (void) G_GNUC_CONST;
PANGO_AVAILABLE_IN_ALL
PangoAttrList * pango_attr_list_new (void);
PANGO_AVAILABLE_IN_1_10
PangoAttrList * pango_attr_list_ref (PangoAttrList *list);
PANGO_AVAILABLE_IN_ALL
void pango_attr_list_unref (PangoAttrList *list);
PANGO_AVAILABLE_IN_ALL
PangoAttrList * pango_attr_list_copy (PangoAttrList *list);
PANGO_AVAILABLE_IN_ALL
void pango_attr_list_insert (PangoAttrList *list,
PangoAttribute *attr);
PANGO_AVAILABLE_IN_ALL
void pango_attr_list_insert_before (PangoAttrList *list,
PangoAttribute *attr);
PANGO_AVAILABLE_IN_ALL
void pango_attr_list_change (PangoAttrList *list,
PangoAttribute *attr);
PANGO_AVAILABLE_IN_ALL
void pango_attr_list_splice (PangoAttrList *list,
PangoAttrList *other,
gint pos,
gint len);
PANGO_AVAILABLE_IN_1_2
PangoAttrList *pango_attr_list_filter (PangoAttrList *list,
PangoAttrFilterFunc func,
gpointer data);
PANGO_AVAILABLE_IN_ALL
PangoAttrIterator *pango_attr_list_get_iterator (PangoAttrList *list);
PANGO_AVAILABLE_IN_ALL
void pango_attr_iterator_range (PangoAttrIterator *iterator,
gint *start,
gint *end);
PANGO_AVAILABLE_IN_ALL
gboolean pango_attr_iterator_next (PangoAttrIterator *iterator);
PANGO_AVAILABLE_IN_ALL
PangoAttrIterator *pango_attr_iterator_copy (PangoAttrIterator *iterator);
PANGO_AVAILABLE_IN_ALL
void pango_attr_iterator_destroy (PangoAttrIterator *iterator);
PANGO_AVAILABLE_IN_ALL
PangoAttribute * pango_attr_iterator_get (PangoAttrIterator *iterator,
PangoAttrType type);
PANGO_AVAILABLE_IN_ALL
void pango_attr_iterator_get_font (PangoAttrIterator *iterator,
PangoFontDescription *desc,
PangoLanguage **language,
GSList **extra_attrs);
PANGO_AVAILABLE_IN_1_2
GSList * pango_attr_iterator_get_attrs (PangoAttrIterator *iterator);
PANGO_AVAILABLE_IN_ALL
gboolean pango_parse_markup (const char *markup_text,
int length,
gunichar accel_marker,
......@@ -528,7 +584,9 @@ gboolean pango_parse_markup (const char *markup_text,
gunichar *accel_char,
GError **error);
PANGO_AVAILABLE_IN_1_32
GMarkupParseContext * pango_markup_parser_new (gunichar accel_marker);
PANGO_AVAILABLE_IN_1_32
gboolean pango_markup_parser_finish (GMarkupParseContext *context,
PangoAttrList **attr_list,
char **text,
......
......@@ -24,6 +24,7 @@
#include <glib.h>
#include <pango/pango-version-macros.h>
G_BEGIN_DECLS
/**
......@@ -81,6 +82,7 @@ typedef enum {
PANGO_BIDI_TYPE_ON
} PangoBidiType;
PANGO_AVAILABLE_IN_1_22
PangoBidiType pango_bidi_type_for_unichar (gunichar ch) G_GNUC_CONST;
/**
......@@ -121,12 +123,14 @@ typedef enum {
PANGO_DIRECTION_NEUTRAL
} PangoDirection;
PANGO_AVAILABLE_IN_ALL
PangoDirection pango_unichar_direction (gunichar ch) G_GNUC_CONST;
PANGO_AVAILABLE_IN_1_4
PangoDirection pango_find_base_dir (const gchar *text,
gint length);
#ifndef PANGO_DISABLE_DEPRECATED
G_DEPRECATED_FOR(g_unichar_get_mirror_char)
PANGO_DEPRECATED_FOR(g_unichar_get_mirror_char)
gboolean pango_get_mirror_char (gunichar ch,
gunichar *mirrored_ch);
#endif
......
......@@ -135,17 +135,20 @@ struct _PangoLogAttr
/* Determine information about cluster/word/line breaks in a string
* of Unicode text.
*/
PANGO_AVAILABLE_IN_ALL
void pango_break (const gchar *text,
int length,
PangoAnalysis *analysis,
PangoLogAttr *attrs,
int attrs_len);
PANGO_AVAILABLE_IN_ALL
void pango_find_paragraph_boundary (const gchar *text,
gint length,
gint *paragraph_delimiter_index,
gint *next_paragraph_start);
PANGO_AVAILABLE_IN_ALL
void pango_get_log_attrs (const char *text,
int length,
int level,
......@@ -160,6 +163,7 @@ void pango_get_log_attrs (const char *text,
* instead; this function is mostly useful for chaining up
* from a language engine override.
*/
PANGO_AVAILABLE_IN_ALL
void pango_default_break (const gchar *text,
int length,
PangoAnalysis *analysis,
......
......@@ -47,58 +47,83 @@ typedef struct _PangoContextClass PangoContextClass;
* need to create a subclass of these, file a bug.
*/
PANGO_AVAILABLE_IN_ALL
GType pango_context_get_type (void) G_GNUC_CONST;
PANGO_AVAILABLE_IN_ALL
PangoContext *pango_context_new (void);
PANGO_AVAILABLE_IN_1_32
void pango_context_changed (PangoContext *context);
PANGO_AVAILABLE_IN_ALL
void pango_context_set_font_map (PangoContext *context,
PangoFontMap *font_map);
PANGO_AVAILABLE_IN_1_6
PangoFontMap *pango_context_get_font_map (PangoContext *context);
PANGO_AVAILABLE_IN_1_32
guint pango_context_get_serial (PangoContext *context);
PANGO_AVAILABLE_IN_ALL
void pango_context_list_families (PangoContext *context,
PangoFontFamily ***families,
int *n_families);
PANGO_AVAILABLE_IN_ALL
PangoFont * pango_context_load_font (PangoContext *context,
const PangoFontDescription *desc);
PANGO_AVAILABLE_IN_ALL
PangoFontset *pango_context_load_fontset (PangoContext *context,
const PangoFontDescription *desc,
PangoLanguage *language);
PANGO_AVAILABLE_IN_ALL
PangoFontMetrics *pango_context_get_metrics (PangoContext *context,
const PangoFontDescription *desc,
PangoLanguage *language);
PANGO_AVAILABLE_IN_ALL
void pango_context_set_font_description (PangoContext *context,
const PangoFontDescription *desc);
PANGO_AVAILABLE_IN_ALL
PangoFontDescription * pango_context_get_font_description (PangoContext *context);
PANGO_AVAILABLE_IN_ALL
PangoLanguage *pango_context_get_language (PangoContext *context);
PANGO_AVAILABLE_IN_ALL
void pango_context_set_language (PangoContext *context,
PangoLanguage *language);
PANGO_AVAILABLE_IN_ALL
void pango_context_set_base_dir (PangoContext *context,
PangoDirection direction);
PANGO_AVAILABLE_IN_ALL
PangoDirection pango_context_get_base_dir (PangoContext *context);
PANGO_AVAILABLE_IN_1_16
void pango_context_set_base_gravity (PangoContext *context,
PangoGravity gravity);
PANGO_AVAILABLE_IN_1_16
PangoGravity pango_context_get_base_gravity (PangoContext *context);
PANGO_AVAILABLE_IN_1_16
PangoGravity pango_context_get_gravity (PangoContext *context);
PANGO_AVAILABLE_IN_1_16
void pango_context_set_gravity_hint (PangoContext *context,
PangoGravityHint hint);
PANGO_AVAILABLE_IN_1_16
PangoGravityHint pango_context_get_gravity_hint (PangoContext *context);
PANGO_AVAILABLE_IN_1_6
void pango_context_set_matrix (PangoContext *context,
const PangoMatrix *matrix);
PANGO_AVAILABLE_IN_1_6
const PangoMatrix * pango_context_get_matrix (PangoContext *context);
/* Break a string of Unicode characters into segments with
* consistent shaping/language engine and bidrectional level.
* Returns a #GList of #PangoItem's
*/
PANGO_AVAILABLE_IN_ALL
GList *pango_itemize (PangoContext *context,
const char *text,
int start_index,
int length,
PangoAttrList *attrs,
PangoAttrIterator *cached_iter);
PANGO_AVAILABLE_IN_1_4
GList *pango_itemize_with_base_dir (PangoContext *context,
PangoDirection base_dir,
const char *text,
......
......@@ -24,6 +24,8 @@
#include <glib.h>
#include <pango/pango-version-macros.h>
G_BEGIN_DECLS
/**
......@@ -56,21 +58,30 @@ typedef enum {
PANGO_COVERAGE_EXACT
} PangoCoverageLevel;
PANGO_AVAILABLE_IN_ALL
PangoCoverage * pango_coverage_new (void);
PANGO_AVAILABLE_IN_ALL
PangoCoverage * pango_coverage_ref (PangoCoverage *coverage);
PANGO_AVAILABLE_IN_ALL
void pango_coverage_unref (PangoCoverage *coverage);
PANGO_AVAILABLE_IN_ALL
PangoCoverage * pango_coverage_copy (PangoCoverage *coverage);
PANGO_AVAILABLE_IN_ALL
PangoCoverageLevel pango_coverage_get (PangoCoverage *coverage,
int index_);
PANGO_AVAILABLE_IN_ALL
void pango_coverage_set (PangoCoverage *coverage,
int index_,
PangoCoverageLevel level);
PANGO_AVAILABLE_IN_ALL
void pango_coverage_max (PangoCoverage *coverage,
PangoCoverage *other);
PANGO_AVAILABLE_IN_ALL
void pango_coverage_to_bytes (PangoCoverage *coverage,
guchar **bytes,
int *n_bytes);
PANGO_AVAILABLE_IN_ALL
PangoCoverage *pango_coverage_from_bytes (guchar *bytes,
int n_bytes);
......
......@@ -79,6 +79,7 @@ struct _PangoEngineClass
GObjectClass parent_class;
};
PANGO_DEPRECATED_IN_1_38
GType pango_engine_get_type (void) G_GNUC_CONST;
/**
......@@ -145,6 +146,7 @@ struct _PangoEngineLangClass
int attrs_len);
};
PANGO_DEPRECATED_IN_1_38
GType pango_engine_lang_get_type (void) G_GNUC_CONST;
/**
......@@ -232,6 +234,7 @@ struct _PangoEngineShapeClass
gunichar wc);
};
PANGO_DEPRECATED_IN_1_38
GType pango_engine_shape_get_type (void) G_GNUC_CONST;
typedef struct _PangoEngineInfo PangoEngineInfo;
......@@ -293,7 +296,7 @@ struct _PangoEngineInfo
*
* Deprecated: 1.38
**/
G_DEPRECATED
PANGO_DEPRECATED_IN_1_38
void script_engine_list (PangoEngineInfo **engines,
int *n_engines);
......@@ -306,7 +309,7 @@ void script_engine_list (PangoEngineInfo **engines,
*
* Deprecated: 1.38
**/
G_DEPRECATED
PANGO_DEPRECATED_IN_1_38
void script_engine_init (GTypeModule *module);
......@@ -317,7 +320,7 @@ void script_engine_init (GTypeModule *module);
*
* Deprecated: 1.38
**/
G_DEPRECATED
PANGO_DEPRECATED_IN_1_38
void script_engine_exit (void);
/**
......@@ -328,7 +331,7 @@ void script_engine_exit (void);
*
* Deprecated: 1.38
**/
G_DEPRECATED
PANGO_DEPRECATED_IN_1_38
PangoEngine *script_engine_create (const char *id);
/* Utility macro used by PANGO_ENGINE_LANG_DEFINE_TYPE and
......
......@@ -4,6 +4,8 @@
#include <glib-object.h>
#include <pango/pango-version-macros.h>
G_BEGIN_DECLS
/*** END file-header ***/
......@@ -13,6 +15,7 @@ G_BEGIN_DECLS
/*** END file-production ***/
/*** BEGIN value-header ***/
PANGO_AVAILABLE_IN_ALL
GType @enum_name@_get_type (void) G_GNUC_CONST;
#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ())
/*** END value-header ***/
......
......@@ -214,61 +214,94 @@ typedef enum {
*/
#define PANGO_TYPE_FONT_DESCRIPTION (pango_font_description_get_type ())
PANGO_AVAILABLE_IN_ALL
GType pango_font_description_get_type (void) G_GNUC_CONST;
PANGO_AVAILABLE_IN_ALL
PangoFontDescription *pango_font_description_new (void);
PANGO_AVAILABLE_IN_ALL
PangoFontDescription *pango_font_description_copy (const PangoFontDescription *desc);
PANGO_AVAILABLE_IN_ALL
PangoFontDescription *pango_font_description_copy_static (const PangoFontDescription *desc);
PANGO_AVAILABLE_IN_ALL
guint pango_font_description_hash (const PangoFontDescription *desc) G_GNUC_PURE;
PANGO_AVAILABLE_IN_ALL
gboolean pango_font_description_equal (const PangoFontDescription *desc1,
const PangoFontDescription *desc2) G_GNUC_PURE;
PANGO_AVAILABLE_IN_ALL
void pango_font_description_free (PangoFontDescription *desc);
PANGO_AVAILABLE_IN_ALL
void pango_font_descriptions_free (PangoFontDescription **descs,
int n_descs);
PANGO_AVAILABLE_IN_ALL
void pango_font_description_set_family (PangoFontDescription *desc,
const char *family);
PANGO_AVAILABLE_IN_ALL
void pango_font_description_set_family_static (PangoFontDescription *desc,
const char *family);
PANGO_AVAILABLE_IN_ALL
const char *pango_font_description_get_family (const PangoFontDescription *desc) G_GNUC_PURE;
PANGO_AVAILABLE_IN_ALL
void pango_font_description_set_style (PangoFontDescription *desc,
PangoStyle style);
PANGO_AVAILABLE_IN_ALL
PangoStyle pango_font_description_get_style (const PangoFontDescription *desc) G_GNUC_PURE;
PANGO_AVAILABLE_IN_ALL
void pango_font_description_set_variant (PangoFontDescription *desc,
PangoVariant variant);
PANGO_AVAILABLE_IN_ALL
PangoVariant pango_font_description_get_variant (const PangoFontDescription *desc) G_GNUC_PURE;
PANGO_AVAILABLE_IN_ALL
void pango_font_description_set_weight (PangoFontDescription *desc,
PangoWeight weight);
PANGO_AVAILABLE_IN_ALL
PangoWeight pango_font_description_get_weight (const PangoFontDescription *desc) G_GNUC_PURE;
PANGO_AVAILABLE_IN_ALL
void pango_font_description_set_stretch (PangoFontDescription *desc,
PangoStretch stretch);
PANGO_AVAILABLE_IN_ALL
PangoStretch pango_font_description_get_stretch (const PangoFontDescription *desc) G_GNUC_PURE;
PANGO_AVAILABLE_IN_ALL
void pango_font_description_set_size (PangoFontDescription *desc,
gint size);
PANGO_AVAILABLE_IN_ALL
gint pango_font_description_get_size (const PangoFontDescription *desc) G_GNUC_PURE;
PANGO_AVAILABLE_IN_1_8
void pango_font_description_set_absolute_size (PangoFontDescription *desc,
double size);
PANGO_AVAILABLE_IN_1_8
gboolean pango_font_description_get_size_is_absolute (const PangoFontDescription *desc) G_GNUC_PURE;
PANGO_AVAILABLE_IN_1_16
void pango_font_description_set_gravity (PangoFontDescription *desc,
PangoGravity gravity);
PANGO_AVAILABLE_IN_1_16
PangoGravity pango_font_description_get_gravity (const PangoFontDescription *desc) G_GNUC_PURE;
PANGO_AVAILABLE_IN_ALL
PangoFontMask pango_font_description_get_set_fields (const PangoFontDescription *desc) G_GNUC_PURE;
PANGO_AVAILABLE_IN_ALL
void pango_font_description_unset_fields (PangoFontDescription *desc,
PangoFontMask to_unset);
PANGO_AVAILABLE_IN_ALL
void pango_font_description_merge (PangoFontDescription *desc,
const PangoFontDescription *desc_to_merge,
gboolean replace_existing);
PANGO_AVAILABLE_IN_ALL
void pango_font_description_merge_static (PangoFontDescription *desc,
const PangoFontDescription *desc_to_merge,
gboolean replace_existing);
PANGO_AVAILABLE_IN_ALL
gboolean pango_font_description_better_match (const PangoFontDescription *desc,
const PangoFontDescription *old_match,
const PangoFontDescription *new_match) G_GNUC_PURE;
PANGO_AVAILABLE_IN_ALL
PangoFontDescription *pango_font_description_from_string (const char *str);
PANGO_AVAILABLE_IN_ALL
char * pango_font_description_to_string (const PangoFontDescription *desc);
PANGO_AVAILABLE_IN_ALL
char * pango_font_description_to_filename (const PangoFontDescription *desc);
/*
......@@ -281,20 +314,32 @@ char * pango_font_description_to_filename (const PangoFontDescrip
* The #GObject type for #PangoFontMetrics.
*/
#define PANGO_TYPE_FONT_METRICS (pango_font_metrics_get_type ())
PANGO_AVAILABLE_IN_ALL
GType pango_font_metrics_get_type (void) G_GNUC_CONST;
PANGO_AVAILABLE_IN_ALL