UNPKG

@dark-engine/platform-desktop

Version:

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

39 lines (38 loc) 1.12 kB
import { type QInputDialogSignals, type InputMode, type InputDialogOptions, type EchoMode, QInputDialog, } from '@nodegui/nodegui'; import { type ComponentFactory, type Ref } from '@dark-engine/core'; import type { WidgetProps, WithStandardProps } from '../shared'; export type InputDialogProps = WithStandardProps< { ref?: Ref<InputDialogRef>; open: boolean; inputMode: InputMode; doubleDecimals?: number; doubleMaximum?: number; doubleMinimum?: number; doubleStep?: number; doubleValue?: number; intMaximum?: number; intMinimum?: number; intStep?: number; intValue?: number; labelText?: string; okButtonText?: string; cancelButtonText?: string; options?: InputDialogOptions; textEchoMode?: EchoMode; textValue?: string; } & WidgetProps >; export type InputDialogRef = QDarkInputDialog; export type InputDialogSignals = QInputDialogSignals; declare const InputDialog: ComponentFactory<InputDialogProps>; declare class QDarkInputDialog extends QInputDialog { setOpen(value: boolean): void; } export { InputDialog, QDarkInputDialog };