libui bare bindings for lua
OTHER License
libui bare bindings for luajit and lua 5.1/ 5.2/ 5.3.
This binding makes libui available to lua scripts. libui is easy binding and should usable from nearly any lua project.
Examples can be found in the examples folders, those are translate from examples.
git checkout https://github.com/zhaozg/lui.git
cd lui
git submodule init
git submodule update
cd lui
make install
TODO
require
ui = require'lui' -- type(ui) is 'table'
Init
Uninit
Main
MainStep
MainSteps
timer
Quit
QueueMain
OnShouldQuit
OpenFile
SaveFile
MsgBox
MsgBoxError
. assert(ui.Init())
ui.Quit()
ui.Uninit()
NewArea
NewButton
NewCheckbox
NewCombobox
NewColorButton
NewDateTimePicker
NewDatePicker
NewEditableCombobox
NewEntry
NewFontButton
NewForm
NewGrid
NewGroup
NewHorizontalBox
NewHorizontalSeparator
NewLabel
NewMenu
NewMultilineEntry
NewNonWrappingMultilineEntry
NewPasswordEntry
NewProgressBar
NewRadioButtons
NewSearchEntry
NewSlider
NewSpinbox
NewTimePicker
NewTab
NewVerticalBox
NewVerticalSeparator
NewWindow
DrawNewAreaHandler
DrawNewBrush
DrawNewPath
DrawNewMatrix
DrawNewStrokeParams
DrawNewTextLayout
DrawListFontFamilies
(Special)DrawLoadClosestFont
(Special) wnd = ui.NewWindow(...) -- type(wnd) is userdata with metatable 'libui.Window'
entry:Padded(true) -- just call uiEntrySetPadded(entry,1) and return object itself
entry:Padded() -- just call uiEntryPadded(entry) and return boolean type padded value
`ui.NewRadioButtons():Append("One", "Two", "Three")
wnd:Show()
wnd:OnClosing(onclosing_cb)
You need read examples to be familiar with them.