pub struct PlatformViewFrame {
pub slot_id: u64,
pub view_type: String,
pub params_json: String,
pub params_generation: u64,
pub rect: Rect,
pub clip: Option<Rect>,
pub visible: bool,
pub interactive: bool,
pub shields: Vec<Rect>,
pub command_index: usize,
}Expand description
A platform-view slot’s paint-time frame, in logical px and absolute window coordinates. Per pass: a slot that did not paint has none, and the shell differ decides hide/dispose.
Fields§
§slot_id: u64Stable per-instance id from next_slot_id.
view_type: String"dev.frust.<Factory>": the native view factory creating this slot.
params_json: StringOpaque creation params for the native factory (may be empty).
params_generation: u64Bumped by the widget whenever params_json changes.
rect: RectAbsolute paint bounds.
clip: Option<Rect>visible_rect intersected with rect, or None if fully visible.
visible: boolfalse when the widget itself hides it (distinct from being absent).
interactive: boolMode B input forwarding: a touch-DOWN in rect outside every shield
goes to the native view.
shields: Vec<Rect>Manually declared z-shields, used only when interactive; the shell
differ merges in the auto-collected ones.
command_index: usizePainter-order position (PaintScene::command_index) taken before the
slot’s own punch; later commands paint over the native view.