17.20. Data Definitions for libpangocairo-1.0

This section defines global identifiers and their values that are associated with interfaces contained in libpangocairo-1.0. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.

17.20.1. pango-1.0/pango/pangocairo.h


#define PANGO_CAIRO_FONT_MAP(object)	 \
	(G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_CAIRO_FONT_MAP, \
	PangoCairoFontMap))
#define PANGO_IS_CAIRO_FONT_MAP(object)	 \
	(G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_CAIRO_FONT_MAP))
#define PANGO_CAIRO_FONT(object)	(G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_CAIRO_FONT, PangoCairoFont))
#define PANGO_IS_CAIRO_FONT(object)	(G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_CAIRO_FONT))
#define PANGO_TYPE_CAIRO_FONT	(pango_cairo_font_get_type ())
#define PANGO_TYPE_CAIRO_FONT_MAP	(pango_cairo_font_map_get_type ())

typedef struct _PangoCairoFont PangoCairoFont;
typedef struct _PangoCairoFontMap PangoCairoFontMap;
typedef void (*PangoCairoShapeRendererFunc) (cairo_t * cr,
					     PangoAttrShape * attr,
					     gboolean do_path,
					     gpointer data);
extern const cairo_font_options_t
    *pango_cairo_context_get_font_options(PangoContext * context);
extern double pango_cairo_context_get_resolution(PangoContext * context);
extern PangoCairoShapeRendererFunc
pango_cairo_context_get_shape_renderer(PangoContext * context,
				       gpointer * data);
extern void pango_cairo_context_set_font_options(PangoContext * context,
						 const cairo_font_options_t
						 * options);
extern void pango_cairo_context_set_resolution(PangoContext * context,
					       double dpi);
extern void pango_cairo_context_set_shape_renderer(PangoContext * context,
						   PangoCairoShapeRendererFunc
						   func, gpointer data,
						   GDestroyNotify dnotify);
extern PangoContext *pango_cairo_create_context(cairo_t * cr);
extern PangoLayout *pango_cairo_create_layout(cairo_t * cr);
extern void pango_cairo_error_underline_path(cairo_t * cr, double x,
					     double y, double width,
					     double height);
extern cairo_scaled_font_t *pango_cairo_font_get_scaled_font(PangoCairoFont
							     * font);
extern GType pango_cairo_font_get_type(void);
extern PangoContext *pango_cairo_font_map_create_context(PangoCairoFontMap
							 * fontmap);
extern PangoFontMap *pango_cairo_font_map_get_default(void);
extern cairo_font_type_t
pango_cairo_font_map_get_font_type(PangoCairoFontMap * fontmap);
extern double pango_cairo_font_map_get_resolution(PangoCairoFontMap *
						  fontmap);
extern GType pango_cairo_font_map_get_type(void);
extern PangoFontMap *pango_cairo_font_map_new(void);
extern PangoFontMap
    *pango_cairo_font_map_new_for_font_type(cairo_font_type_t fonttype);
extern void pango_cairo_font_map_set_default(PangoCairoFontMap * fontmap);
extern void pango_cairo_font_map_set_resolution(PangoCairoFontMap *
						fontmap, double dpi);
extern void pango_cairo_glyph_string_path(cairo_t * cr, PangoFont * font,
					  PangoGlyphString * glyphs);
extern void pango_cairo_layout_line_path(cairo_t * cr,
					 PangoLayoutLine * line);
extern void pango_cairo_layout_path(cairo_t * cr, PangoLayout * layout);
extern void pango_cairo_show_error_underline(cairo_t * cr, double x,
					     double y, double width,
					     double height);
extern void pango_cairo_show_glyph_item(cairo_t * cr, const char *text,
					PangoGlyphItem * glyph_item);
extern void pango_cairo_show_glyph_string(cairo_t * cr, PangoFont * font,
					  PangoGlyphString * glyphs);
extern void pango_cairo_show_layout(cairo_t * cr, PangoLayout * layout);
extern void pango_cairo_show_layout_line(cairo_t * cr,
					 PangoLayoutLine * line);
extern void pango_cairo_update_context(cairo_t * cr,
				       PangoContext * context);
extern void pango_cairo_update_layout(cairo_t * cr, PangoLayout * layout);