Awesome Open Source
Awesome Open Source


What is it?

Agar is a type of sugar polymer obtained from seaweed and red algae. It becomes gelatinous in water and is primarly used as a culture medium for microbiological work. Agar (or LibAgar) is also the name of an open source GUI toolkit, a set of software libraries for building graphical user interfaces.

Agar works with a wide variety of platforms and graphics systems, from modern desktops to classic consoles and embedded devices. Its low-level layers are modular, extensible and easily ported to new hardware platforms and graphics systems. Standard drivers include:

For graphics systems without multi-window capabilities (or cases where a MDI-style interface is preferred over desktop integration), a single-window mode is provided in which case Agar provides its own internal window manager.

Agar's cascading Style Engine separates presentation details from underlying code. Style attributes including typography, colors, paddings and spacings of widgets can be assigned from a style sheet using a common language. Style Editor tool allows style changes to be viewed in real-time.

While Agar includes a standard library of general-purpose widgets, it is also designed to be extended externally. New Agar widgets can be implemented as part of an application or of an external library. Complex user interface elements can be realized often in few lines of code. The class registration interface simplifies the process.

To aid debugging, the Debug version performs type checking, object-validity and class-membership tests against object pointers passed to API calls at run-time. Agar is thread-safe when built with threads support. Public API calls are reentrant unless documented otherwise, although Agar does not rely on threads for its own operation.

Libraries included (stable)

  • CORE: Platform, I/O, object system (non graphical)
  • GUI (Base): GUI base framework
  • GUI (Widgets): GUI standard widgets
  • MATH: Matrices, vectors & advanced rendering methods
  • NET: Network interface, HTTP application server
  • VG: Vector graphics

Libraries included (beta)

  • AU: Audio interface library
  • SG: General-purpose 3D engine
  • SK: Sketches with constraints
  • MAP: Tile engine

How to install

See the provided or an online installation guide:


Latest Stable Release

Latest Development Sources



  • Sign up to the Patreon for exclusive content including articles, code and tutorials.
  • Contribute by donating, supporting our sponsors, reporting bugs or submitting code.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
C (275,794
Perl (36,753
Linux (16,452
Windows (9,671
Macos (8,824
Gui (4,419
Opengl (3,738
Cross Platform (3,273
Ada (1,044
Interface (868
Toolkit (825
Sdl (555
Portable (505
X11 (503
Bsd (235
Xorg (149
Related Projects