cross platform gui lib for lua
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
1.2 KiB

  1. libui notes
  2. - must call uiInit() before anything else
  3. - set up all your stuff, then call uiMain() to start app (or loop uiMainStep() until it returns 0)
  4. - uiQuit() terminates uiMain() loop
  5. - call uiUninit() before app termination
  6. - so the call order is:
  7. uiInit()
  8. ... create widgets
  9. uiMain()
  10. uiQuit()
  11. uiUninit()
  12. - uiControlHandle(), uiControlSetparent(), uiControlParent(), uiAllocControl(), uiFreeControl(), uiControlVerifySetParent(), uiControlEnabledToUser(), uiUserBug*() are not intended for client use
  13. - uiControlParent() may be useful because a control can't be deallocated if it still is attached to a parent
  14. - uiControlDestroy() on containers destroys all children
  15. - uiWindowOnClosing: return 1 to destroy window after callback, 0 to not do that
  16. - must create menu before(!) creating the window that uses the menu.
  17. - uiMenuAppendCheckItem() -> onclick method called after checked status changed!
  18. - uiMenuItem, uiMenu is not a uiControl!
  19. - neither are uiDrawBrush, uiDrawStrokeParams, uiDrawMatrix, uiDrawPath, uiDrawTextLayout, uiContext
  20. - uiContext need not be free()d, it is created temporarily
  21. - container widgets destroy their children when they are destroyed