mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 22:01:42 +08:00
31 lines
901 B
TypeScript
31 lines
901 B
TypeScript
declare module "ui/layouts/absolute-layout" {
|
|
import layout = require("ui/layouts/layout");
|
|
import view = require("ui/core/view");
|
|
|
|
/**
|
|
* A layout that lets you specify exact locations (left/top coordinates) of its children.
|
|
*/
|
|
class AbsoluteLayout extends layout.Layout {
|
|
|
|
/**
|
|
* Gets the value of the Left property from a given View.
|
|
*/
|
|
static getLeft(view: view.View): number;
|
|
|
|
/**
|
|
* Sets the value of the Left property from a given View.
|
|
*/
|
|
static setLeft(view: view.View, value: number): void;
|
|
|
|
/**
|
|
* Gets the value of the Top property from a given View.
|
|
*/
|
|
static getTop(view: view.View): number;
|
|
|
|
/**
|
|
* Sets the value of the Top property from a given View.
|
|
*/
|
|
static setTop(view: view.View, value: number): void;
|
|
|
|
}
|
|
} |