UNPKG

@dark-engine/platform-desktop

Version:

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

25 lines (24 loc) 878 B
import { type QIcon, type QMainWindowSignals, QMainWindow, QWidget, WindowState } from '@nodegui/nodegui'; import { type ComponentFactory, type Ref } from '@dark-engine/core'; import type { WidgetProps, WithSlotProps, Container } from '../shared'; export type WindowProps = WithSlotProps< { ref?: Ref<WindowRef>; windowTitle?: string; windowOpacity?: number; windowIcon?: QIcon; windowRole?: string; windowState?: WindowState; } & WidgetProps >; export type WindowRef = QDarkMainWindow; export type MainWindowSignals = QMainWindowSignals; declare const Window: ComponentFactory<WindowProps>; declare class QDarkMainWindow extends QMainWindow implements Container { constructor(); detectIsContainer(): boolean; appendChild(child: QWidget): void; insertBefore(): void; removeChild(child: QWidget): void; } export { Window, QDarkMainWindow };