repowisegioui/gio

Architecture of gioui/gio

gioui/gio is 237 source files holding 5,140 symbols across 12 modules, written mainly in Go, Objectivec, C. The largest module is app, with 61 files, and 9 files are entry points into the dependency graph.

How gio fits together

The app directory, with 61 files, holds the entry point app/app.go, where programs create windows and handle platform events. Platform-specific windowing code sits beside it, such as app/os_windows.go for Windows. The widget directory provides interface elements, including widget/editor.go for the text editor, and the layout directory arranges them on screen. Interface code records its drawing instructions into the op directory as operations. The gpu directory, including gpu/gpu.go, takes those operations and renders them to the window.

Largest modules

  • app: 61 files and 14,027 lines of code
  • widget: 46 files and 8,096 lines of code
  • gpu: 33 files and 8,444 lines of code
  • internal: 29 files and 8,091 lines of code
  • io: 23 files and 4,423 lines of code
  • layout: 11 files and 1,593 lines of code
  • op: 10 files and 847 lines of code
  • text: 9 files and 2,923 lines of code

Languages

By file count: Go 216 files, Objectivec 5 files, C 4 files, C++ 4 files, Java 3 files.

Documentation

Repowise documents gio in 562 pages generated from the source.

More on gio: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos