PangoLayout
onto a GdkDrawable
, overriding the
layout's normal colors with foreground
and/or background
.
foreground
and background
need not be allocated.gdkDrawLayoutWithColors(drawable, gc, x, y, layout, foreground, background)
drawable
gc
x
y
layout
foreground
NULL
for none. [ allow-none ]background
NULL
for none. [ allow-none ]PangoContext
has a transformation matrix set, then
x
and y
specify the position of the top left corner of the
bounding box (in device space) of the transformed layout.
If you're using GTK+, the ususal way to obtain a PangoLayout
is gtkWidgetCreatePangoLayout
.