TextAlign

public enum
loom2d.display.TextAlign

Description

Text alignment flags used by the Graphics class.

You may combine flags with the bitwise OR operator to specify vertical and horizontal alignment, ie, LEFT | TOP.

API overview

Constructor

TextAlign ()

Attributes

Public attributes

BASELINE: TextAlign static

Default, align text vertically to baseline

BOTTOM: TextAlign static

Align text vertically to bottom

CENTER: TextAlign static

Align text horizontally to center

LEFT: TextAlign static

Default, align text horizontally to left

MIDDLE: TextAlign static

Align text vertically to middle

RIGHT: TextAlign static

Align text horizontally to right

TOP: TextAlign static

Align text vertically to top

Functions

Public functions

Constructor

TextAlign ()

Attributes

BASELINE: TextAlign

static

Default, align text vertically to baseline.

BOTTOM: TextAlign

static

Align text vertically to bottom.

CENTER: TextAlign

static

Align text horizontally to center.

LEFT: TextAlign

static

Default, align text horizontally to left.

MIDDLE: TextAlign

static

Align text vertically to middle.

RIGHT: TextAlign

static

Align text horizontally to right.

TOP: TextAlign

static

Align text vertically to top.

Functions

getFullTypeName (): String
Inherited from Object

native

Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.


Returns

String fully qualified type name of the Object.

getType (): Type
Inherited from Object

native

Gets the Type that describes the Object.


Returns

Type The Type that describes the object.

getTypeName (): String
Inherited from Object

native

Gets the type name of the Object.


Returns

String type name of the Object.

toString (): String
Inherited from Object

native

Returns a String that describes the Object. This can be overriden to provide extra details when printing objects using trace().


Returns

String String that described the Object.

: