LWXGL (Lightweight X11 Graphics Library) is a single shared library that wraps Xlib to give you a simple, procedural C API for building desktop GUI applications on Linux. Add a window, drop in buttons, text fields, checkboxes, image canvases, and consoles — all managed through integer element IDs and a straightforward render loop.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/DRessedAlarm184/LWXGL/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart
Create your first LWXGL window and run a render loop in minutes.
Build & Install
Compile libLWXGL.so from source and install the header system-wide.
UI Elements Guide
Buttons, text labels, input fields, checkboxes, rectangles, and consoles.
API Reference
Full reference for every function exported by libLWXGL.
What LWXGL Provides
LWXGL gives you everything needed to build functional X11 GUI applications without dealing with Xlib directly:Window Management
Create, title, resize, and destroy X11 windows with a handful of calls.
UI Widgets
Buttons, text labels, input fields, checkboxes, and rectangle containers — all with hover and click states.
Image Canvases
Pixel-addressable canvases for custom 2D graphics, with primitives for rects, circles, lines, and sprites.
Event System
Attach callbacks for keyboard, mouse, window close, and resize events.
16-Color Palette
A built-in 16-color palette that can be queried and modified at runtime.
Virtual Screens
Group elements into virtual screens and switch between them dynamically.
Getting Started
LWXGL requires Xlib (
-lX11) at runtime. Ensure libx11-dev (or equivalent) is installed on your system before building.