This commit is contained in:
1 parent
ccb809bdc3
commit
7caadb3f7f
59 files changed
+7495
-16
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package moonplasma:gfx@0.2.0;
|
||||
|
||||
/// Host-agnostic GUI loader world backed by wasi-gfx surfaces & frame-buffers.
|
||||
world gui-loader {
|
||||
import wasi-gfx:surface/surface@0.2.0;
|
||||
import wasi-gfx:surface/surface-frame-buffer@0.2.0;
|
||||
import wasi-gfx:frame-buffer/frame-buffer@0.2.0;
|
||||
|
||||
export init-gui: func(width: u32, height: u32);
|
||||
export render-frame: func();
|
||||
export on-resize: func(width: u32, height: u32);
|
||||
export on-pointer: func(kind: u8, x: f64, y: f64);
|
||||
export on-key: func(pressed: bool, text: string);
|
||||
}
|
||||
Reference in new issue
Block a user