aboutsummaryrefslogtreecommitdiff
path: root/docs/api/renwindow.lua
blob: d159499554daff736860e7585cdc2e1f067dfd39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---@meta

---
---Functionality to create and manage windows
---@class renwindow
renwindow = {}

---
---Create a new window
---
---
---
---@param x integer? if nil will be undefined
---@param y integer? if nil will be undefined
---@param width integer? if nil or less than 1 will be calculated from display
---@param height integer? if nil or less than 1 will be calculated from display
---
---@return renwindow
function renwindow.create(x, y, width, height) end

---
--- Get width and height of a window
---
---@param renwindow
---
---@return number width
---@return number height
function renwindow.get_size(window) end