shamansir / tron-gui / Tron.Style.Dock

Dock


type Dock

Dock describes the direction in which GUI is oriented and to which corner or side of the page it is "docked".

If you are familiar with macOS Dock — here we have the similar concept.

Values

topLeft : Dock

topCenter : Dock

topRight : Dock

middleLeft : Dock

center : Dock

middleRight : Dock

bottomLeft : Dock

bottomCenter : Dock

bottomRight : Dock

Anchors


type HorzAnchor
    = Left
    | Center
    | Right


type VertAnchor
    = Top
    | Middle
    | Bottom

anchors : Dock -> ( HorzAnchor, VertAnchor )

horzAnchor : Dock -> HorzAnchor

vertAnchor : Dock -> VertAnchor

Helpers

toString : Dock -> String