--[[
<<<<<<< HEAD
Minimal IMGUI for creating interactive tests for UI libraries.
Written by Cosmin Apreutesei. Public Domain.
This API is designed for stability so it is necessarily small and not very
customizable. If you change this API, text/fix the test UIs that use it.
DRAWING
=======
Minimal IMGUI for creating interactive tests for UI libraries.
Written by Cosmin Apreutesei. Public Domain.
This API is designed for stability so it is necessarily small and not very
customizable. If you change this API, text/fix the test UIs that use it.
DRAWING
>>>>>>> 76a691adfaf476c4f9fa10eff1a940381b006224
:setcolor(c)
:text_w(s, bold)
:text('left|center|right', 'top|bottom|center, x, y, w, h, bold, color)
:box(x, y, w, h, [bg_color], [border_color])
<<<<<<< HEAD
LAYOUTING
=======
LAYOUTING
>>>>>>> 76a691adfaf476c4f9fa10eff1a940381b006224
:reset()
:rect(w, h)
:pushgroup(['down|right'], [minmax])
:popgroup([margin])
:nextgroup([margin])
<<<<<<< HEAD
.min_w, .min_h, .margin_h, .margin_w
INPUT
:hit(x, y, w, h) -> t|f
:activate(id, x, y, w, h) -> t|f
WIDGETS
=======
.min_w, .min_h, .margin_h, .margin_w
INPUT
:hit(x, y, w, h) -> t|f
:activate(id, x, y, w, h) -> t|f
WIDGETS
>>>>>>> 76a691adfaf476c4f9fa10eff1a940381b006224
:heading(s)
:label(s)
:button(id, [label], [selected]) -> activated
:choose(id, options, v, [opt_name]) -> v1
:slide(id, [label], v, min, max, [step], [default]) -> v
:image(bitmap)
<<<<<<< HEAD
TEST WINDOW
:repaint()
:init()
:run()
=======
TEST WINDOW
:repaint()
:init()
:run()
>>>>>>> 76a691adfaf476c4f9fa10eff1a940381b006224
]]
See the source code for more info.