Learn R Programming

RGtk2 (version 2.12.17)

gdkDrawLayoutLineWithColors: gdkDrawLayoutLineWithColors

Description

Render a PangoLayoutLine onto a GdkDrawable, overriding the layout's normal colors with foreground and/or background. foreground and background need not be allocated.

Usage

gdkDrawLayoutLineWithColors(drawable, gc, x, y, line, foreground, background)

Arguments

drawable
[GdkDrawable] the drawable on which to draw the line
gc
[GdkGC] base graphics to use
x
[integer] the x position of start of string (in pixels)
y
[integer] the y position of baseline (in pixels)
foreground
[GdkColor] foreground override color, or NULL for none
background
[GdkColor] background override color, or NULL for none

Details

If the layout's PangoContext has a transformation matrix set, then x and y specify the position of the left edge of the baseline (left is in before-tranform user coordinates) in after-transform device coordinates.