roc/examples/gui/platform/main.roc
2022-06-16 15:21:55 -04:00

15 lines
387 B
Text

platform "gui"
requires {} { render : Elem }
exposes []
packages {}
imports []
provides [renderForHost]
Rgba : { r : F32, g : F32, b : F32, a : F32 }
ButtonStyles : { bgColor : Rgba, borderColor : Rgba, borderWidth : F32, textColor : Rgba }
Elem : [Button Elem ButtonStyles, Col (List Elem), Row (List Elem), Text Str]
renderForHost : Elem
renderForHost = render