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, Vec4}; use view::{AnyView, Selector, View}; use views::{AnyBox, Button, DummyView, SizedView, TextView}; /// 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