UNPKG

@dark-engine/platform-desktop

Version:

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

25 lines (24 loc) 919 B
import { type QDialogSignals, QDialog, QWidget, FlexLayout } from '@nodegui/nodegui'; import { type ComponentFactory, type Ref } from '@dark-engine/core'; import type { WidgetProps, WithSlotProps, Container } from '../shared'; export type DialogProps = WithSlotProps< { ref?: Ref<DialogRef>; open: boolean; } & WidgetProps >; export type DialogRef = QDarkDialog; export type DialogSignals = QDialogSignals; declare const Dialog: ComponentFactory<DialogProps>; declare class QDarkDialog extends QDialog implements Container { private flexLayout; constructor(); detectIsContainer(): boolean; setOpen(value: boolean): void; getFlexLayout(): FlexLayout; appendChild(child: QWidget): void; insertBefore(child: QWidget, sibling: QWidget): void; removeChild(child: QWidget): void; } declare function detectIsDialog(value: unknown): value is QDialog; export { Dialog, QDarkDialog, detectIsDialog };