O1Library Docs
Fall 2026
Docs API

# Align

o1.gui.Align
object Align

The `Align` singleton provides tools for describing the horizontal and vertical alignment of graphical elements.

## Attributes

Graph
Supertypes
  class Object
  trait Matchable
  class Any
Self type
  Align.type

## Members list

### Type members

#### Classlikes

enum Generic

An enumeration of the three generic schemes for aligning visual components, without specifying whether the horizontal or vertical dimension is involved. These generic values can be converted to either horizontal or vertical alignments.

An enumeration of the three generic schemes for aligning visual components, without specifying whether the horizontal or vertical dimension is involved. These generic values can be converted to either horizontal or vertical alignments.

## Attributes

Supertypes
  trait Enum
  trait Serializable
  trait Product
  trait Equals
  class Object
  trait Matchable
  class Any
  Show all

enum Horizontal

An enumeration of the three schemes for horizontal alignment.

An enumeration of the three schemes for horizontal alignment.

## Attributes

Supertypes
  trait Enum
  trait Serializable
  trait Product
  trait Equals
  class Object
  trait Matchable
  class Any
  Show all

enum Vertical

An enumeration of the three schemes for vertical alignment.

An enumeration of the three schemes for vertical alignment.

## Attributes

Supertypes
  trait Enum
  trait Serializable
  trait Product
  trait Equals
  class Object
  trait Matchable
  class Any
  Show all

### Value members

#### Concrete fields

val Bottom: Vertical

Signals that elements should be vertically bottom-aligned. This is an alias for Align.Vertical.Bottom.

Signals that elements should be vertically bottom-aligned. This is an alias for Align.Vertical.Bottom.

## Attributes

val HMiddle: Horizontal

Signals that elements should be horizontally centered. This is an alias for Align.Horizontal.Middle.

Signals that elements should be horizontally centered. This is an alias for Align.Horizontal.Middle.

## Attributes

val Left: Horizontal

Signals that elements should be horizontally left-aligned. This is an alias for Align.Horizontal.Left.

Signals that elements should be horizontally left-aligned. This is an alias for Align.Horizontal.Left.

## Attributes

val Right: Horizontal

Signals that elements should be horizontally right-aligned. This is an alias for Align.Horizontal.Right.

Signals that elements should be horizontally right-aligned. This is an alias for Align.Horizontal.Right.

## Attributes

val Top: Vertical

Signals that elements should be vertically top-aligned. This is an alias for Align.Vertical.Top.

Signals that elements should be vertically top-aligned. This is an alias for Align.Vertical.Top.

## Attributes

val VMiddle: Vertical

Signals that elements should be vertically centered. This is an alias for Align.Vertical.Middle.

Signals that elements should be vertically centered. This is an alias for Align.Vertical.Middle.

## Attributes