Pango Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#define PANGO_RENDER_TYPE_X PangoContext* pango_x_get_context (Display *display); void pango_x_context_set_funcs (PangoContext *context, PangoGetGCFunc get_gc_func, PangoFreeGCFunc free_gc_func); GC (*PangoGetGCFunc) (PangoContext *context, PangoColor *color, GC base_gc); void (*PangoFreeGCFunc) (PangoContext *context, GC gc); void pango_x_render (Display *display, Drawable d, GC gc, PangoFont *font, PangoGlyphString *glyphs, gint x, gint y); void pango_x_render_layout_line (Display *display, Drawable drawable, GC gc, PangoLayoutLine *line, int x, int y); void pango_x_render_layout (Display *display, Drawable drawable, GC gc, PangoLayout *layout, int x, int y); |
#define PANGO_RENDER_TYPE_X "PangoRenderX" |
A string constant identifying the X renderer. The associated quark (see g_quark_from_string()) is used to identify the renderer in pango_find_map().
PangoContext* pango_x_get_context (Display *display); |
Retrieves a PangoContext appropriate for rendering with X fonts on the given display.
void pango_x_context_set_funcs (PangoContext *context, PangoGetGCFunc get_gc_func, PangoFreeGCFunc free_gc_func); |
Sets the functions that will be used to get GC's in various colors when rendering layouts with this context.
GC (*PangoGetGCFunc) (PangoContext *context, PangoColor *color, GC base_gc); |
Specifies the type of the function used to create a new GC for a given color.
void (*PangoFreeGCFunc) (PangoContext *context, GC gc); |
Specifies the type of the function used to free a GC created with the corresponding PangoGetGCFunc function.
void pango_x_render (Display *display, Drawable d, GC gc, PangoFont *font, PangoGlyphString *glyphs, gint x, gint y); |
Renders a PangoGlyphString onto an X drawable.
void pango_x_render_layout_line (Display *display, Drawable drawable, GC gc, PangoLayoutLine *line, int x, int y); |
Renders a PangoLayoutLine onto an X drawable.
display : | the X display. |
drawable : | the drawable on which to draw. |
gc : | GC to use for uncolored drawing. |
line : | a PangoLayoutLine. |
x : | the x position of start of string (in pixels). |
y : | the y position of baseline (in pixels). |
void pango_x_render_layout (Display *display, Drawable drawable, GC gc, PangoLayout *layout, int x, int y); |
Renders a PangoLayoutLine onto an X drawable.