@dark-engine/platform-desktop
Version:
Dark renderer to desktop platforms like Windows, Linux, macOS via Nodegui and Qt
34 lines (33 loc) • 1 kB
TypeScript
import {
type QWidget,
type QGroupBoxSignals,
type AlignmentFlag,
QGroupBox,
QBoxLayout,
Direction,
} from '@nodegui/nodegui';
import { type ComponentFactory, type Ref } from '@dark-engine/core';
import type { WidgetProps, WithSlotProps, Container } from '../shared';
export type GroupBoxProps = WithSlotProps<
{
ref?: Ref<GroupBoxRef>;
title?: string;
flat?: boolean;
direction?: Direction;
alignment?: AlignmentFlag;
} & WidgetProps
>;
export type GroupBoxRef = QDarkGroupBox;
export type GroupBoxSignals = QGroupBoxSignals;
declare const GroupBox: ComponentFactory<GroupBoxProps>;
declare class QDarkGroupBox extends QGroupBox implements Container {
private boxLayout;
constructor();
detectIsContainer(): boolean;
getBoxLayout(): QBoxLayout;
setDirection(value: Direction): void;
appendChild(child: QWidget): void;
insertBefore(child: QWidget, _: QWidget, idx: number): void;
removeChild(child: QWidget): void;
}
export { GroupBox, QDarkGroupBox };