pub struct Style { /* private fields */ }
Implementations§
Source§impl Style
impl Style
pub fn new() -> Self
pub fn with_background(self, color: Color) -> Self
pub fn background(&self) -> Color
pub fn with_title_colors(self, colors: ColorPair) -> Self
pub fn title_colors(&self) -> ColorPair
pub fn with_selected_colors(self, colors: ColorPair) -> Self
pub fn selected_colors(&self) -> ColorPair
pub fn with_unselected_colors(self, colors: ColorPair) -> Self
pub fn unselected_colors(&self) -> ColorPair
pub fn with_field_colors(self, colors: ColorPair) -> Self
pub fn field_colors(&self) -> ColorPair
pub fn with_cursor_colors(self, colors: ColorPair) -> Self
pub fn cursor_colors(&self) -> ColorPair
pub fn with_left_margin(self, amount: Coord) -> Self
pub fn left_margin(&self) -> Coord
pub fn with_right_margin(self, amount: Coord) -> Self
pub fn right_margin(&self) -> Coord
pub fn with_top_margin(self, amount: Coord) -> Self
pub fn top_margin(&self) -> Coord
pub fn with_title_field_padding(self, amount: Coord) -> Self
pub fn title_field_padding(&self) -> Coord
pub fn with_field_ok_padding(self, amount: Coord) -> Self
pub fn field_ok_padding(&self) -> Coord
pub fn with_ok_cancel_padding(self, amount: Coord) -> Self
pub fn ok_cancel_padding(&self) -> Coord
pub fn with_bottom_margin(self, amount: Coord) -> Self
pub fn bottom_margin(&self) -> Coord
pub fn with_selected_left(self, text: impl AsRef<str>) -> Self
pub fn selected_left(&self) -> &str
pub fn with_selected_right(self, text: impl AsRef<str>) -> Self
pub fn selected_right(&self) -> &str
pub fn with_cursor(self, text: char) -> Self
pub fn cursor(&self) -> char
pub fn with_ok_label(self, text: impl AsRef<str>) -> Self
pub fn ok_label(&self) -> &str
pub fn with_cancel_label(self, text: impl AsRef<str>) -> Self
pub fn cancel_label(&self) -> &str
Trait Implementations§
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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