|
| 1 | +package workspace.ui.layout; |
| 2 | + |
| 3 | +/** |
| 4 | + * Enum representing different anchor points for UI layout alignment. These anchor points determine |
| 5 | + * how a UI element will align within its parent container or layout system. |
| 6 | + */ |
| 7 | +public enum Anchor { |
| 8 | + |
| 9 | + /** No specific anchoring; element remains free or defaults to its own positioning logic. */ |
| 10 | + NONE, |
| 11 | + |
| 12 | + /** Anchors element to the top-left corner of the parent container. */ |
| 13 | + TOP_LEFT, |
| 14 | + |
| 15 | + /** Anchors element to the top-right corner of the parent container. */ |
| 16 | + TOP_RIGHT, |
| 17 | + |
| 18 | + /** Anchors element to the bottom-right corner of the parent container. */ |
| 19 | + BOTTOM_RIGHT, |
| 20 | + |
| 21 | + /** Anchors element to the bottom-left corner of the parent container. */ |
| 22 | + BOTTOM_LEFT, |
| 23 | + |
| 24 | + /** Anchors element to the center left of the parent container. */ |
| 25 | + CENTER_LEFT, |
| 26 | + |
| 27 | + /** Anchors element to the center top of the parent container. */ |
| 28 | + CENTER_TOP, |
| 29 | + |
| 30 | + /** Anchors element to the center right of the parent container. */ |
| 31 | + CENTER_RIGHT, |
| 32 | + |
| 33 | + /** Anchors element to the center bottom of the parent container. */ |
| 34 | + CENTER_BOTTOM, |
| 35 | + |
| 36 | + /** Anchors element to the exact center of the parent container. */ |
| 37 | + CENTER, |
| 38 | + |
| 39 | + /** Makes the element extend horizontally across a wide area starting from the left edge. */ |
| 40 | + LEFT_WIDE, |
| 41 | + |
| 42 | + /** Makes the element extend horizontally across a wide area starting from the top edge. */ |
| 43 | + TOP_WIDE, |
| 44 | + |
| 45 | + /** Makes the element extend horizontally across a wide area starting from the right edge. */ |
| 46 | + RIGHT_WIDE, |
| 47 | + |
| 48 | + /** Makes the element extend horizontally across a wide area starting from the bottom edge. */ |
| 49 | + BOTTOM_WIDE, |
| 50 | + |
| 51 | + /** Anchors the element in a vertical-centered wide area relative to its container. */ |
| 52 | + VERTICAL_CENTER_WIDE, |
| 53 | + |
| 54 | + /** Anchors the element in a horizontally-centered wide area relative to its container. */ |
| 55 | + HORIZONTAL_CENTER_WIDE, |
| 56 | + |
| 57 | + /** Extends the element to occupy the full rectangle of its parent container. */ |
| 58 | + FULL_RECTANGLE, |
| 59 | + |
| 60 | + /** Makes the element extend vertically across a wide area starting from the center. */ |
| 61 | + VERTICAL_WIDE, |
| 62 | + |
| 63 | + /** Makes the element extend horizontally across a wide area starting from the center. */ |
| 64 | + HORIZONTAL_WIDE; |
| 65 | +} |
0 commit comments