Renderer.drawRectangle

void drawRectangle(pango.types.RenderPart part, int x, int y, int width, int height)

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.

Parameters

parttype of object this rectangle is part of
xX position at which to draw rectangle, in user space coordinates in Pango units
yY position at which to draw rectangle, in user space coordinates in Pango units
widthwidth of rectangle in Pango units
heightheight of rectangle in Pango units