Skip to main content
Module

x/astrodon/mod.ts>App

Create Desktop apps with Deno 🦕
Latest
class App
import { App } from "https://deno.land/x/astrodon@0.1.0-alpha.2/mod.ts";

Create a new app

Constructors

new
App(
lib: Deno.DynamicLibrary<AppMethods>,
windows: WindowConfig[],
globalContext: AppContext,
)

Properties

private
app_ptr: Deno.UnsafePointer | undefined
private
lib: Deno.DynamicLibrary<AppMethods>
private
windows: WindowConfig[]

Methods

App.getAppPath() returns the path where the app is located including assets and executable It is dynamic and depends on the environment and context of the app This is a user scope method.

registerWindow(window: WindowConfig)

Registers windows on Deno's side Dev Note: we should register directly on rust to handle the windows as instances This is still not possible since we don't have callbacks support with FFI. See: https://github.com/denoland/deno/pull/13162

run(): void
send(msg: string): void