Name
X Rendering -- Functions for Rendering Pango objects on X displays.
Synopsis
#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,
PangoAttrColor *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); |
Description
The functions in this system are used to take the output
of the shaping modules and render that on the screen.
Details
PANGO_RENDER_TYPE_X
#define PANGO_RENDER_TYPE_X "PangoRenderX" |
PANGO_RENDER_TYPE_X is a string constant that
is used to identify shaping modules for the
X Window System.
pango_x_get_context ()
Retrieves a PangoContext appropriate for rendering with X fonts on the given display.
pango_x_context_set_funcs ()
Sets the functions that will be used to get GC's in various colors when
rendering layouts with this context.
PangoGetGCFunc ()
Used to represent a function which is called when a new GC must be
created to draw something other than the default color when rendering
a layout. The function used here will typically retrieve information
from the context with pango_context_get_data().
PangoFreeGCFunc ()
Used to represent a function which is called to free a GC created with
the corresponding PangoGetGCFunc. The function used here will
typically retrieve information from the context with pango_context_set_data().
pango_x_render ()
Render a PangoGlyphString onto an X drawable
pango_x_render_layout_line ()
void pango_x_render_layout_line (Display *display,
Drawable drawable,
GC gc,
PangoLayoutLine *line,
int x,
int y); |
Render a PangoLayoutLine onto an X drawable
pango_x_render_layout ()
void pango_x_render_layout (Display *display,
Drawable drawable,
GC gc,
PangoLayout *layout,
int x,
int y); |
Render a PangoLayoutLine onto an X drawable