pub struct GuiPanelConfig {
pub common_name: String,
pub display_name: Option<String>,
pub pose: Pose,
pub size: GuiPanelSize,
pub visible_to: Vec<PeerId>,
pub served: Option<GuiPanelServedContent>,
}Expand description
Options for qar_gui_panels_get_or_create.
Fields§
§common_name: StringStable identity, for example status.myapp.example.com; the panel id
derives from it.
display_name: Option<String>Label shown above the panel: UTF-8, emoji included, at most 64 Unicode code points
(not bytes), no control or bidirectional formatting characters. A refused name fails
GuiPanels::get_or_create with GUI_PANEL_DISPLAY_NAME_INVALID; None shows none.
pose: PosePose of panel space in room space. Its origin is the midpoint of the
panel’s top edge, and the surface hangs below it (x in ±width/2, y in
[-height, 0]). +X runs along the top edge to the viewer’s left, +Y up,
and -Z is the front normal pointing at the viewer, so a panel with the
identity orientation faces room -Z (qar_streaming.h “Panel space”).
size: GuiPanelSize§visible_to: Vec<PeerId>Empty: visible to everyone.
served: Option<GuiPanelServedContent>A page of a content bundle this session published
(crate::PanelContent); None creates a website panel with the default URL. Only
the bundle’s publisher may put it on a panel (PANEL_CONTENT_NOT_PUBLISHER).