getTextBackgroundRect

Returns the background rect for the highlighted text.

Parameters

x

: X point.

y

: Y point.

text

: Text to be drawn inside the background.

paint

: Background paint.