withBleed

fun withBleed(xBleed: Int, yBleed: Int): GuiImmediateContext(source)

Construct a new context that bleeds out over the boundaries of the existing context. This is usually used for more fuzzy click detection.

Parameters

xBleed

extra size in the negative and positive x direction

yBleed

extra size in the negative and positive y direction