pub enum TrailingGutterPolicy {
Auto,
Always,
Never,
}Expand description
How the popup reserves the trailing (submenu chevron / trailing accessory)
gutter (#60). Symmetric to the leading GutterPolicy.
Variants§
Auto
Reserve the shared trailing column only when the menu needs it — it holds
at least one submenu row (its › chevron) or a row carrying an explicit
trailing accessory — so every row’s right edge aligns past it (native
NSMenu). A menu with neither reserves nothing and its right-aligned
content reaches the true right edge. The OEM default.
Always
Always reserve the trailing column (every row’s content ends short of the right edge, even with no submenu or trailing accessory anywhere).
Never
Never reserve a trailing column — right-aligned content always reaches the
edge. A submenu chevron (or trailing accessory), if present, still draws
but overlays the normal content area rather than getting its own column,
mirroring how the leading GutterPolicy::Never keeps icons inline.
Trait Implementations§
Source§impl Clone for TrailingGutterPolicy
impl Clone for TrailingGutterPolicy
Source§fn clone(&self) -> TrailingGutterPolicy
fn clone(&self) -> TrailingGutterPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more