use Cursive; use Printer; use With; use align::*; use direction::Direction; use event::*; use std::any::Any; use std::cell::Cell; use std::cmp::max; use theme::ColorStyle; use unicode_width::UnicodeWidthStr; use vec::Vec2; use view::{Margins, Selector, View}; use views::{Button, DummyView, SizedView, TextView, ViewBox}; /// Identifies currently focused element in [`Dialog`]. /// /// [`Dialog`]: struct.Dialog.html #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum DialogFocus { /// Content element focused Content, /// One of buttons focused Button(usize), } struct ChildButton { button: SizedView