UNPKG

@dark-engine/platform-desktop

Version:

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

18 lines (17 loc) 527 B
import { QSvgWidget } from '@nodegui/nodegui'; import { type ComponentFactory, type Ref } from '@dark-engine/core'; import type { WidgetProps, WithStandardProps } from '../shared'; export type SvgProps = WithStandardProps< { ref?: Ref<SvgRef>; source?: string; path?: string; } & WidgetProps >; export type SvgRef = QDarkSvg; declare const Svg: ComponentFactory<SvgProps>; declare class QDarkSvg extends QSvgWidget { setSource(value: string): void; setPath(value: string): void; } export { Svg, QDarkSvg };