@dark-engine/platform-desktop
Version:
Dark renderer to desktop platforms like Windows, Linux, macOS via Nodegui and Qt
26 lines (25 loc) • 964 B
TypeScript
import { type QScrollAreaSignals, type ScrollBarPolicy, QWidget, QScrollArea } from '@nodegui/nodegui';
import { type ComponentFactory, type Ref } from '@dark-engine/core';
import type { WidgetProps, WithStandardProps, Container } from '../shared';
export type ScrollAreaProps = WithStandardProps<
{
ref?: Ref<ScrollAreaRef>;
resizable?: boolean;
horizontalScrollBarPolicy?: ScrollBarPolicy;
verticalScrollBarPolicy?: ScrollBarPolicy;
} & WidgetProps
> & {
slot: ComponentFactory;
};
export type ScrollAreaRef = QDarkScrollArea;
export type ScrollAreaSignals = QScrollAreaSignals;
declare const ScrollArea: ComponentFactory<ScrollAreaProps>;
declare class QDarkScrollArea extends QScrollArea implements Container {
constructor();
detectIsContainer(): boolean;
setResizable(value: boolean): void;
appendChild(child: QWidget): void;
insertBefore(): void;
removeChild(child: QWidget): void;
}
export { ScrollArea, QDarkScrollArea };