Interface IView2
interface IView2
Extends IView
This interface extends IView with additional functionalities to configure clipping behaviour.
Methods
setContentClipping()
Controls whether this view clips its content to its bounds. When enabled, this view restricts its visual content and that of its descendants to its own rectangular bounds. When disabled, its content including its children views may render outside its bounds. Note: This controls only whether this view applies a clipping mask to its own content and not whether it clips its children.voidsetContentClipping(boolenabled)
Parameters
enabled
bool — Required
True to enable content clipping, false to allow content
outside bounds. Default is true.
isContentClippingEnabled()
bool isContentClippingEnabled()
Returns whether content clipping is enabled for this view.
Refer IView2::setContentClipping
Returns
bool
True if content is clipped to this view’s bounds,
false if content may render outside this view’s bounds.

