Skip to content

invoke

operator fun GuiGraphics.invoke(block: GuiGraphics.() -> Unit)

Lets a GuiGraphics receiver be invoked like guiGraphics { ... }, running block with this as the receiver. Used throughout the built-in composables' Renderer implementations to avoid repeating the guiGraphics. prefix on every draw call.