IWindowHost interface
Plugin/framework-facing toolkit: describe an interactive window as composed elements; the framework builds native uGUI and owns chrome, rendering, refresh, lifecycle, input gating, persistence.
public interface IWindowHostMembers
Section titled “Members”| name | description |
|---|---|
| IsLayoutEditing { get; } | True while the user is in layout edit-mode (Shift+), when overlays are force-shown for arranging even out of their normal context. A HUD's content Funcs can read this to render example / placeholder values (so the layout is legible while positioning) instead of the empty/zero they'd return out of context — e.g. () => _services.Windows.IsLayoutEditing ? “1234” : Live()`. Polled each refresh (~10 Hz); flips within ~100 ms of entering/leaving edit-mode. |
| Find(…) | Look up a registered window by id (host-side composition / sibling addressing). |
| PrewarmText(…) | Hint that text is about to be shown in a styled / RichEmojiTextElement: the framework rasterizes the glyphs it does not have yet into the font atlas a few per frame, so the window apply that first lays the text out doesn’t stall doing it all at once. Call it when content ARRIVES, ahead of the render (e.g. a chat log on each incoming message, history included). Best-effort and optional: glyphs not warmed in time are still drawn exactly as before. Main thread or any thread; null/empty is ignored. No-op where unsupported (the default implementation). Added in 2.26.0. |
| Register(…) | Register a window. Built when its canvas is available; returns a handle to manage it. (2 methods) |
See Also
Section titled “See Also”- namespace Stellar.Abstractions.Services