Skip to content

petabyt/libui-dev

Repository files navigation

libui-dev

A fork of libui-ng - a portable UI library written in C, which uses the native UI of the operating system it runs on.
Like wxWidgets, but in C. And much more bare-bones.

This adds a bunch of experimental features and fixes:

  • uiWindowSetIcon
  • Windows DPI scaling (4k)
  • uiTabOnSelected/uiTabSetSelected (289)
  • Tooltips (266/256)
  • Placeholders (224)
  • Fix uiWindowSetContentSize (261)
  • Fix darwin menu + modal window issues (295)
  • Optional type safety with C11 generics (See ui_safe.h)
  • uiScroll (WIP)
  • uiImage control (209)
  • uiEntry and uiEditableCombobox placeholders (224)
  • uiEntryOnFinished (290)
  • uiImageButton
  • uiVersion API (143)
  • uiDrawBitmap (386)
  • OpenGLArea (405)
  • Expose more system functions to make adding controls easier
  • Code editing control uiScintilla
  • Get Qt5 backend working (https://github.com/mischnic/libui/tree/qt5)

Potentially breaking changes:

  • Moved include files to include/
  • Change uiImage API

Compiling

# Compile with meson on Linux
meson setup build
meson compile -C build

# Compile with cmake on Linux
cmake -G Ninja -B build && cmake --build build

# Compile for MinGW from Linux
cmake -DCMAKE_TOOLCHAIN_FILE=extras/mingw.cmake -G Ninja -B build && cmake --build build

Credits:

If any libui developer wants to work on this repo let me know and I'll add you as a maintainer.