UNPKG

@dark-engine/platform-desktop

Version:

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

25 lines (24 loc) 1 kB
import { type QSystemTrayIconSignals, type QIcon, QWidget, QSystemTrayIcon } from '@nodegui/nodegui'; import { type ComponentFactory, type Ref } from '@dark-engine/core'; import type { WidgetProps, WithSlotProps, Container } from '../shared'; export type SystemTrayIconProps = WithSlotProps< { ref?: Ref<SystemTrayIconRef>; visible: boolean; icon: QIcon; toolTip?: string; } & WidgetProps >; export type SystemTrayIconRef = QDarkSystemTrayIcon; export type SystemTrayIconSignals = QSystemTrayIconSignals; declare const SystemTrayIcon: ComponentFactory<SystemTrayIconProps>; declare class QDarkSystemTrayIcon extends QSystemTrayIcon implements Container { constructor(); detectIsContainer(): boolean; setVisible(value: boolean): void; appendChild(child: QWidget): void; insertBefore(): void; removeChild(): void; } declare function detectIsSystemTrayIcon(value: unknown): value is QDarkSystemTrayIcon; export { SystemTrayIcon, QDarkSystemTrayIcon, detectIsSystemTrayIcon };