Skip to main content
Module

x/carol/mod.ts>Window

A Deno port of carlo
Latest
interface Window
import { type Window } from "https://deno.land/x/carol@v1.1.4/mod.ts";

Methods

exposeFunction(name: string, func: Function): Promise<void>

Same as Application.exposeFunction, but only applies to the current window.

evaluate(pageFunction: string | Function, ...args: unknown[]): Promise<any>

Evaluates pageFunction in the page context.

serveFolder(folder?: string, prefix?: string): void

Same as Application.serveFolder, but only applies to the current window.

serveOrigin(base: string, prefix?: string): void

Same as Application.serveOrigin, but only applies to the current window.

serveHandler(handler: HttpHandler): void

Same as AppOptions.serveHandler, but only applies to the current window requests.

load(uri?: string, ...params: unknown[]): Promise<unknown>

Navigates the corresponding web page to the given uri.

bounds(): Promise<Bounds>

Returns window bounds.

setBounds(bounds: Bounds): Promise<void>

Sets window bounds.

fullscreen(): Promise<void>

Turns the window into the full screen mode.

minimize(): Promise<void>

Minimizes the window.

maximize(): Promise<void>

Maximizes the window.

bringToFront(): Promise<void>

Brings this window to front.

close(): Promise<void>

Closes the window.

isClosed(): boolean

Returns true if this window is closed.