setDimensions

fun setDimensions(x: Int, y: Int, width: Int, height: Int): M2HudDrawable

Sets the position and size of this drawable in a single call.

Return

M2HudDrawable — this instance, for call chaining.

Parameters

x

The X coordinate in pixels (Int).

y

The Y coordinate in pixels (Int).

width

The width in pixels (Int).

height

The height in pixels (Int).


fun setDimensions(x: Float, y: Float, width: Float, height: Float): M2HudDrawable

Sets the position and size of this drawable in a single call.

Return

M2HudDrawable — this instance, for call chaining.

Parameters

x

The X coordinate in pixels (Float).

y

The Y coordinate in pixels (Float).

width

The width in pixels (Float).

height

The height in pixels (Float).