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§
- Node
Content Style - Theme-derived color palette for a node’s interior.
- Scene
Def - A demo the gallery can open by name.
- Scene
Message - A demo message with its type erased, so scenes of different demos share one runtime.
Constants§
- PAGE_
THEMES - Every page theme name
page_themeaccepts. The first three are the names rustdoc puts inhtml[data-theme];phosphoris the project site’s.
Traits§
- Demo
- One demo application: the five methods
iced::applicationtakes, on a type. - Scene
- Object-safe view of a running demo.
Functions§
- erase
- Boots a demo behind the object-safe
Sceneinterface. - node_
title_ bar - Creates a themed title bar container for nodes.
- page_
theme - The iced theme matching the page theme
name;Nonefor any name not inPAGE_THEMES.