internal/

directory
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: BSD-3-Clause

Directories

Path Synopsis
Package dartfmt formats numbers the way Dart's toString and toStringAsFixed do, so that text printed by ported Flutter code (diagnostics, dumps) reads the same.
Package dartfmt formats numbers the way Dart's toString and toStringAsFixed do, so that text printed by ported Flutter code (diagnostics, dumps) reads the same.
Package dbus holds the D-Bus services, in pure Go on godbus: tray, notifications, portals, settings and AT-SPI2.
Package dbus holds the D-Bus services, in pure Go on godbus: tray, notifications, portals, settings and AT-SPI2.
atspi
Package atspi is the accessibility bridge for Linux desktops (SPEC §8.10): it mirrors the framework's semantics tree as AT-SPI2 objects on the accessibility bus, so that screen readers such as Orca can read the app and act on it.
Package atspi is the accessibility bridge for Linux desktops (SPEC §8.10): it mirrors the framework's semantics tree as AT-SPI2 objects on the accessibility bus, so that screen readers such as Orca can read the app and act on it.
fakebus
Package fakebus is an in-process D-Bus for tests (SPEC §17).
Package fakebus is an in-process D-Bus for tests (SPEC §17).
Package engine wires the platform, the renderer and the text layout into the contracts of package ui, and owns the run loop.
Package engine wires the platform, the renderer and the text layout into the contracts of package ui, and owns the run loop.
Package fakeclock is a clock that a test moves by hand, so that timers and frame times in tests need no sleeping.
Package fakeclock is a clock that a test moves by hand, so that timers and frame times in tests need no sleeping.
Package goid tells goroutines apart.
Package goid tells goroutines apart.
Package goldens compares rendered images with the golden PNGs of a package's tests.
Package goldens compares rendered images with the golden PNGs of a package's tests.
gpu
Package gpu defines the Renderer interface, flattens a ui.Scene into draw commands, and holds the glyph and path atlases shared by the renderers.
Package gpu defines the Renderer interface, flattens a ui.Scene into draw commands, and holds the glyph and path atlases shared by the renderers.
canvas2d
Package canvas2d is the last renderer of the web (SPEC §9.6): it draws each frame with the software renderer (internal/gpu/soft) and puts the image into the page's 2D canvas with putImageData, so that an app shows even where neither WebGPU nor WebGL 2 works.
Package canvas2d is the last renderer of the web (SPEC §9.6): it draws each frame with the software renderer (internal/gpu/soft) and puts the image into the page's 2D canvas with putImageData, so that an app shows even where neither WebGPU nor WebGL 2 works.
explicit
Package explicit is the renderer for the explicit GPU APIs, Vulkan and WebGPU (D19): the Device interface that both implement, the design limits they share (SPEC §9.3), and the WGSL shaders with the SPIR-V that glutter-gen makes from them (D20).
Package explicit is the renderer for the explicit GPU APIs, Vulkan and WebGPU (D19): the Device interface that both implement, the design limits they share (SPEC §9.3), and the WGSL shaders with the SPIR-V that glutter-gen makes from them (D20).
explicit/fakedevice
Package fakedevice is an explicit.Device that records every call, for the unit tests of the explicit renderer without a GPU.
Package fakedevice is an explicit.Device that records every call, for the unit tests of the explicit renderer without a GPU.
gles
Package gles is the OpenGL ES 3.0 renderer.
Package gles is the OpenGL ES 3.0 renderer.
gles/glwebtest command
Command glwebtest is the program of the browser tests of the WebGL 2 renderer (step 21.4, SPEC §9.1, §17).
Command glwebtest is the program of the browser tests of the WebGL 2 renderer (step 21.4, SPEC §9.1, §17).
gputest
Package gputest has what the display tests of the GPU renderers share: the scenes the renderers are compared on, the comparison with the software renderer's image, and its tolerance.
Package gputest has what the display tests of the GPU renderers share: the scenes the renderers are compared on, the comparison with the software renderer's image, and its tolerance.
soft
Package soft is the pure-Go software rasterizer, used for golden tests and headless rendering.
Package soft is the pure-Go software rasterizer, used for golden tests and headless rendering.
textdraw
Package textdraw turns the drawing of a paragraph into ordinary drawing operations, for the renderers: each glyph is a path, drawn with its origin on a quarter of a pixel horizontally and on a pixel vertically, so that the coverage of a glyph at a size can be cached for the four subpixel positions (SPEC §9.1).
Package textdraw turns the drawing of a paragraph into ordinary drawing operations, for the renderers: each glyph is a path, drawn with its origin on a quarter of a pixel horizontally and on a pixel vertically, so that the coverage of a glyph at a size can be cached for the four subpixel positions (SPEC §9.1).
vulkan
Package vulkan is the Vulkan backend of the explicit renderer (SPEC §9.4): it loads libvulkan.so.1 through purego and implements explicit.Device on it.
Package vulkan is the Vulkan backend of the explicit renderer (SPEC §9.4): it loads libvulkan.so.1 through purego and implements explicit.Device on it.
webgpu
Package webgpu is the WebGPU backend of the explicit renderer (SPEC §9.5): an explicit.Device over navigator.gpu, through syscall/js, so that internal/gpu/explicit draws on the web the way it draws on Vulkan.
Package webgpu is the WebGPU backend of the explicit renderer (SPEC §9.5): an explicit.Device over navigator.gpu, through syscall/js, so that internal/gpu/explicit draws on the web the way it draws on Vulkan.
webgpu/gpuwebtest command
Command gpuwebtest is the program of the browser tests of the WebGPU renderer (step 21.5, SPEC §9.5, §17).
Command gpuwebtest is the program of the browser tests of the WebGPU renderer (step 21.5, SPEC §9.5, §17).
Package opts holds the helper behind the trailing options parameter of every constructor (SPEC §12.1).
Package opts holds the helper behind the trailing options parameter of every constructor (SPEC §12.1).
Package platform defines the interface between the engine and an operating system backend, together with the types shared by all backends.
Package platform defines the interface between the engine and an operating system backend, together with the types shared by all backends.
fake
Package fake is a scripted platform for tests: it replays queued events and records what the engine asks of it.
Package fake is a scripted platform for tests: it replays queued events and records what the engine asks of it.
linux
Package linux holds what the Linux backends share: the event loop, the key tables, system settings and the choice between Wayland and X11.
Package linux holds what the Linux backends share: the event loop, the key tables, system settings and the choice between Wayland and X11.
linux/dl
Package dl is the one safe way to load C libraries and call into them without cgo: it wraps purego's Dlopen, Dlsym and callbacks, tags every failure, and offers the libc helpers (malloc, free, C strings) and the struct-layout test helper that the backends share.
Package dl is the one safe way to load C libraries and call into them without cgo: it wraps purego's Dlopen, Dlsym and callbacks, tags every failure, and offers the libc helpers (malloc, free, C strings) and the struct-layout test helper that the backends share.
linux/fontconfig
Package fontconfig binds libfontconfig (through purego, SPEC §8.1) to match a font family, weight, slant and language to the font files of the system, in the fallback order the user's fontconfig settings give.
Package fontconfig binds libfontconfig (through purego, SPEC §8.1) to match a font family, weight, slant and language to the font files of the system, in the fallback order the user's fontconfig settings give.
linux/ime
Package ime connects a window system backend to an input method framework over D-Bus (IBus or Fcitx5): the same way for X11, and for Wayland on a compositor without text-input-v3 (SPEC §8.3, §8.6).
Package ime connects a window system backend to an input method framework over D-Bus (IBus or Fcitx5): the same way for X11, and for Wayland on a compositor without text-input-v3 (SPEC §8.3, §8.6).
linux/ime/imetest
Package imetest has test doubles for the input method of the Linux backends: an input method that records its calls, and a poster that lets the test run what the bridge hands to the UI thread.
Package imetest has test doubles for the input method of the Linux backends: an input method that records its calls, and a poster that lets the test run what the bridge hands to the UI thread.
linux/input
Package input turns what the Linux windowing systems report about pointers and touch screens into ui.PointerData, the same way for Wayland and X11.
Package input turns what the Linux windowing systems report about pointers and touch screens into ui.PointerData, the same way for Wayland and X11.
linux/wayland
Package wayland is the Wayland backend.
Package wayland is the Wayland backend.
linux/wayland/decor
Package decor binds libdecor, the library that draws native title bars for Wayland compositors without server-side decorations (GNOME).
Package decor binds libdecor, the library that draws native title bars for Wayland compositors without server-side decorations (GNOME).
linux/wayland/fakecomp
Package fakecomp is a tiny fake Wayland compositor for tests: it speaks the wire protocol over a socket pair, answers the requests that the tests send, and logs them.
Package fakecomp is a tiny fake Wayland compositor for tests: it speaks the wire protocol over a socket pair, answers the requests that the tests send, and logs them.
linux/wayland/wl
Package wl is the Wayland client: the runtime over libwayland-client, which is bound with purego, and the Go bindings of every protocol in ../protocols, generated by `glutter-gen wayland` into the *_gen.go files.
Package wl is the Wayland client: the runtime over libwayland-client, which is bound with purego, and the Go bindings of every protocol in ../protocols, generated by `glutter-gen wayland` into the *_gen.go files.
linux/x11
Package x11 is the X11 backend.
Package x11 is the X11 backend.
linux/xkb
Package xkb binds libxkbcommon (through purego, SPEC §8.1) and turns key presses into Flutter key data: the physical key, the logical key and the text, for any keyboard layout, with dead keys and compose sequences.
Package xkb binds libxkbcommon (through purego, SPEC §8.1) and turns key presses into Flutter key data: the physical key, the logical key and the text, for any keyboard layout, with dead keys and compose sequences.
web
Package web is the platform backend of the web (GOOS=js GOARCH=wasm, SPEC §23): one window that is a canvas in a host element of the page, frames from requestAnimationFrame, and the lifecycle and the settings of the browser.
Package web is the platform backend of the web (GOOS=js GOARCH=wasm, SPEC §23): one window that is a canvas in a host element of the page, frames from requestAnimationFrame, and the lifecycle and the settings of the browser.
web/desktoptest command
Command desktoptest is the program of the browser tests of the web desktop services (step 21.6, SPEC §17, §23.7).
Command desktoptest is the program of the browser tests of the web desktop services (step 21.6, SPEC §17, §23.7).
web/inputtest command
Command inputtest is the program of the browser tests of the web input (step 21.2, SPEC §17, §23.4).
Command inputtest is the program of the browser tests of the web input (step 21.2, SPEC §17, §23.4).
web/synthetic
Package synthetic dispatches synthetic DOM events at the canvas of a Glutter app, the way the browser would deliver real ones: the debug-only script of the web platform (GLUTTER_DEV_EVENTS, for proof screenshots) and the browser tests use it.
Package synthetic dispatches synthetic DOM events at the canvas of a Glutter app, the way the browser would deliver real ones: the debug-only script of the web platform (GLUTTER_DEV_EVENTS, for proof screenshots) and the browser tests use it.
web/texttest command
Command texttest is the program of the browser tests of the web text input and clipboard (step 21.3, SPEC §17, §23.5).
Command texttest is the program of the browser tests of the web text input and clipboard (step 21.3, SPEC §17, §23.5).
Package proof holds the scenes that cmd/glutter-proof renders to prove, with a picture, that a step of docs/IMPLEMENTATION.md works.
Package proof holds the scenes that cmd/glutter-proof renders to prove, with a picture, that a step of docs/IMPLEMENTATION.md works.
widgetscenes
Package widgetscenes holds the proof scenes that are made by pumping a widget tree through gluttertest.
Package widgetscenes holds the proof scenes that are made by pumping a widget tree through gluttertest.
Package renderhost builds a RendererBinding on a fake engine with one view, lays out and paints a render tree through the pipeline, and keeps the scenes that the view rendered.
Package renderhost builds a RendererBinding on a fake engine with one view, lays out and paints a render tree through the pipeline, and keeps the scenes that the view rendered.
Package renderingtest is a temporary harness for the tests of the rendering library: it builds a RendererBinding on a fake engine, lays out and paints a render tree through the pipeline, and renders the scene with the software renderer.
Package renderingtest is a temporary harness for the tests of the rendering library: it builds a RendererBinding on a fake engine, lays out and paints a render tree through the pipeline, and renders the scene with the software renderer.
Package text lays out paragraphs on go-text: the font collection, shaping, line breaking, bidi and glyph outlines.
Package text lays out paragraphs on go-text: the font collection, shaping, line breaking, bidi and glyph outlines.
layout
Package layout lays out paragraphs: it turns the styled text of a ui.ParagraphBuilder into lines of shaped glyphs with go-text.
Package layout lays out paragraphs: it turns the styled text of a ui.ParagraphBuilder into lines of shaped glyphs with go-text.
Package webtest is the harness that runs a Glutter web app in a headless browser (SPEC §17 "Browser tests", §23.8): an httptest server that serves a build made by internal/webtool and collects the PNG and the results the page posts, launchers for Chromium and Firefox with temporary profiles that run under timeout in their own process group and are killed when the test ends, and Shot, which glutter-web's shot command and the browser tests use.
Package webtest is the harness that runs a Glutter web app in a headless browser (SPEC §17 "Browser tests", §23.8): an httptest server that serves a build made by internal/webtool and collects the PNG and the results the page posts, launchers for Chromium and Firefox with temporary profiles that run under timeout in their own process group and are killed when the test ends, and Shot, which glutter-web's shot command and the browser tests use.
Package webtool packages a Glutter app for the web (SPEC §23.1): it builds the program for js/wasm, writes the directory that a static web server can serve (index.html, wasm_exec.js, app.wasm and app.wasm.gz), and serves such a directory with the right types and with the gzip file for a browser that accepts it.
Package webtool packages a Glutter app for the web (SPEC §23.1): it builds the program for js/wasm, writes the directory that a static web server can serve (index.html, wasm_exec.js, app.wasm and app.wasm.gz), and serves such a directory with the right types and with the gzip file for a browser that accepts it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL