UNPKG

@dark-engine/platform-desktop

Version:

Dark renderer to desktop platforms like Windows, Linux, macOS via Nodegui and Qt

25 lines (24 loc) 810 B
import { type QTabWidget, QIcon } from '@nodegui/nodegui'; import { type ComponentFactory, type Ref } from '@dark-engine/core'; import type { WithSlotProps } from '../shared'; import { QDarkFlexLayout } from './flex-layout'; export type TabItemProps = WithSlotProps<{ ref?: Ref<TabItemRef>; text: string; icon?: QIcon; }>; export type TabItemRef = QDarkTabItem; declare const TabItem: ComponentFactory<TabItemProps>; declare class QDarkTabItem extends QDarkFlexLayout { private tab; private text; private icon; setTab(value: QTabWidget): void; setText(value: string): void; getText(): string; setIcon(value: QIcon): void; getIcon(): QIcon; getIndex(): number; } declare function detectIsTabItem(value: unknown): value is QDarkTabItem; export { TabItem, QDarkTabItem, detectIsTabItem };