Join Slack
Powered by
Is there any built-in way to clip views to only dr...
# korge
j
jeff
01/16/2021, 8:16 PM
Is there any built-in way to clip views to only draw within a certain rectangle? Didn't see anything in the docs.
m
Mayank
01/17/2021, 8:13 PM
Hi
@jeff
, you can use ClipContainer
https://github.com/korlibs/korge/blob/master/korge/src/commonMain/kotlin/com/soywiz/korge/view/ClipContainer.kt
j
jeff
01/17/2021, 8:13 PM
Oh perfect! Thanks!
jeff
01/17/2021, 8:14 PM
plus I learned about FixedSizeContainer, so double thanks 🙂
👍 1
2
Views
Open in Slack
Previous
Next