rustty_oxide/core/
layout.rs

1use core::{Widget, ButtonResult};
2use std::collections::HashMap;
3
4/// Specialized version of a widget that implements an alignment function
5/// and method for forwarding keys to the parent widgets key map. 
6pub trait Layout: Widget {
7    fn align_elems(&mut self);
8    fn forward_keys(&mut self, key_map: &mut HashMap<char, ButtonResult>);
9}