openfl
Version:
A fast, productive library for 2D cross-platform development.
40 lines (31 loc) • 1.02 kB
TypeScript
declare namespace openfl.text {
/**
* The TextFieldAutoSize class is an enumeration of constant values used in
* setting the `autoSize` property of the TextField class.
*/
export enum TextFieldAutoSize {
/**
* Specifies that the text is to be treated as center-justified text. Any
* resizing of a single line of a text field is equally distributed to both
* the right and left sides.
*/
CENTER = "center",
/**
* Specifies that the text is to be treated as left-justified text, meaning
* that the left side of the text field remains fixed and any resizing of a
* single line is on the right side.
*/
LEFT = "left",
/**
* Specifies that no resizing is to occur.
*/
NONE = "none",
/**
* Specifies that the text is to be treated as right-justified text, meaning
* that the right side of the text field remains fixed and any resizing of a
* single line is on the left side.
*/
RIGHT = "right"
}
}
export default openfl.text.TextFieldAutoSize;