mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +08:00
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { LayoutBase } from '../layout-base';
|
|
import { Property } from '../../core/properties';
|
|
import { View } from '../../core/view';
|
|
import { Length } from '../../styling/style-properties';
|
|
import { CoreTypes } from '../../../core-types';
|
|
|
|
/**
|
|
* A layout that lets you specify exact locations (left/top coordinates) of its children.
|
|
*/
|
|
export class AbsoluteLayout extends LayoutBase {
|
|
/**
|
|
* Gets the value of the Left property from a given View.
|
|
*/
|
|
static getLeft(view: View): CoreTypes.LengthType;
|
|
|
|
/**
|
|
* Sets the value of the Left property from a given View.
|
|
*/
|
|
static setLeft(view: View, value: CoreTypes.LengthType): void;
|
|
|
|
/**
|
|
* Gets the value of the Top property from a given View.
|
|
*/
|
|
static getTop(view: View): CoreTypes.LengthType;
|
|
|
|
/**
|
|
* Sets the value of the Top property from a given View.
|
|
*/
|
|
static setTop(view: View, value: CoreTypes.LengthType): void;
|
|
}
|
|
|
|
/**
|
|
* Represents the observable property backing the left property.
|
|
*/
|
|
export const leftProperty: Property<View, CoreTypes.LengthType>;
|
|
|
|
/**
|
|
* Represents the observable property backing the top property.
|
|
*/
|
|
export const topProperty: Property<View, CoreTypes.LengthType>;
|