pub struct StandardItemStyleConfig {
pub content: WidgetId,
pub is_selected: Signal<bool>,
pub is_hovered: Signal<bool>,
pub is_pressed: Signal<bool>,
pub is_focused: Signal<bool>,
pub is_focus_visible: Signal<bool>,
pub is_disabled: Signal<bool>,
pub is_window_active: Signal<bool>,
}Fields§
§content: WidgetIdPre-built row content — typically an HStack of [checkbox?] [leading?] [center?] [label / VStack { label, subtitle row }] [Spacer] [trailing?] composed by the host
StandardListItem / StandardTreeItem. The style is
responsible for the chrome (selection background, corner
radius, padding) but not for row-internal layout — the
per-slot composition is StandardItem-specific (subtitle has
its own sub-row, the checkbox carries labels_hidden AT
metadata, etc.) and would force every custom style to
reimplement it.
is_selected: Signal<bool>§is_hovered: Signal<bool>§is_pressed: Signal<bool>§is_focused: Signal<bool>§is_focus_visible: Signal<bool>Input-modality “focus-visible”: true after keyboard input. A focus ring
should render only when this and is_focused are both true, so a mouse
click selects without a ring while keyboard navigation reveals one.
is_disabled: Signal<bool>§is_window_active: Signal<bool>Whether the host window is currently active (focused AND not occluded).
Composed with is_focused so a selected row shows the vivid Selected
surface only while the view holds keyboard focus and the window is
active; otherwise it falls back to the muted SelectedInactive — the
same desaturation a view-focus loss produces (macOS “unemphasized”
selection serves both states). Populated from
BuildContext::window_active_signal.
Trait Implementations§
Source§impl Clone for StandardItemStyleConfig
impl Clone for StandardItemStyleConfig
Source§fn clone(&self) -> StandardItemStyleConfig
fn clone(&self) -> StandardItemStyleConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more