UNPKG

@dark-engine/platform-desktop

Version:

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

20 lines (19 loc) 665 B
/// <reference types="node" /> import { QLabel } from '@nodegui/nodegui'; import { type ComponentFactory, type Ref } from '@dark-engine/core'; import type { WidgetProps, WithStandardProps } from '../shared'; export type AnimatedImageProps = WithStandardProps< { ref?: Ref<AnimatedImageRef>; src?: string; buffer?: Buffer; } & WidgetProps >; export type AnimatedImageRef = QDarkAnimatedImage; declare const AnimatedImage: ComponentFactory<AnimatedImageProps>; declare class QDarkAnimatedImage extends QLabel { constructor(); setSrc(value: string): Promise<void>; setBuffer(buffer: Buffer): void; } export { AnimatedImage, QDarkAnimatedImage };