Skip to main content

Class: EditorPaneGroup

editor/panes/paneGroup.EditorPaneGroup

Hierarchy

Constructors

constructor

โ€ข new EditorPaneGroup(id, pos, width, height)

Creates an EditorPaneGroup.

Parameters

NameTypeDescription
idstringThe group's ID (must be a valid HTML id)
posvec2The top left corner of the group in the editor grid
widthnumberThe width of the group in columns
heightnumberThe height of the group in rows

Overrides

EditorPane.constructor

Defined in

src/editor/panes/paneGroup.ts:18

Properties

currentPane

โ€ข Protected currentPane: EditorPane

Defined in

src/editor/panes/paneGroup.ts:8


domId

โ€ข Readonly domId: string

Inherited from

EditorPane.domId

Defined in

src/editor/panes/pane.ts:13


element

โ€ข Readonly element: HTMLDivElement

Inherited from

EditorPane.element

Defined in

src/ui/element.ts:9


height

โ€ข height: number

Inherited from

EditorPane.height

Defined in

src/editor/panes/pane.ts:17


id

โ€ข Readonly id: string

Inherited from

EditorPane.id

Defined in

src/editor/panes/pane.ts:12


keys

โ€ข Readonly keys: KeyboardHandler

Inherited from

EditorPane.keys

Defined in

src/ui/element.ts:11


mouse

โ€ข Readonly mouse: MouseHandler

Inherited from

EditorPane.mouse

Defined in

src/ui/element.ts:10


panes

โ€ข Protected panes: EditorPane[] = []

Defined in

src/editor/panes/paneGroup.ts:7


pos

โ€ข pos: vec2

Inherited from

EditorPane.pos

Defined in

src/editor/panes/pane.ts:15


titlebar

โ€ข titlebar: BlazeTabBar

Overrides

EditorPane.titlebar

Defined in

src/editor/panes/paneGroup.ts:6


touch

โ€ข Readonly touch: TouchHandler

Inherited from

EditorPane.touch

Defined in

src/ui/element.ts:12


width

โ€ข width: number

Inherited from

EditorPane.width

Defined in

src/editor/panes/pane.ts:16

Methods

addCurrentPane

โ–ธ addCurrentPane(): void

Add the current pane's element to the dom.

Returns

void

Defined in

src/editor/panes/paneGroup.ts:47


addPane

โ–ธ addPane(pane): void

Adds a pane to the group.

Parameters

NameTypeDescription
paneEditorPaneThe pane to add

Returns

void

Defined in

src/editor/panes/paneGroup.ts:94


addTitlebar

โ–ธ addTitlebar(): void

Create and append a BlazeTitleBar to the pane.

Returns

void

Overrides

EditorPane.addTitlebar

Defined in

src/editor/panes/paneGroup.ts:115


refresh

โ–ธ refresh(): void

Refresh the groups ui.

Returns

void

Defined in

src/editor/panes/paneGroup.ts:32


removeCurrentPane

โ–ธ removeCurrentPane(): void

Remove the current pane's element from the dom.

Returns

void

Defined in

src/editor/panes/paneGroup.ts:57


removePane

โ–ธ removePane(pane): boolean

Removes a pane from the group.

Parameters

NameTypeDescription
paneEditorPaneThe pane to remove

Returns

boolean

Defined in

src/editor/panes/paneGroup.ts:104


removeTitlebar

โ–ธ removeTitlebar(): void

Remove the pane's titlebar if it exists.

Returns

void

Inherited from

EditorPane.removeTitlebar

Defined in

src/editor/panes/pane.ts:70


showPane

โ–ธ showPane(id): void

Show the pane with the given id.

Parameters

NameTypeDescription
idstringThe id of the pane

Returns

void

Defined in

src/editor/panes/paneGroup.ts:68

โ–ธ showPane(pane): void

Change the current pane to the one given.

Parameters

NameTypeDescription
paneEditorPaneThe pane to show

Returns

void

Defined in

src/editor/panes/paneGroup.ts:75


update

โ–ธ update(): void

Updates all pane's in the group.

Returns

void

Overrides

EditorPane.update

Defined in

src/editor/panes/paneGroup.ts:25