limitSize

fun limitSize(maxWidth: Int, maxHeight: Int): GuiImmediateContext(source)

Construct a new context, which has not been translated, but possible smaller if the arguments demand so.

Parameters

maxWidth

max width of the new context. this argument will be ignored if it is larger than the current width

maxHeight

max height of the new context. this argument will be ignored if it is larger than the current height