pub struct PopupNavSession {
pub open_signal: String,
pub panel: Entity,
pub prev_focus: Option<Entity>,
pub prev_focus_visible: bool,
pub needs_scroll: bool,
}Expand description
The one live popup keyboard session (dropdown or menu panel). At
most one popup owns the keyboard at a time - nested menus are a
later wave; today’s <menu> is a flat panel.
Fields§
§open_signal: StringOpen-state signal the session is keyed on
(__dropdown_open:* / __menu_open:*).
panel: EntityThe PopupPanel entity.
prev_focus: Option<Entity>Focus holder at open time, restored when a menu closes. Dropdowns restore to their header instead (Qt returns focus to the combobox).
prev_focus_visible: boolWhether the pre-open focus carried FocusVisible (keyboard
focus) - the restored focus mirrors it.
needs_scroll: boolInitial scroll-into-view still pending: the panel mounts lazily
on first open, so the highlighted row has no measured
Transform until a layout pass has run. Cleared once applied.
Trait Implementations§
Source§fn clone(&self) -> PopupNavSession
fn clone(&self) -> PopupNavSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.