Skip to main content

Crate demo_common

Crate demo_common 

Source
Expand description

Shared utilities for iced_nodegraph demos: the theme-derived node content palette and the title bar built from it, and the Demo trait every demo implements so the gallery can run it.

Structs§

NodeContentStyle
Theme-derived color palette for a node’s interior.
SceneDef
A demo the gallery can open by name.
SceneMessage
A demo message with its type erased, so scenes of different demos share one runtime.

Constants§

PAGE_THEMES
Every page theme name page_theme accepts. The first three are the names rustdoc puts in html[data-theme]; phosphor is the project site’s.

Traits§

Demo
One demo application: the five methods iced::application takes, on a type.
Scene
Object-safe view of a running demo.

Functions§

erase
Boots a demo behind the object-safe Scene interface.
node_title_bar
Creates a themed title bar container for nodes.
page_theme
The iced theme matching the page theme name; None for any name not in PAGE_THEMES.