Set the overlay position relative to its anchor. For example, `(Horizontal::Center, Vertical::Top)` places the overlay above the anchor with its horizontal center aligned to it.
(mut self, horizontal: Horizontal, vertical: Vertical)
| 81 | /// For example, `(Horizontal::Center, Vertical::Top)` places the overlay |
| 82 | /// above the anchor with its horizontal center aligned to it. |
| 83 | pub fn align_to_anchor(mut self, horizontal: Horizontal, vertical: Vertical) -> Self { |
| 84 | self.align_to_anchor_horizontal = horizontal; |
| 85 | self.align_to_anchor_vertical = vertical; |
| 86 | self |
| 87 | } |
| 88 | |
| 89 | /// Set the overlay's horizontal position relative to its anchor. |
| 90 | pub fn align_to_anchor_horizontal(mut self, horizontal: Horizontal) -> Self { |
no outgoing calls
no test coverage detected