@fengxi/ui-framework
Version:
Cocos Creator UI框架库 类似鸿蒙的UI框架
19 lines (18 loc) • 911 B
TypeScript
import { Layout, UITransform } from 'cc';
import { UICustomComponent } from '../../../page/custom/UICustomComponent';
import { Color, Direction, HorizontalAlign, UILayoutCommonAttribute, VerticalAlign } from '../../common/UICommonAttribute';
import { UIComponent } from '../../UIComponent';
export declare class UIBaseLayout extends UIComponent implements UILayoutCommonAttribute {
alignItems(alignItems: VerticalAlign | HorizontalAlign): this;
backgroundColor(color: Color): this;
height(height: number): this;
justifyContent(justifyContent: VerticalAlign | HorizontalAlign): this;
padding(padding: Direction | number): this;
width(width: number): this;
protected layout: Layout | undefined;
protected transform: UITransform | undefined;
constructor();
setLayout(): void;
setTransform(): void;
addUIComponent(component: UICustomComponent | UIComponent): this;
}