annotate gui.ur @ 31:b5432d74841a
Update for key/mouse handler change
author |
Adam Chlipala <adam@chlipala.net> |
date |
Sat, 21 Jul 2012 10:15:14 -0400 |
parents |
5905b56e0cd9 |
children |
d32fb0f7b137 |
rev |
line source |
adam@27
|
1 class gui = fn (t :: Type) (ctx :: {Unit}) => [[Dyn] ~ ctx] => t -> xml ([Dyn] ++ ctx) [] []
|
kkallio@8
|
2
|
adam@27
|
3 fun gui_xbody [[Dyn] ~ _] x = x
|
adam@27
|
4 fun gui_xtable [[Dyn] ~ _] x = x
|
kkallio@8
|
5
|
adam@27
|
6 fun mkGui [t ::: Type] [ctx ::: {Unit}] (toXml : [[Dyn] ~ ctx] => t -> xml ([Dyn] ++ ctx) [] []) = @toXml
|
kkallio@8
|
7
|
adam@27
|
8 fun toXml [t ::: Type] [ctx ::: {Unit}] [[Dyn] ~ ctx] (toXml : gui t ctx) = toXml
|