Skip to content

Concepts

A Bellui program creates one app, opens one or more windows, and puts canvas objects in them. Widgets, containers and drawing primitives are all canvas objects. The toolkit calls your code on one goroutine, the UI thread, when the user does something. These pages explain each of those pieces. Read them before the rest of the documentation.

The fundamental types live in small packages:

PackageWhat it holds
belluiApp, Window, Resource, ShowAndRun, Do and the other app-level types
coreCanvasObject, Widget, WidgetRenderer, Layout, Canvas
geoSize, Position, Delta
eventPointer and key events, and the interfaces that receive them
canvasDrawing primitives: text, shapes, images, gradients