Adapters from third party libraries to kui's interfaces. Each directory is a role, named after
what its packages provide; each package binds one library and is named kui plus the library,
so it never clashes with the library's own package name. Bindings depend on kui only, never on
each other. All live in this module: a library is compiled only into programs importing its
binding.
-
events: input producers writing to a
kui.EventWriter, and the platform services of the same library that a UI asks for withkui.Requests: cursor shape, clipboard, text input.- kuiglfw: GLFW 3.4 windows.
-
paint: painters of
kui.DrawLists on graphics APIs.- kuigl: OpenGL 3.3 core, shaders written to the subset shared with OpenGL ES 3.0 and WebGL 2.
- kuiwgpu: WebGPU with oliverbestmann/webgpu, the bindings Cogent Core uses: Vulkan, Metal, Direct3D 12 and OpenGL ES through wgpu-native, or the browser's WebGPU. Pairs with kuiglfw: see its example.
Both GPU painters batch draw lists with kuibatch and paint the same pixels.
-
layout:
kui.LayoutEngines. -
fonts: font libraries:
kui.Fontmetrics, text shaping (glyph selection, advances, kerning) and measuring, andkui.FontFaces rasterizing glyphs. One role, since font libraries usually do all of these.- kuilefevre: outline fonts such as TrueType with lefevre.
-
image:
kui.ImageSources decoding image formats. -
multi: libraries filling several roles at once, bound by one package.
- kuicogent: Cogent Core: window events, painting with its painter and text measuring with its shaper. A module of its own, since Cogent Core requires Go 1.27.