CToolBox
Implements the tool box widget.
import { CToolBox } from "canvas-toolkit-lib";Declared members
readonly currentChanged: CSignal<[number]>;Signal emitted when current changes.
constructor(parent?: CWidget | null);Creates a new instance.
addItem(widget: CWidget, text: string): number;Adds item.
insertItem(index: number, widget: CWidget, text: string): number;Inserts item.
removeItem(index: number): void;Removes item.
count(): number;Provides count behavior.
currentIndex(): number;Returns the current index.
setCurrentIndex(index: number): void;Sets the current index.
setCurrentWidget(widget: CWidget): void;Sets the current widget.
currentWidget(): CWidget | null;Returns the current widget.
widget(index: number): CWidget | null;Provides widget behavior.
indexOf(widget: CWidget): number;Provides index of behavior.
itemText(index: number): string;Provides item text behavior.
setItemText(index: number, text: string): void;Sets the item text.
isItemEnabled(index: number): boolean;Returns whether the item enabled condition is active.
setItemEnabled(index: number, enabled: boolean): void;Sets the item enabled.
sizeHint(): CSize;Returns the preferred size of the widget.
setGeometry(x: number, y: number, width: number, height: number): void;Sets the geometry.
protected paintEvent(_painter: CPainter): void;Handles the paint event.
protected keyPressEvent(event: CKeyEvent): void;