Class: EditorPaneGroup
editor/panes/paneGroup.EditorPaneGroup
Hierarchy
โณ
EditorPaneGroup
Constructors
constructor
โข new EditorPaneGroup(id, pos, width, height)
Creates an EditorPaneGroup.
Parameters
| Name | Type | Description |
|---|---|---|
id | string | The group's ID (must be a valid HTML id) |
pos | vec2 | The top left corner of the group in the editor grid |
width | number | The width of the group in columns |
height | number | The height of the group in rows |
Overrides
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
Defined in
src/editor/panes/pane.ts:13
element
โข Readonly element: HTMLDivElement
Inherited from
Defined in
src/ui/element.ts:9
height
โข height: number
Inherited from
Defined in
src/editor/panes/pane.ts:17
id
โข Readonly id: string
Inherited from
Defined in
src/editor/panes/pane.ts:12
keys
โข Readonly keys: KeyboardHandler
Inherited from
Defined in
src/ui/element.ts:11
mouse
โข Readonly mouse: MouseHandler
Inherited from
Defined in
src/ui/element.ts:10
panes
โข Protected panes: EditorPane[] = []
Defined in
src/editor/panes/paneGroup.ts:7
pos
โข pos: vec2
Inherited from
Defined in
src/editor/panes/pane.ts:15
titlebar
โข titlebar: BlazeTabBar
Overrides
Defined in
src/editor/panes/paneGroup.ts:6
touch
โข Readonly touch: TouchHandler
Inherited from
Defined in
src/ui/element.ts:12
width
โข width: number
Inherited from
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
| Name | Type | Description |
|---|---|---|
pane | EditorPane | The 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
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
| Name | Type | Description |
|---|---|---|
pane | EditorPane | The 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
Defined in
src/editor/panes/pane.ts:70
showPane
โธ showPane(id): void
Show the pane with the given id.
Parameters
| Name | Type | Description |
|---|---|---|
id | string | The 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
| Name | Type | Description |
|---|---|---|
pane | EditorPane | The 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
Defined in
src/editor/panes/paneGroup.ts:25