## setPosition ### Description Changes the position relative to its parent frame ### Parameters 1. `number|string` The x coordinate as a number or a dynamic value as a string 2. `number|string` The y coordinate as a number or a dynamic value as a string 3. `boolean` (optional) Whether to add/remove the given coordinates to the current position instead of setting them directly. Default is `false`. ### Returns 1. `object` The object in use ### Usage * Set the button's position to an x coordinate of 2 and a y coordinate of 3: ```lua local basalt = require("basalt") local mainFrame = basalt.createFrame() mainFrame:addButton():setPosition(2, 3) ``` ```xml