Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IClipRectLayer

interface IClipRectLayer
Extends ILayer Interface for a ILayer that supports clipping with Rect. The IClipRectLayer interface extends the ILayer interface and adds methods for setting and retrieving the Rect used for intersecting clipping operation with anti-aliasing enabled.

Methods

setRect()

void setRect(Rect* rect)
This method sets the Rect used for clipping content within the ILayer.

Parameters

rect
Rect* — Required A Rect object representing the rectangle used for clipping.

getRect()

Rect getRect()
This method retrieves the Rect used for clipping content within the ILayer.

Returns

Rect The Rect object representing the rectangle used for clipping.
Last modified on October 29, 2026