clip

fun clip(uiElement: UIElement): Boolean

Sets Clipping area to the UIElement bounding box

Return

true if the given information is valid

Parameters

uiElement

the UIElement to clip


Sets Clipping area to the given bb

Return

true if the given information is valid

Parameters

bb

the BoundingBox to clip


open fun clip(topLeftX: Float, topLeftY: Float, bottomRightX: Float, bottomRightY: Float): Boolean

Sets Clipping area to x,y ->x+width,y+height

if intersect is true, the method intersects the clipping area with current clipping

Return

true if the given information is valid

Parameters

topLeftX

the x position of the clipping area bounding box

topLeftY

the y position of the clipping area bounding box

bottomRightX

the width of the clipping area bounding box

bottomRightY

the height of the clipping area bounding box