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); |
PangoContext* pango_x_get_context (Display *display); |
Retrieves a PangoContext appropriate for rendering with X fonts on the given display.
display : | an X display (As returned by XOpenDisplay().) |
Returns : | the new PangoContext. |
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.
context : | a PangoContext. |
get_gc_func : | function called to create a new GC for a given color. |
free_gc_func : | function called to free a GC created with get_gc_func. |
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.
display : | the X display. |
drawable : | the drawable on which to draw. |
gc : | GC to use for uncolored drawing. |
layout : | a PangoLayout. |
x : | the x position of the left of the layout (in pixels). |
y : | the y position of the top of the layout (in pixels). |