blaze-2d
Version:
A fast and simple WebGL 2 2D game engine written in TypeScript
34 lines (33 loc) • 1.01 kB
TypeScript
import { vec2 } from "gl-matrix";
import BlazeElement from "../../ui/element";
import BlazeTitleBar from "../../ui/titleBar";
import "../styles/editor-pane.css";
export default class EditorPane extends BlazeElement<HTMLDivElement> {
protected titlebar: BlazeTitleBar;
readonly id: string;
readonly domId: string;
pos: vec2;
width: number;
height: number;
/**
* Creates an {@link EditorPane}.
*
* @param id The pane's ID (must be a valid HTML id)
* @param pos The top left corner of the pane in the editor grid
* @param width The width of the pane in columns
* @param height The height of the pane in rows
*/
constructor(id: string, pos?: vec2, width?: number, height?: number);
/**
* Perform pane updates.
*/
update(): void;
/**
* Create and append a {@link BlazeTitleBar} to the pane.
*/
addTitlebar(): void;
/**
* Remove the pane's titlebar if it exists.
*/
removeTitlebar(): void;
}