pub struct LayoutView {
pub layout: Layout,
pub name: String,
pub focused: bool,
pub legend: Vec<LegendRow>,
pub keys: Vec<KeyCapView>,
}Expand description
One layout, with its keyboard and what its keys do.
Fields§
§layout: LayoutWhich layout it is.
name: StringIts name.
focused: boolWhether the cursor is on it.
legend: Vec<LegendRow>What its keys do, one line per thing the player does.
keys: Vec<KeyCapView>Every key of the keyboard with its role in this layout. A skin draws the keys its picture has and where it puts them.
Implementations§
Source§impl LayoutView
impl LayoutView
Sourcepub fn role(&self, key: Key) -> KeyRole
pub fn role(&self, key: Key) -> KeyRole
The role of key in this layout (KeyRole::Unbound for a key
the view doesn’t list).
Trait Implementations§
Source§impl Clone for LayoutView
impl Clone for LayoutView
Source§fn clone(&self) -> LayoutView
fn clone(&self) -> LayoutView
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 Debug for LayoutView
impl Debug for LayoutView
impl Eq for LayoutView
Source§impl PartialEq for LayoutView
impl PartialEq for LayoutView
impl StructuralPartialEq for LayoutView
Auto Trait Implementations§
impl Freeze for LayoutView
impl RefUnwindSafe for LayoutView
impl Send for LayoutView
impl Sync for LayoutView
impl Unpin for LayoutView
impl UnsafeUnpin for LayoutView
impl UnwindSafe for LayoutView
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