pub struct Win {
pub ctx: Win,
pub children: Vec<Widget>,
pub color: ColorSet,
pub ids: IdGenerator,
/* private fields */
}Fields§
§ctx: Win§children: Vec<Widget>§color: ColorSet§ids: IdGeneratorImplementations§
Source§impl Win
impl Win
pub fn new_with_max_id(max_id: i32) -> Self
pub fn new() -> Self
pub fn pack(&mut self, widget: Widget)
pub fn get_events(&mut self) -> Vec<Event>
pub fn add_exit_key(&mut self, key: i32)
pub fn remove_exit_key(&mut self, key: i32)
pub fn render(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl !Send for Win
impl !Sync for Win
impl Freeze for Win
impl RefUnwindSafe for Win
impl Unpin for Win
impl UnsafeUnpin for Win
impl UnwindSafe for Win
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