This commit is contained in:
1 parent
ccb809bdc3
commit
7caadb3f7f
59 files changed
+7495
-16
No files matched your search
@@ -0,0 +1,37 @@
|
||||
// Generated by `wit-bindgen` 0.63.0. DO NOT EDIT!
|
||||
///|
|
||||
pub(all) struct Context(Int) derive()
|
||||
|
||||
///|
|
||||
/// Drops a resource handle.
|
||||
pub fn Context::drop(self : Context) -> Unit {
|
||||
let Context(resource) = self
|
||||
wasmImportResourceDropContext(resource)
|
||||
}
|
||||
///|
|
||||
pub fn Context::context(surface : @surface.Surface) -> Context {
|
||||
|
||||
let @surface.Surface(handle) = surface
|
||||
let result : Int = wasmImportConstructorContext(handle);
|
||||
let ret = Context::Context(result)
|
||||
return ret
|
||||
|
||||
}
|
||||
///|
|
||||
pub fn Context::get_current_buffer(self : Context) -> @frame-buffer.Buffer {
|
||||
|
||||
let Context(handle) = self
|
||||
let result : Int = wasmImportMethodContextGetCurrentBuffer(handle);
|
||||
let ret = @frame-buffer.Buffer::Buffer(result)
|
||||
return ret
|
||||
|
||||
}
|
||||
///|
|
||||
/// TODO: consider if needed
|
||||
pub fn Context::present(self : Context) -> Unit {
|
||||
|
||||
let Context(handle) = self
|
||||
wasmImportMethodContextPresent(handle);
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user