#62, #63 graphics primatives and added display boxes to renderer

This commit is contained in:
Mikayla Fischler
2022-06-06 15:42:39 -04:00
parent 285026c1fa
commit 8ea75b9501
6 changed files with 353 additions and 12 deletions

View File

@@ -0,0 +1,21 @@
-- Root Display Box Graphics Element
local element = require("graphics.element")
---@class displaybox_args
---@field window table
---@field x? integer 1 if omitted
---@field y? integer 1 if omitted
---@field width? integer parent width if omitted
---@field height? integer parent height if omitted
---@field gframe? graphics_frame frame instead of x/y/width/height
---@field fg_bg? cpair foreground/background colors
-- new root display box
---@param args displaybox_args
local function displaybox(args)
-- create new graphics element base object
return element.new(args).get()
end
return displaybox