AfterDocumentation 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.
CreateWindow has succeeded, a set of configuration functions lets you change the window’s visible properties and opt into optional subsystems such as resizing and scroll mode. Most of these can be called at any point during the session; ReserveScroll is the sole exception and must be called before CreateWindow.
SetWindowTitle
XStoreName. The change is visible immediately.
Null-terminated string to display in the window title bar. The pointer only needs to be valid for the duration of the call.
SetWindowColor
Palette index (0–15) or a
CLR_* constant. Use CLR_BLACK (0) for a black background.ChangeCursor
X11 cursor font glyph index (see
<X11/cursorfont.h>). Pass 255 to hide the cursor entirely — this creates a 1×1 blank pixmap cursor with no visible hotspot. CreateWindow sets the initial cursor to glyph 68 (crosshair).SetGlobalBold
CreateText, CreateButton, and other text-rendering elements. The new font is loaded with XLoadQueryFont; if loading fails the existing font is left unchanged.
Pass
1 to switch to the 9x15bold font, or 0 to switch back to the regular 9x15 font.1 on success, 0 if the requested font could not be loaded.
This affects only the global X11 GC font used for
CreateText / CreateButton labels. Image-based text drawn with DrawString uses the bitmap font installed per-image via SetImageFont and is not affected.EnableResizing
CreateWindow, allowing the user to resize the window freely. When a resize event arrives, the back-buffer pixmap is recreated at the new dimensions and the Resize callback is fired.
Callback invoked with the new window dimensions whenever the window is resized. Use this to reposition or rescale elements. In scroll mode, the window height is capped at the virtual canvas height set by
ReserveScroll — only the width can grow freely.ReserveScroll
Scroll callback.
Total virtual canvas height in pixels. The back-buffer pixmap will be this tall, while the window itself remains
h pixels tall (as passed to CreateWindow).Palette index for the scrollbar thumb. Pass
CLR_NONE (-1) to suppress rendering of the scrollbar entirely while still enabling scroll functionality.Callback invoked with the new pixel scroll offset whenever the user scrolls. Use
QueryScroll() at any time to read the current offset.GetXConnection
XConnectionData struct with the raw Xlib handles managed internally by LWXGL. Use this for advanced integration — for example, loading OpenGL extensions, creating additional GCs, or querying server capabilities directly.
Pointer to a caller-allocated
XConnectionData struct that will be populated. The struct is defined in libLWXGL.h (only available when XlibSpecificationRelease is defined, i.e. when <X11/Xlib.h> has been included first):