ui::PopupChrome¶
Header: winui/ui/Element.hpp.
How the window draws around a popup's content: the shadow behind it, and the corners and elevation that shadow is cast at.
| Field | Type | Default | |
|---|---|---|---|
shadow |
bool |
true |
Whether the window casts the theme's popup shadow behind the content. Off for content that draws all of its own chrome, as a bare Popup's child does. |
corner_radius |
Callback<float(const Theme& theme)> |
The corner radius the shadow is drawn at under a theme, which has to match the radius the content's own surface takes from that theme. Unset is the theme's overlay_corner_radius. |
|
elevation |
OptionalFloat |
How high the shadow is cast from, in DIPs, on a theme with Fluent shadows. Unset is a flyout's 32. | |
shadow_rect |
Callback<Rect(const Rect& bounds)> |
The rect the shadow is cast behind, given the popup's arranged bounds. Unset is the whole popup; a surface with a tail or a part still sliding in narrows it. |