https://kotlinlang.org logo
Title
s

smallshen

05/31/2021, 5:44 AM
how can we implement our own ComposeLayer, it is internal
k

Kirill Grouchnikov

05/31/2021, 7:40 AM
Perhaps rewind back to the problem you're trying to solve, and not the specific solution
s

smallshen

05/31/2021, 7:44 AM
with older version ComposeLayer is public, but right now it is marked with internal
i

Igor Demin

05/31/2021, 7:52 AM
For what do you need a custom ComposeLayer? You can use ComposePanel to create a Compose content inside a swing component
s

SrSouza

05/31/2021, 4:52 PM
I think is for it own compose render context like LWJGL
i

Igor Demin

05/31/2021, 5:12 PM
own compose render context like LWJGL
If it is the case, then currently the only way is to fork androidx sources
But third-party ComposeLayer's look like an interesting case, so at some point in the future we will be ready to provide an API for that.
s

smallshen

05/31/2021, 8:28 PM
I am trying to implement compose in Minecraft and other LWJGL application, @semoro has an implementation in older version when ComposeLayer is not marked as internal
Also Minecraft 1.17 released in 6.8 and it runs on java 16, it would be good to have such a great ui library in lwjgl application for the Minecraft Modding community and more, like other lwjgl games.