use align::*; use direction::{Absolute, Direction, Relative}; use event::{AnyCb, Event, EventResult, Key}; use rect::Rect; 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}; use Cursive; use Printer; use With; /// 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