|
|
@ -251,7 +251,6 @@ impl Rect {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
|
|
|
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
|
|
|
|
|
|
|
pub enum Color {
|
|
|
|
pub enum Color {
|
|
|
|
Reset,
|
|
|
|
Reset,
|
|
|
|
Black,
|
|
|
|
Black,
|
|
|
@ -353,7 +352,6 @@ bitflags! {
|
|
|
|
///
|
|
|
|
///
|
|
|
|
/// let m = Modifier::BOLD | Modifier::ITALIC;
|
|
|
|
/// let m = Modifier::BOLD | Modifier::ITALIC;
|
|
|
|
/// ```
|
|
|
|
/// ```
|
|
|
|
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
|
|
|
|
|
|
|
pub struct Modifier: u16 {
|
|
|
|
pub struct Modifier: u16 {
|
|
|
|
const BOLD = 0b0000_0000_0001;
|
|
|
|
const BOLD = 0b0000_0000_0001;
|
|
|
|
const DIM = 0b0000_0000_0010;
|
|
|
|
const DIM = 0b0000_0000_0010;
|
|
|
@ -450,7 +448,6 @@ impl FromStr for Modifier {
|
|
|
|
/// );
|
|
|
|
/// );
|
|
|
|
/// ```
|
|
|
|
/// ```
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
|
|
|
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
|
|
|
|
|
|
|
pub struct Style {
|
|
|
|
pub struct Style {
|
|
|
|
pub fg: Option<Color>,
|
|
|
|
pub fg: Option<Color>,
|
|
|
|
pub bg: Option<Color>,
|
|
|
|
pub bg: Option<Color>,
|
|
|
|