Skip to main content

Class: EditorPane

editor/panes/pane.EditorPane

Hierarchy

Constructors

constructor

โ€ข new EditorPane(id, pos?, width?, height?)

Creates an EditorPane.

Parameters

NameTypeDefault valueDescription
idstringundefinedThe pane's ID (must be a valid HTML id)
posvec2undefinedThe top left corner of the pane in the editor grid
widthnumber1The width of the pane in columns
heightnumber1The height of the pane in rows

Overrides

BlazeElement.constructor

Defined in

src/editor/panes/pane.ts:27

Properties

domId

โ€ข Readonly domId: string

Defined in

src/editor/panes/pane.ts:13


element

โ€ข Readonly element: HTMLDivElement

Inherited from

BlazeElement.element

Defined in

src/ui/element.ts:9


height

โ€ข height: number

Defined in

src/editor/panes/pane.ts:17


id

โ€ข Readonly id: string

Defined in

src/editor/panes/pane.ts:12


keys

โ€ข Readonly keys: KeyboardHandler

Inherited from

BlazeElement.keys

Defined in

src/ui/element.ts:11


mouse

โ€ข Readonly mouse: MouseHandler

Inherited from

BlazeElement.mouse

Defined in

src/ui/element.ts:10


pos

โ€ข pos: vec2

Defined in

src/editor/panes/pane.ts:15


titlebar

โ€ข Protected titlebar: BlazeTitleBar

Defined in

src/editor/panes/pane.ts:10


touch

โ€ข Readonly touch: TouchHandler

Inherited from

BlazeElement.touch

Defined in

src/ui/element.ts:12


width

โ€ข width: number

Defined in

src/editor/panes/pane.ts:16

Methods

addTitlebar

โ–ธ addTitlebar(): void

Create and append a BlazeTitleBar to the pane.

Returns

void

Defined in

src/editor/panes/pane.ts:60


removeTitlebar

โ–ธ removeTitlebar(): void

Remove the pane's titlebar if it exists.

Returns

void

Defined in

src/editor/panes/pane.ts:70


update

โ–ธ update(): void

Perform pane updates.

Returns

void

Defined in

src/editor/panes/pane.ts:55