Source: animation/src
cargo do run animationDemonstrates animation, easing functions.
Source: audio/src
cargo do run audioAudio loading and playback.
Source: border/src
cargo do run borderDemonstrates borders, corner radius, multiple borders per widget and clip-to-bounds.
Source: button/src
cargo do run buttonDemonstrates the button and toggle widgets.
Source: calculator/src
cargo do run calculatorSimple calculator, demonstrates Grid layout, data context.
Source: config/src
cargo do run configDemonstrates the CONFIG and SETTINGS services, live updating config between processes.
Source: countdown/src
cargo do run countdownDemonstrates the TIMERS service, variable mapping and profiler trace recording.
Source: cursor/src
cargo do run cursorDemonstrates each CursorIcon, tooltip anchored to cursor.
Source: extend-view/src
cargo do run extend-viewDemonstrates the zng-view extension API and the provided renderer debug and ANGLE extensions.
Source: focus/src
cargo do run focusDemonstrates the focus service, logical and directional navigation.
Source: gradient/src
cargo do run gradientDemonstrates gradient rendering.
Source: headless/src
cargo do run headlessDemonstrates headless apps, image and video rendering.
Source: hot-reload/src
cargo do run hot-reloadDemonstrates the "hot_reload" feature.
Source: icon/src
cargo do run iconSearch and copy Material Icons keys.
Source: image/src
cargo do run imageDemonstrates image loading, displaying, animated sprites, rendering, pasting.
Source: layer/src
cargo do run layerDemonstrates the LAYERS service.
Source: localize/src
cargo do run localizeDemonstrates localization service and integration.
Source: markdown/src
cargo do run markdownDemonstrates the Markdown! widget.
Source: multi/src
cargo do run multiDemonstrates a web, mobile and desktop app setup.
Use cargo do run multi to run on the desktop.
Use cargo do build-apk multi to build a package and Android Studio "Profile or Debug APK" to run on a device.
Use cargo do run-wasm multi to run on the browser.
Use cargo do build-ios multi to build library for XCode iOS project.
Note that WASM support is very limited, only a small subset of services are supported and only headless (without renderer) apps can run. Also note that iOS does not build yet, support is planed after Glutin implements it (or some other ANGLE based crate).
Source: respawn/src
cargo do run respawnDemonstrates app-process crash handler and view-process respawn.
Source: scroll/src
cargo do run scrollDemonstrates the Scroll! widget and scroll commands.
Source: text/src
cargo do run textDemonstrates the Text! and TextInput! widgets. Text rendering, text editor.
Source: transform/src
cargo do run transformDemonstrates 2D and 3D transforms, touch transforms.
Source: window/src
cargo do run windowDemonstrates the window widget, service, state and commands.
You can create a local "example" for manual testing in /examples/test*. This dir is gitignored.
To add a new example see /docs/contribute-example.md.




















