This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-js/lib/src/widget/layouts.d.ts
2020-04-16 19:28:23 +08:00

22 lines
770 B
TypeScript

import { Group, View } from "../ui/view";
import { Gravity } from "../util/gravity";
export declare class Stack extends Group {
}
export declare class Root extends Stack {
}
declare class LinearLayout extends Group {
space?: number;
gravity?: Gravity;
}
export declare class VLayout extends LinearLayout {
}
export declare class HLayout extends LinearLayout {
}
export declare function stack(views: View[], config?: Partial<Stack>): Stack;
export declare function hlayout(views: View[], config?: Partial<HLayout>): HLayout;
export declare function vlayout(views: View[], config?: Partial<VLayout>): VLayout;
export declare class FlexLayout extends Group {
}
export declare function flexlayout(views: View[], config?: Partial<FlexLayout>): FlexLayout;
export {};