Anchor

Description

[Flags]
enum Tinman.Engine.Drawing.Anchor

Enumeration of anchor points.

Left      Right
 +----+-----+ Top
 |   _____  |
 |  / ____| |
 | | |  __  |
 +-| |-|_ |-+ Center
 | | |__| | |
 +--\_. ._|-+ Base
 |    | |   |
 |    |_|   |
 +----+-----+ Bottom
     Center

If the baseline is not applicable, the bottom line will be used instead.

Public / Constants

Center

public constant Center → (0:int32)

Center anchor.

+----+-----+
|   _____  |
|  / ____| |
| | |  __  |
+-| |#|_ |-+
| | |__| | |
+--\_. ._|-+
|    | |   |
|    |_|   |
+----+-----+

Top

public constant Top → (1:int32)

Top anchor.

Defaults to center of top edge, unless combined with Left or Right.

############
|   _____  |
|  / ____| |
| | |  __  |
+-| |-|_ |-+
| | |__| | |
+--\_. ._|-+
|    | |   |
|    |_|   |
+----+-----+

Base

public constant Base → (2:int32)

Base anchor.

Defaults to center of baseline, unless combined with Left or Right.

+----+-----+
|   _____  |
|  / ____| |
| | |  __  |
+-| |-|_ |-+
| | |__| | |
###\_. ._|##
|    | |   |
|    |_|   |
+----+-----+

Bottom

public constant Bottom → (4:int32)

Bottom anchor.

Defaults to center of bottom edge, unless combined with Left or Right.

+----+-----+
|   _____  |
|  / ____| |
| | |  __  |
+-| |-|_ |-+
| | |__| | |
+--\_. ._|-+
|    | |   |
|    |_|   |
############

Left

public constant Left → (8:int32)

Bottom anchor.

Defaults to center of left edge, unless combined with Top, Base or Right.

#----+-----+
#   _____  |
#  / ____| |
# | |  __  |
#-| |-|_ |-+
# | |__| | |
#--\_. ._|-+
#    | |   |
#    |_|   |
#----+-----+
See also

Anchor.Right

public constant Right → (16:int32)

Bottom anchor.

Defaults to center of right edge, unless combined with Top, Base or Bottom.

+----+-----#
|   _____  #
|  / ____| #
| | |  __  #
+-| |-|_ |-#
| | |__| | #
+--\_. ._|-#
|    | |   #
|    |_|   #
+----+-----#
See also

Anchor.Left

TopLeft

public constant TopLeft → (9:int32)

Shortcut for: Top | Left.

###---+-----+
 |   _____  |
 |  / ____| |
 | | |  __  |
 +-| |-|_ |-+
 | | |__| | |
 +--\_. ._|-+
 |    | |   |
 |    |_|   |
 +----+-----+

TopRight

public constant TopRight → (17:int32)

Shortcut for: Top | Right.

+----+----###
|   _____  |
|  / ____| |
| | |  __  |
+-| |-|_ |-+
| | |__| | |
+--\_. ._|-+
|    | |   |
|    |_|   |
+----+-----+

BaseLeft

public constant BaseLeft → (10:int32)

Shortcut for: Base | Left.

 +----+-----+
 |   _____  |
 |  / ____| |
 | | |  __  |
 +-| |-|_ |-+
 | | |__| | |
###-\_. ._|-+
 |    | |   |
 |    |_|   |
 +----+-----+

BaseRight

public constant BaseRight → (18:int32)

Shortcut for: Base | Right.

+----+-----+
|   _____  |
|  / ____| |
| | |  __  |
+-| |-|_ |-+
| | |__| | |
+--\_. ._|###
|    | |   |
|    |_|   |
+----+-----+

BottomLeft

public constant BottomLeft → (12:int32)

Shortcut for: Bottom | Left.

 +----+-----+
 |   _____  |
 |  / ____| |
 | | |  __  |
 +-| |-|_ |-+
 | | |__| | |
 +--\_. ._|-+
 |    | |   |
 |    |_|   |
###---+-----+

BottomRight

public constant BottomRight → (20:int32)

Shortcut for: Bottom | Right.

+----+-----+
|   _____  |
|  / ____| |
| | |  __  |
+-| |-|_ |-+
| | |__| | |
+--\_. ._|-+
|    | |   |
|    |_|   |
+----+----###

Vertical

public constant Vertical → (7:int32)

Bitmask for getting the vertical anchors.

Horizontal

public constant Horizontal → (24:int32)

Bitmask for getting the horizontal anchors.

All

public constant All → (31:int32)

All flags.