translated

fun translated(xOffset: Int, yOffset: Int, width: Int, height: Int): GuiImmediateContext(source)

Construct a new context representing that is located within this context.

Parameters

xOffset

relative x position of the new context in the current context

yOffset

relative y position of the new context in the current context

width

width of the new sub context

height

height of the new sub context