@imgui-js-xyz/target-web
Version:
imgui.js for games
35 lines (34 loc) • 1.26 kB
TypeScript
import { imgui as ImGui } from '@imgui-js-xyz/core';
export { ImGui as imgui };
export type DOMCanvas = HTMLCanvasElement | OffscreenCanvas;
export declare class ImGuiWebContext {
value: DOMCanvas | WebGL2RenderingContext | WebGLRenderingContext | CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D;
constructor(value: DOMCanvas | WebGL2RenderingContext | WebGLRenderingContext | CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D, { wantEvents, }?: {
wantEvents?: boolean;
});
destroy(): void;
newFrame(time: number): void;
endFrame(): void;
render(): void;
private _canvas;
private _renderer;
private _prevTime;
private _clipboardText;
private _destroyingController;
private _doRenderDrawData;
private _createFontTexture;
private _documentOnCopy;
private _documentOnCut;
private _documentOnPaste;
private _windowOnGamePadConnected;
private _windowOnGamePadDisconnected;
private _canvasOnBlur;
private _canvasOnKeyDown;
private _canvasOnKeyUp;
private _canvasOnKeyPress;
private _canvasOnPointerMove;
private _canvasOnPointerDown;
private _canvasOnContextMenu;
private _canvasOnPointerUp;
private _canvasOnWheel;
}