Pre-1.0: signatures are not frozen. Generated from rustdoc JSON of the compiled crate; rustdoc JSON format version 60. Only public items are listed.
A reusable prepared-text graph over existing Label and measured-bounds nodes.
The caller prepares a Label once and supplies it as an explicitly named resource. This recipe neither shapes text nor stores raw text/font data in graph assets. It adds no kernel, renderer, scheduler, input or authority.
Structs
structaster_blueprint::stock_text::TextOptions
pub struct TextOptions { /* see fields */ }Caller-defaulted logical position, independent of prepared text metrics.
Public fields
| field | type | |
|---|---|---|
x | f64 | |
y | f64 |
Trait implementations: Clone, Copy, Debug, Default, PartialEq, StructuralPartialEq
Functions
fnaster_blueprint::stock_text::prepared_text
pub fn prepared_text(asset: model::Symbol, resource: model::Symbol, options: TextOptions) -> Result<model::GraphSource, model::ModelError>Author two existing nodes and measured Label/bounds outputs.
resource is a declared external Label name, not text to draw. The caller
includes that name at ValueType::Label in the compiler environment and
resolves it through existing prepared resources. Runtime x/y changes keep
the original prepared Label/Recording. Finite signed positions are allowed;
nonfinite defaults return the existing ModelError before any graph escapes.
use aster_blueprint::{stock_text, model::Symbol};
let source = stock_text::prepared_text(
Symbol::new("app.title").unwrap(),
Symbol::new(stock_text::HOST_LABEL).unwrap(),
stock_text::TextOptions { x: 12., y: 8. },
).unwrap();
assert_eq!(source.nodes().len(), 2);
assert_eq!(source.outputs().len(), 2);fnaster_blueprint::stock_text::text_visual
pub fn text_visual(model_key: aster_ui::ModelKey) -> retained::VisualSpecVisual binding for an UNEXPANDED prepared_text plan. Asset expansion may remap authoring keys: for an expanded graph, use its actual output key. The caller owns the unique ModelKey and actual acknowledged input policy.
Constants
constaster_blueprint::stock_text::BOUNDS_NODE
pub const BOUNDS_NODE: u64constaster_blueprint::stock_text::HOST_LABEL
pub const HOST_LABEL: &strDefault named prepared Label resource. A theme may alias this to another caller-owned Label. There is no implicit font or global resource service.
constaster_blueprint::stock_text::LABEL_NODE
pub const LABEL_NODE: u64constaster_blueprint::stock_text::OUTPUT_BOUNDS
pub const OUTPUT_BOUNDS: &strconstaster_blueprint::stock_text::OUTPUT_LABEL
pub const OUTPUT_LABEL: &strconstaster_blueprint::stock_text::PARAM_X
pub const PARAM_X: &strconstaster_blueprint::stock_text::PARAM_Y
pub const PARAM_Y: &str