Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
pangocairo.h File Reference
#include <pango/pango.h>
#include <cairo.h>

Go to the source code of this file.

Macros

#define PANGO_TYPE_CAIRO_FONT   (pango_cairo_font_get_type ())
 
#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_MAP   (pango_cairo_font_map_get_type ())
 
#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))
 

Typedefs

typedef typedefG_BEGIN_DECLS struct _PangoCairoFont PangoCairoFont
 
typedef struct _PangoCairoFontMap PangoCairoFontMap
 
typedef void(* PangoCairoShapeRendererFunc) (cairo_t *cr, PangoAttrShape *attr, gboolean do_path, gpointer data)
 

Functions

PANGO_AVAILABLE_IN_1_10 GType pango_cairo_font_map_get_type (void) G_GNUC_CONST
 
PANGO_AVAILABLE_IN_1_10 PangoFontMappango_cairo_font_map_new (void)
 
PANGO_AVAILABLE_IN_1_18 PangoFontMappango_cairo_font_map_new_for_font_type (cairo_font_type_t fonttype)
 
PANGO_AVAILABLE_IN_1_10 PangoFontMappango_cairo_font_map_get_default (void)
 
PANGO_AVAILABLE_IN_1_22 void pango_cairo_font_map_set_default (PangoCairoFontMap *fontmap)
 
PANGO_AVAILABLE_IN_1_18 cairo_font_type_t pango_cairo_font_map_get_font_type (PangoCairoFontMap *fontmap)
 
PANGO_AVAILABLE_IN_1_10 void pango_cairo_font_map_set_resolution (PangoCairoFontMap *fontmap, double dpi)
 
PANGO_AVAILABLE_IN_1_10 double pango_cairo_font_map_get_resolution (PangoCairoFontMap *fontmap)
 
PangoContextpango_cairo_font_map_create_context (PangoCairoFontMap *fontmap)
 
PANGO_AVAILABLE_IN_1_18 GType pango_cairo_font_get_type (void) G_GNUC_CONST
 
PANGO_AVAILABLE_IN_1_18 cairo_scaled_font_tpango_cairo_font_get_scaled_font (PangoCairoFont *font)
 
PANGO_AVAILABLE_IN_1_10 void pango_cairo_update_context (cairo_t *cr, PangoContext *context)
 
PANGO_AVAILABLE_IN_1_10 void pango_cairo_context_set_font_options (PangoContext *context, const cairo_font_options_t *options)
 
PANGO_AVAILABLE_IN_1_10 const cairo_font_options_tpango_cairo_context_get_font_options (PangoContext *context)
 
PANGO_AVAILABLE_IN_1_10 void pango_cairo_context_set_resolution (PangoContext *context, double dpi)
 
PANGO_AVAILABLE_IN_1_10 double pango_cairo_context_get_resolution (PangoContext *context)
 
PANGO_AVAILABLE_IN_1_18 void pango_cairo_context_set_shape_renderer (PangoContext *context, PangoCairoShapeRendererFunc func, gpointer data, GDestroyNotify dnotify)
 
PANGO_AVAILABLE_IN_1_18 PangoCairoShapeRendererFunc pango_cairo_context_get_shape_renderer (PangoContext *context, gpointer *data)
 
PANGO_AVAILABLE_IN_1_22 PangoContextpango_cairo_create_context (cairo_t *cr)
 
PANGO_AVAILABLE_IN_ALL PangoLayoutpango_cairo_create_layout (cairo_t *cr)
 
PANGO_AVAILABLE_IN_1_10 void pango_cairo_update_layout (cairo_t *cr, PangoLayout *layout)
 
PANGO_AVAILABLE_IN_1_10 void pango_cairo_show_glyph_string (cairo_t *cr, PangoFont *font, PangoGlyphString *glyphs)
 
PANGO_AVAILABLE_IN_1_22 void pango_cairo_show_glyph_item (cairo_t *cr, const char *text, PangoGlyphItem *glyph_item)
 
PANGO_AVAILABLE_IN_1_10 void pango_cairo_show_layout_line (cairo_t *cr, PangoLayoutLine *line)
 
PANGO_AVAILABLE_IN_1_10 void pango_cairo_show_layout (cairo_t *cr, PangoLayout *layout)
 
PANGO_AVAILABLE_IN_1_14 void pango_cairo_show_error_underline (cairo_t *cr, double x, double y, double width, double height)
 
PANGO_AVAILABLE_IN_1_10 void pango_cairo_glyph_string_path (cairo_t *cr, PangoFont *font, PangoGlyphString *glyphs)
 
PANGO_AVAILABLE_IN_1_10 void pango_cairo_layout_line_path (cairo_t *cr, PangoLayoutLine *line)
 
PANGO_AVAILABLE_IN_1_10 void pango_cairo_layout_path (cairo_t *cr, PangoLayout *layout)
 
PANGO_AVAILABLE_IN_1_14 void pango_cairo_error_underline_path (cairo_t *cr, double x, double y, double width, double height)
 

Macro Definition Documentation

◆ PANGO_CAIRO_FONT

#define PANGO_CAIRO_FONT ( object)    (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_CAIRO_FONT, PangoCairoFont))

Definition at line 53 of file pangocairo.h.

◆ PANGO_CAIRO_FONT_MAP

#define PANGO_CAIRO_FONT_MAP ( object)    (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_CAIRO_FONT_MAP, PangoCairoFontMap))

Definition at line 76 of file pangocairo.h.

◆ PANGO_IS_CAIRO_FONT

#define PANGO_IS_CAIRO_FONT ( object)    (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_CAIRO_FONT))

Definition at line 54 of file pangocairo.h.

◆ PANGO_IS_CAIRO_FONT_MAP

#define PANGO_IS_CAIRO_FONT_MAP ( object)    (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_CAIRO_FONT_MAP))

Definition at line 77 of file pangocairo.h.

◆ PANGO_TYPE_CAIRO_FONT

#define PANGO_TYPE_CAIRO_FONT   (pango_cairo_font_get_type ())

Definition at line 52 of file pangocairo.h.

◆ PANGO_TYPE_CAIRO_FONT_MAP

#define PANGO_TYPE_CAIRO_FONT_MAP   (pango_cairo_font_map_get_type ())

Definition at line 75 of file pangocairo.h.

Typedef Documentation

◆ PangoCairoFont

typedef typedefG_BEGIN_DECLS struct _PangoCairoFont PangoCairoFont

PangoCairoFont:

PangoCairoFont is an interface exported by fonts for use with Cairo.

The actual type of the font will depend on the particular font technology Cairo was compiled to use.

Since: 1.18

Definition at line 41 of file pangocairo.h.

◆ PangoCairoFontMap

typedef struct _PangoCairoFontMap PangoCairoFontMap

PangoCairoFontMap:

PangoCairoFontMap is an interface exported by font maps for use with Cairo.

The actual type of the font map will depend on the particular font technology Cairo was compiled to use.

Since: 1.10

Definition at line 68 of file pangocairo.h.

◆ PangoCairoShapeRendererFunc

typedef void(* PangoCairoShapeRendererFunc) (cairo_t *cr, PangoAttrShape *attr, gboolean do_path, gpointer data)

PangoCairoShapeRendererFunc: @cr: a Cairo context with current point set to where the shape should be rendered @attr: the PANGO_ATTR_SHAPE to render @do_path: whether only the shape path should be appended to current path of @cr and no filling/stroking done. This will be set to TRUE when called from pango_cairo_layout_path() and pango_cairo_layout_line_path() rendering functions. @data: (closure): user data passed to pango_cairo_context_set_shape_renderer()

Function type for rendering attributes of type PANGO_ATTR_SHAPE with Pango's Cairo renderer.

Definition at line 94 of file pangocairo.h.

Function Documentation

◆ pango_cairo_context_get_font_options()

PANGO_AVAILABLE_IN_1_10 const cairo_font_options_t * pango_cairo_context_get_font_options ( PangoContext * context)

◆ pango_cairo_context_get_resolution()

PANGO_AVAILABLE_IN_1_10 double pango_cairo_context_get_resolution ( PangoContext * context)

◆ pango_cairo_context_get_shape_renderer()

PANGO_AVAILABLE_IN_1_18 PangoCairoShapeRendererFunc pango_cairo_context_get_shape_renderer ( PangoContext * context,
gpointer * data )

◆ pango_cairo_context_set_font_options()

PANGO_AVAILABLE_IN_1_10 void pango_cairo_context_set_font_options ( PangoContext * context,
const cairo_font_options_t * options )

◆ pango_cairo_context_set_resolution()

PANGO_AVAILABLE_IN_1_10 void pango_cairo_context_set_resolution ( PangoContext * context,
double dpi )

◆ pango_cairo_context_set_shape_renderer()

PANGO_AVAILABLE_IN_1_18 void pango_cairo_context_set_shape_renderer ( PangoContext * context,
PangoCairoShapeRendererFunc func,
gpointer data,
GDestroyNotify dnotify )

◆ pango_cairo_create_context()

PANGO_AVAILABLE_IN_1_22 PangoContext * pango_cairo_create_context ( cairo_t * cr)

◆ pango_cairo_create_layout()

PANGO_AVAILABLE_IN_ALL PangoLayout * pango_cairo_create_layout ( cairo_t * cr)

◆ pango_cairo_error_underline_path()

PANGO_AVAILABLE_IN_1_14 void pango_cairo_error_underline_path ( cairo_t * cr,
double x,
double y,
double width,
double height )

◆ pango_cairo_font_get_scaled_font()

PANGO_AVAILABLE_IN_1_18 cairo_scaled_font_t * pango_cairo_font_get_scaled_font ( PangoCairoFont * font)

◆ pango_cairo_font_get_type()

PANGO_AVAILABLE_IN_1_18 GType pango_cairo_font_get_type ( void )

◆ pango_cairo_font_map_create_context()

PangoContext * pango_cairo_font_map_create_context ( PangoCairoFontMap * fontmap)

◆ pango_cairo_font_map_get_default()

PANGO_AVAILABLE_IN_1_10 PangoFontMap * pango_cairo_font_map_get_default ( void )

◆ pango_cairo_font_map_get_font_type()

PANGO_AVAILABLE_IN_1_18 cairo_font_type_t pango_cairo_font_map_get_font_type ( PangoCairoFontMap * fontmap)

◆ pango_cairo_font_map_get_resolution()

PANGO_AVAILABLE_IN_1_10 double pango_cairo_font_map_get_resolution ( PangoCairoFontMap * fontmap)

◆ pango_cairo_font_map_get_type()

PANGO_AVAILABLE_IN_1_10 GType pango_cairo_font_map_get_type ( void )

◆ pango_cairo_font_map_new()

PANGO_AVAILABLE_IN_1_10 PangoFontMap * pango_cairo_font_map_new ( void )

◆ pango_cairo_font_map_new_for_font_type()

PANGO_AVAILABLE_IN_1_18 PangoFontMap * pango_cairo_font_map_new_for_font_type ( cairo_font_type_t fonttype)

◆ pango_cairo_font_map_set_default()

PANGO_AVAILABLE_IN_1_22 void pango_cairo_font_map_set_default ( PangoCairoFontMap * fontmap)

◆ pango_cairo_font_map_set_resolution()

PANGO_AVAILABLE_IN_1_10 void pango_cairo_font_map_set_resolution ( PangoCairoFontMap * fontmap,
double dpi )

◆ pango_cairo_glyph_string_path()

PANGO_AVAILABLE_IN_1_10 void pango_cairo_glyph_string_path ( cairo_t * cr,
PangoFont * font,
PangoGlyphString * glyphs )

◆ pango_cairo_layout_line_path()

PANGO_AVAILABLE_IN_1_10 void pango_cairo_layout_line_path ( cairo_t * cr,
PangoLayoutLine * line )

◆ pango_cairo_layout_path()

PANGO_AVAILABLE_IN_1_10 void pango_cairo_layout_path ( cairo_t * cr,
PangoLayout * layout )

◆ pango_cairo_show_error_underline()

PANGO_AVAILABLE_IN_1_14 void pango_cairo_show_error_underline ( cairo_t * cr,
double x,
double y,
double width,
double height )

◆ pango_cairo_show_glyph_item()

PANGO_AVAILABLE_IN_1_22 void pango_cairo_show_glyph_item ( cairo_t * cr,
const char * text,
PangoGlyphItem * glyph_item )

◆ pango_cairo_show_glyph_string()

PANGO_AVAILABLE_IN_1_10 void pango_cairo_show_glyph_string ( cairo_t * cr,
PangoFont * font,
PangoGlyphString * glyphs )

◆ pango_cairo_show_layout()

PANGO_AVAILABLE_IN_1_10 void pango_cairo_show_layout ( cairo_t * cr,
PangoLayout * layout )

◆ pango_cairo_show_layout_line()

PANGO_AVAILABLE_IN_1_10 void pango_cairo_show_layout_line ( cairo_t * cr,
PangoLayoutLine * line )

◆ pango_cairo_update_context()

PANGO_AVAILABLE_IN_1_10 void pango_cairo_update_context ( cairo_t * cr,
PangoContext * context )

◆ pango_cairo_update_layout()

PANGO_AVAILABLE_IN_1_10 void pango_cairo_update_layout ( cairo_t * cr,
PangoLayout * layout )