pub fn resolve_surface(id: &str) -> Option<(Surface, Vec<Shadow>)>Expand description
Resolve a surface slot together with its outer shadow stack.
Surface::shadows may be ShadowsRef::Named(id), pointing at a
separate Slot::Shadows entry in the same mode. canvas.fill_surface
expects the stack resolved as a plain &[Shadow], so this helper does
the second lookup in one place: widgets call resolve_surface(id) and
get back the surface plus a Vec<Shadow> ready to hand to the canvas.
Returns None only when the surface slot itself is absent. A missing
named shadow ref degrades silently to an empty stack — the surface
still paints its fill and inset decorations, just without the outer
glow.