xilem icon indicating copy to clipboard operation
xilem copied to clipboard

Add `ContentHost` widget; use it for Xilem `AnyView`

Open waywardmonkeys opened this issue 2 weeks ago • 3 comments
trafficstars

Introduce masonry::widgets::ContentHost, a pass‑through single‑child container that hosts exactly one child and supports dynamic replacement.

In Xilem, we replace the bespoke DynWidget with ContentHost. AnyWidgetView now uses Pod<ContentHost>.

waywardmonkeys avatar Nov 02 '25 16:11 waywardmonkeys

Some other naming options:

  • ContentSlot
  • Slot
  • MountPoint
  • Mount
  • HostBox
  • Vessel
  • Shell
  • Envelope
  • Cradle

waywardmonkeys avatar Nov 03 '25 16:11 waywardmonkeys

What about Passthrough?

I like it!

Some other naming options

I think most of those evoke a more complex behavior than what this does.

PoignardAzur avatar Nov 04 '25 14:11 PoignardAzur

(Quick notice: I might apply the recommended changes and merge this PR this weekend.)

PoignardAzur avatar Nov 07 '25 16:11 PoignardAzur