pub struct FakeDesktopInner {Show 16 fields
pub icons: HashMap<IconId, IconSnapshot>,
pub flags: u32,
pub commit_log: Vec<Vec<(IconId, Point)>>,
pub flag_ops: Vec<(u32, u32)>,
pub next_list_error: Option<DesktopError>,
pub monitors: Vec<MonitorInfo>,
pub desktop_info: Option<DesktopInfo>,
pub next_overlay_error: Option<DesktopError>,
pub overlay_active: bool,
pub real_icons_visible: bool,
pub last_overlay_plans: Vec<IconRenderPlan>,
pub last_overlay_render_options: OverlayRenderOptions,
pub overlay_frame_log: Vec<Vec<(IconId, Point)>>,
pub visual_frame_log: Vec<Vec<IconFrame>>,
pub overlay_finalize_log: Vec<Vec<(IconId, Point)>>,
pub next_commit_errors: VecDeque<DesktopError>,
}Fields§
§icons: HashMap<IconId, IconSnapshot>All icons currently on the fake desktop.
flags: u32Current folder-view flags word.
commit_log: Vec<Vec<(IconId, Point)>>Log of every set_positions batch, in order. Each entry is the
list of (id, new_pos) pairs that were actually applied (missing
ids are excluded).
flag_ops: Vec<(u32, u32)>Log of every apply_flags(mask, values) call.
next_list_error: Option<DesktopError>If set, list_icons will fail with this error the next time it is
called. Cleared after the failing call.
monitors: Vec<MonitorInfo>Simulated monitor layout. Defaults to a single 1920x1080 primary monitor at the origin so tests that don’t care about multi- monitor behaviour keep working.
desktop_info: Option<DesktopInfo>§next_overlay_error: Option<DesktopError>If set, begin_overlay_session will fail with this error the
next time it is called. Cleared after the failing call.
overlay_active: boolWhether an overlay session is currently open on this fake backend.
real_icons_visible: bool§last_overlay_plans: Vec<IconRenderPlan>The IconRenderPlan list passed to the most recent successful
begin_overlay_session call.
last_overlay_render_options: OverlayRenderOptionsThe OverlayRenderOptions passed to the most recent
successful begin_overlay_session call. Initialised to
OverlayRenderOptions::all_enabled until a session opens.
overlay_frame_log: Vec<Vec<(IconId, Point)>>Log of every commit_overlay_frame call, in order.
visual_frame_log: Vec<Vec<IconFrame>>§overlay_finalize_log: Vec<Vec<(IconId, Point)>>Log of every finalize_overlay_session call — the final
positions committed to the Shell.
next_commit_errors: VecDeque<DesktopError>Queue of pending errors to return from the next
commit_overlay_frame calls (one per call, in order).
Populated by tests via FakeDesktop::queue_commit_error
so the engine’s cancellation / error branches can be
exercised deterministically.