translated

public final GuiImmediateContext translated(Integer xOffset, Integer yOffset, Integer width, Integer height)(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