(
&mut self,
element: (AlignX, AlignY),
parent: (AlignX, AlignY),
)
| 67 | /// ``` |
| 68 | #[inline] |
| 69 | pub fn anchor( |
| 70 | &mut self, |
| 71 | element: (AlignX, AlignY), |
| 72 | parent: (AlignX, AlignY), |
| 73 | ) -> &mut Self { |
| 74 | self.config.attach_points.element_x = element.0; |
| 75 | self.config.attach_points.element_y = element.1; |
| 76 | self.config.attach_points.parent_x = parent.0; |
| 77 | self.config.attach_points.parent_y = parent.1; |
| 78 | self |
| 79 | } |
| 80 | |
| 81 | /// Attaches this floating element to its parent element (default behavior). |
| 82 | #[inline] |
no outgoing calls