interface ILayout {
    get align(): AlignType;
    set align(value: AlignType): void;
    get columnGap(): number;
    set columnGap(value: number): void;
    get columns(): number;
    set columns(value: number): void;
    get contentHeight(): number;
    set contentHeight(value: number): void;
    get contentWidth(): number;
    set contentWidth(value: number): void;
    get foldInvisibles(): boolean;
    set foldInvisibles(value: boolean): void;
    get minChildSize(): number;
    set minChildSize(value: number): void;
    get padding(): number[];
    set padding(value: number[]): void;
    get pageMode(): PageMode;
    set pageMode(value: PageMode): void;
    get rowGap(): number;
    set rowGap(value: number): void;
    get rows(): number;
    set rows(value: number): void;
    get stretchParamsX(): StretchParam[];
    get stretchParamsY(): StretchParam[];
    get stretchX(): StretchMode;
    set stretchX(value: StretchMode): void;
    get stretchY(): StretchMode;
    set stretchY(value: StretchMode): void;
    get type(): LayoutType;
    set type(value: LayoutType): void;
    get valign(): VAlignType;
    set valign(value: VAlignType): void;
    get viewHeight(): number;
    set viewHeight(value: number): void;
    get viewWidth(): number;
    set viewWidth(value: number): void;
    getSnappingPosition(
        xValue: number,
        yValue: number,
        xDir: number,
        yDir: number,
        resultPoint?: Point,
    ): Point;
    refresh(force?: boolean): void;
    resizeToFit(childCount?: number, minSize?: number): void;
    setChangedFlag(reason?: LayoutChangedReason): void;
}

层级 (查看层级一览)

实现于

访问器

方法

  • dir正数表示右移或者下移,负数表示左移或者上移

    参数

    • xValue: number
    • yValue: number
    • xDir: number
    • yDir: number
    • 可选resultPoint: Point

    返回 Point