TabBar
Extends:
Static Method Summary
| Static Public Methods | ||
| public static |
|
|
| public static |
setDefault(e: *): * |
|
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
canvas: * |
|
| public |
|
|
| public |
g: * |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
onchange: * |
|
| public |
onselect: * |
|
| public |
|
|
| public |
|
|
| public |
tabs: *[] |
|
| public get |
tool: * |
|
| public set |
|
|
| Private Members | ||
| private |
_last_dpi: * |
|
| private |
_last_p_key: * |
|
| private |
_last_pos: * |
|
| private |
|
|
| private |
_size_cb: * |
|
| private |
_tool: * |
|
Method Summary
| Public Methods | ||
| public |
addIconTab(icon: *, id: *, tooltip: *, movable: boolean): * |
|
| public |
|
|
| public |
clear() |
|
| public |
getTab(name_or_id: *): * |
|
| public |
loadData(obj: *): * |
|
| public |
on_pointerdown(e: *) |
|
| public |
on_pointermove(e: *) |
|
| public |
on_pointerup(e: *) |
|
| public |
removeTab(tab: *) |
|
| public |
saveData(): {"taborder": *, "active": *} |
|
| public |
setActive(tab: *, event: *) tab is a TabItem instance |
|
| public |
setCSS() |
|
| public |
swapTabs(a: *, b: *) |
|
| public |
|
|
| public |
updateCanvas(force_update: boolean) |
|
| public |
|
|
| public |
|
|
| public |
|
|
| Private Methods | ||
| private |
_doclick(e: *) |
|
| private |
_doelement(e: *, mx: *, my: *) |
|
| private |
_domouse(e: *) |
|
| private |
|
|
| private |
_fireOnSelect(): * |
|
| private |
_getFont(tsize: *): * |
|
| private |
_layout() |
|
| private |
_makeOnSelectEvt(): {"tab": *, "defaultPrevented": *, "preventDefault": function} |
|
| private |
_redraw() |
|
| private |
_startMove(tab: *, event: *, pointerId: *, pointerElem: *) |
|
Public Constructors
public constructor() source
Public Members
public canvas: * source
public g: * source
public onchange: * source
public onselect: * source
public tabs: *[] source
public get tool: * source
public set tool source
Private Members
private _last_dpi: * source
private _last_p_key: * source
private _last_pos: * source
private _last_style_key: * source
private _size_cb: * source
private _tool: * source
Public Methods
public addIconTab(icon: *, id: *, tooltip: *, movable: boolean): * source
Params:
| Name | Type | Attribute | Description |
| icon | * | ||
| id | * | ||
| tooltip | * | ||
| movable | boolean |
|
Return:
| * |
public addTab(name: *, id: *, tooltip: string, movable: *): * source
Params:
| Name | Type | Attribute | Description |
| name | * | ||
| id | * | ||
| tooltip | string |
|
|
| movable | * |
Return:
| * |
public clear() source
public on_pointerdown(e: *) source
Params:
| Name | Type | Attribute | Description |
| e | * |
public on_pointermove(e: *) source
Params:
| Name | Type | Attribute | Description |
| e | * |
public on_pointerup(e: *) source
Params:
| Name | Type | Attribute | Description |
| e | * |
public removeTab(tab: *) source
Params:
| Name | Type | Attribute | Description |
| tab | * |
public setActive(tab: *, event: *) source
tab is a TabItem instance
Params:
| Name | Type | Attribute | Description |
| tab | * | ||
| event | * |
public setCSS() source
public swapTabs(a: *, b: *) source
Params:
| Name | Type | Attribute | Description |
| a | * | ||
| b | * |
public update(force_update: boolean) source
Params:
| Name | Type | Attribute | Description |
| force_update | boolean |
|
public updateCanvas(force_update: boolean) source
Params:
| Name | Type | Attribute | Description |
| force_update | boolean |
|
public updateDPI(force_update: boolean) source
Params:
| Name | Type | Attribute | Description |
| force_update | boolean |
|
public updatePos(force_update: boolean) source
Params:
| Name | Type | Attribute | Description |
| force_update | boolean |
|
public updateStyle() source
Private Methods
private _doclick(e: *) source
Params:
| Name | Type | Attribute | Description |
| e | * |
private _doelement(e: *, mx: *, my: *) source
Params:
| Name | Type | Attribute | Description |
| e | * | ||
| mx | * | ||
| my | * |
private _domouse(e: *) source
Params:
| Name | Type | Attribute | Description |
| e | * |
private _ensureNoModal() source
private _layout() source
private _redraw() source
private _startMove(tab: *, event: *, pointerId: *, pointerElem: *) source
Params:
| Name | Type | Attribute | Description |
| tab | * |
|
|
| event | * | ||
| pointerId | * |
|
|
| pointerElem | * |
|
