import Gtk from "gi://Gtk"; import type { Orientation } from "../../../enums/gtk3-index"; import type { GjsContext } from "../../../reconciler/gjs-renderer"; import type { HostContext } from "../../../reconciler/host-context"; import { BaseElement, type GjsElement } from "../../gjs-element"; import { ElementLifecycleController } from "../../utils/element-extenders/element-lifecycle-controller"; import { EventHandlers } from "../../utils/element-extenders/event-handlers"; import type { DiffedProps } from "../../utils/element-extenders/map-properties"; import { PropertyMapper } from "../../utils/element-extenders/map-properties"; import type { AlignmentProps } from "../../utils/property-maps-factories/create-alignment-prop-mapper"; import type { ChildPropertiesProps } from "../../utils/property-maps-factories/create-child-props-mapper"; import type { ExpandProps } from "../../utils/property-maps-factories/create-expand-prop-mapper"; import type { MarginProps } from "../../utils/property-maps-factories/create-margin-prop-mapper"; import type { SizeRequestProps } from "../../utils/property-maps-factories/create-size-request-prop-mapper"; import type { StyleProps } from "../../utils/property-maps-factories/create-style-prop-mapper"; import type { TextNode } from "../text-node"; import { FlowBoxEntryElement } from "./flow-box-entry"; type FlowBoxPropsMixin = ChildPropertiesProps & SizeRequestProps & AlignmentProps & MarginProps & ExpandProps & StyleProps; export interface FlowBoxProps extends FlowBoxPropsMixin { orientation?: Orientation; columnSpacing?: number; activateOnSingleClick?: boolean; maxChildrenPerLine?: number; minChildrenPerLine?: number; rowSpacing?: number; selectionMode?: SelectionMode; sameSizeChildren?: boolean; } export declare class FlowBoxElement extends BaseElement implements GjsElement<"FLOW_BOX", Gtk.FlowBox> { static getContext(currentContext: HostContext): HostContext; readonly kind = "FLOW_BOX"; protected widget: Gtk.FlowBox; protected children: Array<{ element: FlowBoxEntryElement; isSelected: boolean; }>; protected parent: GjsElement | null; readonly lifecycle: ElementLifecycleController; protected handlers: EventHandlers; protected readonly propsMapper: PropertyMapper; protected isAnyChildSelected: boolean; constructor(props: DiffedProps); updateProps(props: DiffedProps): void; appendChild(child: GjsElement | TextNode): void; insertBefore(child: GjsElement, beforeChild: GjsElement): void; remove(parent: GjsElement): void; render(): void; notifyWillMountTo(parent: GjsElement): boolean; notifyMounted(): void; notifyChildWillUnmount(child: GjsElement): void; show(): void; hide(): void; getWidget(): Gtk.FlowBox; getParentElement(): GjsElement | null; } export {};