CTabWidget
Implements the tab widget widget.
import { CTabWidget } from "canvas-toolkit-lib";Declared members
readonly currentChanged: CSignal<[number]>;Signal emitted when current changes.
readonly tabClicked: CSignal<[number]>;Public tab clicked member.
constructor(parent?: CWidget | null);Creates a new instance.
addTab(widget: CWidget, text: string): number;Adds tab.
insertTab(index: number, widget: CWidget, text: string): number;Inserts tab.
removeTab(index: number): CWidget | null;Removes tab.
count(): number;Provides count behavior.
currentIndex(): number;Returns the current index.
currentWidget(): CWidget | null;Returns the current widget.
setCurrentIndex(index: number): void;Sets the current index.
setCurrentWidget(widget: CWidget): void;Sets the current widget.
widget(index: number): CWidget | null;Provides widget behavior.
indexOf(widget: CWidget): number;Provides index of behavior.
tabText(index: number): string;Provides tab text behavior.
setTabText(index: number, text: string): void;Sets the tab text.
isTabEnabled(index: number): boolean;Returns whether the tab enabled condition is active.
setTabEnabled(index: number, enabled: boolean): void;Sets the tab enabled.
isTabHovered(index: number): boolean;Returns whether the tab hovered condition is active.
isTabPressed(index: number): boolean;Returns whether the tab pressed condition is active.
tabWidth(i: number): number;Provides tab width behavior.
tabHeight(): number;Provides tab height behavior.
setGeometry(x: number, y: number, width: number, height: number): void;Sets the geometry.
protected keyPressEvent(event: CKeyEvent): void;protected mousePressEvent(event: CMouseEvent): void;Handles the mouse press event.
protected mouseReleaseEvent(event: CMouseEvent): void;Handles the mouse release event.
protected mouseMoveEvent(event: CMouseEvent): void;Handles the mouse move event.
protected mouseLeaveEvent(event: CMouseEvent): void;Handles the mouse leave event.
protected paintEvent(painter: CPainter): void;Handles the paint event.