pub struct KeyBindingsView<A> {
pub title: String,
pub switch: Option<SwitchView>,
pub columns: Vec<String>,
pub groups: Vec<GroupView<A>>,
pub restore: RestoreView,
pub not_mapped: String,
pub message: Option<String>,
pub question: Option<AskView<bool>>,
pub choices: Option<ChoicesView>,
pub help: String,
}Expand description
The whole screen, as it is this frame.
Fields§
§title: StringThe screen’s title.
switch: Option<SwitchView>The keyboard / controller switch; None with no keyboard, when the
controller side is the only one.
columns: Vec<String>The headings over the slot columns, left to right.
groups: Vec<GroupView<A>>The actions, grouped: the required ones, then the optional ones.
restore: RestoreViewThe row under the actions that puts the shown side’s defaults back.
not_mapped: StringThe note on a row with nothing in any slot (! not mapped).
message: Option<String>A message for the player (a key can’t be used, leaving is blocked).
question: Option<AskView<bool>>The yes/no question open over the rows, if any (no answers, but the line naming its keys).
choices: Option<ChoicesView>The choices open under the focused slot, if any (the controller side’s change / clear).
help: StringThe help line: what the keys do here.
Implementations§
Source§impl<A: Copy + PartialEq> KeyBindingsView<A>
impl<A: Copy + PartialEq> KeyBindingsView<A>
Trait Implementations§
Source§impl<A: Clone> Clone for KeyBindingsView<A>
impl<A: Clone> Clone for KeyBindingsView<A>
Source§fn clone(&self) -> KeyBindingsView<A>
fn clone(&self) -> KeyBindingsView<A>
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 moreSource§impl<A: Debug> Debug for KeyBindingsView<A>
impl<A: Debug> Debug for KeyBindingsView<A>
impl<A: Eq> Eq for KeyBindingsView<A>
Source§impl<A: PartialEq> PartialEq for KeyBindingsView<A>
impl<A: PartialEq> PartialEq for KeyBindingsView<A>
impl<A: PartialEq> StructuralPartialEq for KeyBindingsView<A>
Auto Trait Implementations§
impl<A> Freeze for KeyBindingsView<A>
impl<A> RefUnwindSafe for KeyBindingsView<A>where
A: RefUnwindSafe,
impl<A> Send for KeyBindingsView<A>where
A: Send,
impl<A> Sync for KeyBindingsView<A>where
A: Sync,
impl<A> Unpin for KeyBindingsView<A>where
A: Unpin,
impl<A> UnsafeUnpin for KeyBindingsView<A>
impl<A> UnwindSafe for KeyBindingsView<A>where
A: UnwindSafe,
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