Back to Guilite

Welcome to GUI-lite

README.md

2.111.4 KB
Original Source

Welcome to GUI-lite

<p align="center"> </p> <p align="center"> </p> <p align="center">The smallest header-only GUI library (4 KLOC) for all platforms.</p> <p align="center"> </p>

Lightweight

  • ✂️Small: 4,000+ lines of C++ code, zero dependency, header-only(GuiLite.h)

  • ⚡Fast: High Rendering performance, even work on MCU

  • 👫🏻Compatible: Work smoothly with 3rd party frameworks(Qt/MFC/Winform/Cocoa/Web)

  • ⚙️️Hardware Minimum Requirements:

    ProcessorDisk/ROM spaceMemory
    24 MHZ29 KB9 KB

Cross platform

  • Supported OSes: iOS/macOS/WatchOS, Android, Linux, Windows, RTOS... or MCU without OS
  • Supported languages: C/C++, Swift, Java, Javascript, C#, Golang...
  • Supported 3rd party libraries: Qt, MFC, Winforms, CoCoa...

Hero features

  • ☁️Cloud + IoT Solution: master your IoT business all over the world
  • 🔣Multi-language, supports UTF-8;📀Playback Video
  • 🔨Toolkit for building font/image resources
  • 📐Layout GUI WYSIWYG
  • 📊Code Telemetry and Analysis in real time
  • 📦Supports 3D and Web
  • 🐋Run in docker with a single command: sudo docker run -it --privileged -v /dev:/dev-share idea4good/gui-lite:latest bash /run.sh

Easy to learn and support

Even a C beginner could master GUI-lite quickly. The source code only uses basic C++ features (class, virtual function). We chose C++ as it could make the code size significantly smaller and easier to read.

Demo wall

  • Zero dependency, 100% build pass & runnable
  • Click the demo you like, and run it on your hardware
  • Most of the demos have about 100 lines of UI code, the code repository is GuiLiteSamples

MCU platform


<table> <tr> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/Hello3D"> <sub><b>3D on STM32</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloWave"> <sub><b>Wave on STM32</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloParticle"> <sub><b>Particle on STM32</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloStar"> <sub><b>Star on STM32</b></sub></a> </tr> <tr> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/Hello3Dwave"> <sub><b>3D wave on STM32</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloNoTouch"> <sub><b>Keyboard on STM32</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloMario"> <sub><b>Mario on STM32</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloCircle"> <sub><b>3D circle on STM32</b></sub></a> </tr> <tr> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/Hello3Ddonut"> <sub><b>3D donut on STM32</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloTimer"> <sub><b>Timer</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloMolecule"> <sub><b>Molecule move</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloPendulum"> <sub><b>Pendulum effect</b></sub></a> </tr> </table>

IoT feature


<table> <tr> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HostMonitor"> <sub><b>Monitor IoT device on cloud</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HostMonitor"> <sub><b>Code Telemetry & Analysis in real time</b></sub></a> </tr> <tr> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloAzureIoT"> <sub><b>Track IoT device over the world</b></sub></a> </tr> </table>

Multi-language, Design tool and video


<table> <tr> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloFont"> <sub><b>Lattice Font</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloFreetype"> <sub><b>Freetype Font</b></sub></a> </tr> <tr> <td align="center"><a href="https://github.com/idea4good/GuiLitePreviewer"> <sub><b>Layout GUI</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloJPG"> <sub><b>Render JPG file quickly</b></sub></a> </tr> <tr> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloFFmpeg"> <sub><b>Play video with FFmpeg</b></sub></a> </tr> </table>

Widgets & Controller


<table> <tr> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloGuiLite"> <sub><b>Emulate Windows UI</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloScroll"> <sub><b>Scroll widget</b></sub></a> </tr> <tr> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloWidgets"> <sub><b>How to use widgets</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloNets"> <sub><b>3D Nets on Windows/Linux</b></sub></a> </tr> <tr> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloTransparent"> <sub><b>Transparent dialog</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloSlide"> <sub><b>Swipe view</b></sub></a> </tr> </table>

Cross platform


<table> <tr> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HostMonitor"> <sub><b>HostMonitor on Windows</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HostMonitor"> <sub><b>HostMonitor on Mac</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HostMonitor"> <sub><b>HostMonitor on Android</b></sub></a> </tr> <tr> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HostMonitor"> <sub><b>HostMonitor on Windows Mixed Reality</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HostMonitor"> <sub><b>HostMonitor on Linux</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteWeb"> <sub><b>3D on Web</b></sub></a> </tr> <tr> <td align="center"><a href="https://github.com/idea4good/GuiLiteWeb"> <sub><b>3D on Web</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HostMonitor"> <sub><b>HostMonitor on iPhone</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteWeb"> <sub><b>How display work</b></sub></a> </tr> </table>

Apple platform


<table> <tr> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/Hello3D"> <sub><b>3D on Apple Watch</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloWave"> <sub><b>Wave on Apple Watch</b></sub></a> <td align="center"><a href="https://github.com/idea4good/GuiLiteSamples/tree/master/HelloParticle"> <sub><b>Particle on iPhone</b></sub></a> </tr> </table>

📞Community Channel

Thanks for the help from the community, you all make GUI-lite better! And welcome to any new friend to join us.

<table> <tr> <td align="center"> <sub><b>開發群🔑:875721211</b></sub></a> </tr>