getBoundsXYWH

fun GuiGraphics.getBoundsXYWH(x: Float, y: Float, w: Float, h: Float): ScreenRectangle

See also

ColoredRectangleRenderState.getBounds