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_top_arrow_colors(self, colors: ColorPair) -> Self
pub fn top_arrow_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_bottom_arrow_colors(self, colors: ColorPair) -> Self
pub fn bottom_arrow_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_top_arrow_padding(self, amount: Coord) -> Self
pub fn title_top_arrow_padding(&self) -> Coord
pub fn with_top_arrow_items_padding(self, amount: Coord) -> Self
pub fn top_arrow_items_padding(&self) -> Coord
pub fn with_item_between_padding(self, amount: Coord) -> Self
pub fn item_between_padding(&self) -> Coord
pub fn with_items_bottom_arrow_padding(self, amount: Coord) -> Self
pub fn items_bottom_arrow_padding(&self) -> Coord
pub fn with_bottom_arrow_cancel_padding(self, amount: Coord) -> Self
pub fn bottom_arrow_cancel_padding(&self) -> Coord
pub fn with_bottom_margin(self, amount: Coord) -> Self
pub fn bottom_margin(&self) -> Coord
pub fn with_top_arrow(self, text: impl AsRef<str>) -> Self
pub fn top_arrow(&self) -> &str
pub fn with_bottom_arrow(self, text: impl AsRef<str>) -> Self
pub fn bottom_arrow(&self) -> &str
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_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