Renderer.drawRectangle

Draws an axis-aligned rectangle in user space coordinates with the specified pango.renderer.Renderer.

This should be called while renderer is already active. Use pango.renderer.Renderer.activate to activate a renderer.

class Renderer
void
drawRectangle

Parameters

part pango.types.RenderPart

type of object this rectangle is part of

x int

X position at which to draw rectangle, in user space coordinates in Pango units

y int

Y position at which to draw rectangle, in user space coordinates in Pango units

width int

width of rectangle in Pango units

height int

height of rectangle in Pango units