- [NEW] mouse.inside(x,y,w,h)

- [WIP] fonted tool
This commit is contained in:
2025-12-09 14:05:12 +01:00
parent eac20bbbe0
commit 6e15fe7231
6 changed files with 232 additions and 126 deletions

View File

@@ -17,6 +17,11 @@ function surf.new(w, h) end
---Load GIF file and return surface
function surf.load(filename) end
---@param filename string
---@return number surface
---Load GIF from external file and return surface
function surf.loadex(filename) end
---@param surface number
---@param filename string
---@optional palette table
@@ -525,6 +530,15 @@ function mouse.dblclick() end
---Ignores current down button, effectively not raising the next "press" event
function mouse.discard() end
---@param x number
---@param y number
---@param w number
---@param h number
---@return boolean
---Returns whether the mouse is inside the rectangle specified
function mouse.inside(x,y,w,h) end
mouse.LEFT = 1
mouse.MIDDLE = 2
mouse.RIGHT = 3