pub enum ColorRef {
Default,
Palette(u8),
Rgb(u32),
}Expand description
Where a colour comes from.
Palette indices 0..31 are the mIRC colors, which is how IRC
formatting (rotulus-mirc) addresses them; the slots above are the
theme roles (see rotulus.h’s ROTULUS_PAL_*). Rgb is a literal
color: an IRC extended or hex color, or a per-person nick color.
Variants§
Default
Inherit — the view’s default foreground / background.
Palette(u8)
A palette slot.
Rgb(u32)
A literal colour, 0x00RRGGBB.
Trait Implementations§
impl Copy for ColorRef
impl Eq for ColorRef
impl StructuralPartialEq for ColorRef
Auto Trait Implementations§
impl Freeze for ColorRef
impl RefUnwindSafe for ColorRef
impl Send for ColorRef
impl Sync for ColorRef
impl Unpin for ColorRef
impl UnsafeUnpin for ColorRef
impl UnwindSafe for ColorRef
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