diff options
Diffstat (limited to '')
| -rw-r--r-- | native/src/overlay/element.rs | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/native/src/overlay/element.rs b/native/src/overlay/element.rs index f418a518..24b39ced 100644 --- a/native/src/overlay/element.rs +++ b/native/src/overlay/element.rs @@ -25,6 +25,11 @@ where          Self { position, overlay }      } +    /// Returns the position of the [`Element`]. +    pub fn position(&self) -> Point { +        self.position +    } +      /// Translates the [`Element`].      pub fn translate(mut self, translation: Vector) -> Self {          self.position = self.position + translation;  | 
