@dark-engine/platform-desktop
Version:
Dark renderer to desktop platforms like Windows, Linux, macOS via Nodegui and Qt
22 lines (21 loc) • 751 B
TypeScript
import { type QActionSignals, type QIcon, type QKeySequence, type ShortcutContext, QAction } from '@nodegui/nodegui';
import { type ComponentFactory, type Ref } from '@dark-engine/core';
import type { WidgetProps, WithStandardProps } from '../shared';
export type ActionProps = WithStandardProps<
{
ref?: Ref<ActionRef>;
text?: string;
icon?: QIcon;
disabled?: boolean;
separator?: boolean;
shortcut?: QKeySequence;
shortcutContext?: ShortcutContext;
} & WidgetProps
>;
export type ActionRef = QDarkAction;
export type ActionSignals = QActionSignals;
declare const Action: ComponentFactory<ActionProps>;
declare class QDarkAction extends QAction {
setDisabled(value: boolean): void;
}
export { Action, QDarkAction };