pub struct OverlayRenderOptions {
pub draw_labels: bool,
pub draw_shortcut_overlay: bool,
pub draw_shield_overlay: bool,
}Expand description
Global feature toggles for the overlay renderer, so callers can
request a minimal / stylised look without patching the backend.
All fields default to true — draw everything Explorer does.
The engine passes this struct to
DesktopBackend::begin_overlay_session
exactly once per animation; the backend uses it while enriching
IconRenderPlans and building overlay resources. When a
decoration is disabled, the backend also skips the associated
Shell COM query (cheaper session start, no wasted work).
Consumers on the Rust side normally build this via
OverlayRenderOptions::default() and flip individual fields;
Python callers pass the same three booleans as keyword arguments
on AnimationOptions.
Fields§
§draw_labels: boolDraw the icon title text (label) below each icon.
draw_shortcut_overlay: boolComposite the Shell overlay-slot badge (shortcut arrow,
sharing hand, sync-cloud, …) into each icon bitmap. Backed by
SHGetFileInfoW(SHGFI_OVERLAYINDEX) + SHIL_JUMBO extraction
— disabling this also skips the Shell query.
draw_shield_overlay: boolComposite the admin-elevation shield badge (SIID_SHIELD) into
each icon bitmap when the item’s
IExtractIconW::GetIconLocation(GIL_CHECKSHIELD) reports
GIL_SHIELD. Disabling this skips both the shield probe and
the blend.
Implementations§
Source§impl OverlayRenderOptions
impl OverlayRenderOptions
Sourcepub const fn all_enabled() -> Self
pub const fn all_enabled() -> Self
All decorations on — the default.
Trait Implementations§
Source§impl Clone for OverlayRenderOptions
impl Clone for OverlayRenderOptions
Source§fn clone(&self) -> OverlayRenderOptions
fn clone(&self) -> OverlayRenderOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OverlayRenderOptions
Source§impl Debug for OverlayRenderOptions
impl Debug for OverlayRenderOptions
Source§impl Default for OverlayRenderOptions
impl Default for OverlayRenderOptions
impl Eq for OverlayRenderOptions
Source§impl PartialEq for OverlayRenderOptions
impl PartialEq for OverlayRenderOptions
Source§fn eq(&self, other: &OverlayRenderOptions) -> bool
fn eq(&self, other: &OverlayRenderOptions) -> bool
self and other values to be equal, and is used by ==.