pub struct SnapshotIconGeometry {
pub id: IconId,
pub icon_rect_px: (i32, i32, u32, u32),
pub label_rect_px: Option<(i32, i32, u32, u32)>,
pub arrow_rect_px: Option<(i32, i32, u32, u32)>,
}Expand description
Per-icon paint geometry captured during
SnapshotFrame rendering.
Rects are expressed as (x, y, width, height) in overlay-canvas
physical pixels (same coordinate space as the pixel buffer,
origin at the top-left, y grows downward).
icon_rect_px is the rect passed to D2D DrawBitmap — the
exact bounds the icon (or placeholder tile) was drawn into.
Aspect-fit padding sits outside this rect, not inside it.
label_rect_px is derived from IDWriteTextLayout::GetMetrics
after the layout was populated with the icon’s display name,
then translated by the label draw origin. It reflects post-wrap,
post-trim glyph extents — the pixel-truthful answer to “where
does the label actually land”. None when the icon has no
label (headless plans, empty display name).
arrow_rect_px is the D2D DrawBitmap rect used for the
shortcut-arrow overlay. The arrow is anchored to the actual
thumbnail’s bottom-left, mirrored by shadow_reserve_dip. For
slot-filling icons that coincides with the slot bottom-left.
None when the icon has no shortcut arrow.
Fields§
§id: IconId§icon_rect_px: (i32, i32, u32, u32)§label_rect_px: Option<(i32, i32, u32, u32)>§arrow_rect_px: Option<(i32, i32, u32, u32)>