From d5fe790c86c86e7363f0463e8586ef75c76f31eb Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Thu, 18 May 2023 20:21:23 -0400 Subject: [PATCH] #227 move graphics windows --- graphics/element.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/graphics/element.lua b/graphics/element.lua index 8355cd6..c7b7f74 100644 --- a/graphics/element.lua +++ b/graphics/element.lua @@ -490,6 +490,14 @@ function element.new(args) protected.resize(...) end + -- reposition the element window
+ -- offsets relative to parent frame are where (1, 1) would be on top of the parent's top left corner + ---@param x integer x position relative to parent frame + ---@param y integer y position relative to parent frame + function public.reposition(x, y) + protected.window.reposition(x, y) + end + -- FUNCTION CALLBACKS -- -- handle a monitor touch or mouse click