pub struct Bubble {
pub id: BubbleId,
pub module: String,
pub key: Option<String>,
pub view: String,
pub wide: bool,
pub payload: Value,
pub area: Area,
pub group: Option<String>,
pub priority: u8,
pub news: u64,
pub tooltip: Option<String>,
pub apart: bool,
}Expand description
A bubble as the UI draws it. Snapshots list bubbles in drawing order:
area by area, each from left to right. Consecutive bubbles with the same
group share one pill.
Fields§
§id: BubbleId§module: String§key: Option<String>The module’s replacement key. A bubble with the same module and key continues the previous one, so the UI keeps its view and updates the payload.
view: StringThe view to load: modules/<module>/<view>.qml.
wide: boolWhether view is a wide view with text, drawn in a pill. Otherwise it
is a small one, drawn in a round bubble.
payload: Value§area: Area§group: Option<String>§priority: u8Higher is more important: the front of a stack.
news: u64Goes up whenever the bubble has news, like when it appears or its module says something new happened; payload updates alone leave it. A stack brings a bubble whose news went up to the front for a while.
tooltip: Option<String>What the pointer resting on it shows beside it, unless its view says
more with a tooltip property of its own.
apart: boolKeeps a pill of its own in an area that merges its bubbles, beside the merged shape instead of in it.