Skip to content

Latest commit

 

History

History

README.md

animation

animation screenshot

Source: animation/src

cargo do run animation

Demonstrates animation, easing functions.

audio

Source: audio/src

cargo do run audio

Audio loading and playback.

border

border screenshot

Source: border/src

cargo do run border

Demonstrates borders, corner radius, multiple borders per widget and clip-to-bounds.

button

button screenshot

Source: button/src

cargo do run button

Demonstrates the button and toggle widgets.

calculator

calculator screenshot

Source: calculator/src

cargo do run calculator

Simple calculator, demonstrates Grid layout, data context.

config

config screenshot

Source: config/src

cargo do run config

Demonstrates the CONFIG and SETTINGS services, live updating config between processes.

countdown

countdown screenshot

Source: countdown/src

cargo do run countdown

Demonstrates the TIMERS service, variable mapping and profiler trace recording.

cursor

cursor screenshot

Source: cursor/src

cargo do run cursor

Demonstrates each CursorIcon, tooltip anchored to cursor.

extend-view

Source: extend-view/src

cargo do run extend-view

Demonstrates the zng-view extension API and the provided renderer debug and ANGLE extensions.

focus

focus screenshot

Source: focus/src

cargo do run focus

Demonstrates the focus service, logical and directional navigation.

gradient

gradient screenshot

Source: gradient/src

cargo do run gradient

Demonstrates gradient rendering.

headless

headless screenshot

Source: headless/src

cargo do run headless

Demonstrates headless apps, image and video rendering.

hot-reload

hot-reload screenshot

Source: hot-reload/src

cargo do run hot-reload

Demonstrates the "hot_reload" feature.

icon

icon screenshot

Source: icon/src

cargo do run icon

Search and copy Material Icons keys.

image

image screenshot

Source: image/src

cargo do run image

Demonstrates image loading, displaying, animated sprites, rendering, pasting.

layer

layer screenshot

Source: layer/src

cargo do run layer

Demonstrates the LAYERS service.

localize

localize screenshot

Source: localize/src

cargo do run localize

Demonstrates localization service and integration.

markdown

markdown screenshot

Source: markdown/src

cargo do run markdown

Demonstrates the Markdown! widget.

multi

multi screenshot

Source: multi/src

cargo do run multi

Demonstrates 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).

respawn

respawn screenshot

Source: respawn/src

cargo do run respawn

Demonstrates app-process crash handler and view-process respawn.

scroll

scroll screenshot

Source: scroll/src

cargo do run scroll

Demonstrates the Scroll! widget and scroll commands.

text

text screenshot

Source: text/src

cargo do run text

Demonstrates the Text! and TextInput! widgets. Text rendering, text editor.

transform

transform screenshot

Source: transform/src

cargo do run transform

Demonstrates 2D and 3D transforms, touch transforms.

window

window screenshot

Source: window/src

cargo do run window

Demonstrates the window widget, service, state and commands.

Local Example

You can create a local "example" for manual testing in /examples/test*. This dir is gitignored.

Contribute an Example

To add a new example see /docs/contribute-example.md.