setScissor

actual fun setScissor(left: Int, bottom: Int, width: Int, height: Int)

Set-up a custom scissor rectangle; by default it is disabled.

The scissor rectangle gets clipped by the View's viewport, in other words, the scissor cannot affect fragments outside of the View's Viewport.

Currently the scissor is not compatible with dynamic resolution and should always be disabled when dynamic resolution is used.

Parameters

left

left coordinate of the scissor box relative to the viewport

bottom

bottom coordinate of the scissor box relative to the viewport

width

width of the scissor box

height

height of the scissor box

See also

View.setViewport
View.setDynamicResolutionOptions
expect fun setScissor(left: Int, bottom: Int, width: Int, height: Int)

Set-up a custom scissor rectangle; by default it is disabled.

The scissor rectangle gets clipped by the View's viewport, in other words, the scissor cannot affect fragments outside of the View's Viewport.

Currently the scissor is not compatible with dynamic resolution and should always be disabled when dynamic resolution is used.

Parameters

left

left coordinate of the scissor box relative to the viewport

bottom

bottom coordinate of the scissor box relative to the viewport

width

width of the scissor box

height

height of the scissor box

See also

View.setViewport
View.setDynamicResolutionOptions
actual fun setScissor(left: Int, bottom: Int, width: Int, height: Int)

Set-up a custom scissor rectangle; by default it is disabled.

The scissor rectangle gets clipped by the View's viewport, in other words, the scissor cannot affect fragments outside of the View's Viewport.

Currently the scissor is not compatible with dynamic resolution and should always be disabled when dynamic resolution is used.

Parameters

left

left coordinate of the scissor box relative to the viewport

bottom

bottom coordinate of the scissor box relative to the viewport

width

width of the scissor box

height

height of the scissor box

See also

View.setViewport
View.setDynamicResolutionOptions
actual fun setScissor(left: Int, bottom: Int, width: Int, height: Int)

Set-up a custom scissor rectangle; by default it is disabled.

The scissor rectangle gets clipped by the View's viewport, in other words, the scissor cannot affect fragments outside of the View's Viewport.

Currently the scissor is not compatible with dynamic resolution and should always be disabled when dynamic resolution is used.

Parameters

left

left coordinate of the scissor box relative to the viewport

bottom

bottom coordinate of the scissor box relative to the viewport

width

width of the scissor box

height

height of the scissor box

See also

View.setViewport
View.setDynamicResolutionOptions
actual fun setScissor(left: Int, bottom: Int, width: Int, height: Int)

Set-up a custom scissor rectangle; by default it is disabled.

The scissor rectangle gets clipped by the View's viewport, in other words, the scissor cannot affect fragments outside of the View's Viewport.

Currently the scissor is not compatible with dynamic resolution and should always be disabled when dynamic resolution is used.

Parameters

left

left coordinate of the scissor box relative to the viewport

bottom

bottom coordinate of the scissor box relative to the viewport

width

width of the scissor box

height

height of the scissor box

See also

View.setViewport
View.setDynamicResolutionOptions