Struct nvim_gtk::highlight::HighlightMap[][src]

pub struct HighlightMap {
    highlights: FnvHashMap<u64, Rc<Highlight>>,
    default_hl: Rc<Highlight>,
    bg_color: Color,
    fg_color: Color,
    sp_color: Color,
    cterm_bg_color: Color,
    cterm_fg_color: Color,
    cterm_color: bool,
    pmenu: Rc<Highlight>,
    pmenu_sel: Rc<Highlight>,
    cursor: Rc<Highlight>,
}

Fields

highlights: FnvHashMap<u64, Rc<Highlight>>default_hl: Rc<Highlight>bg_color: Colorfg_color: Colorsp_color: Colorcterm_bg_color: Colorcterm_fg_color: Colorcterm_color: boolpmenu: Rc<Highlight>pmenu_sel: Rc<Highlight>cursor: Rc<Highlight>

Implementations

impl HighlightMap[src]

pub fn new() -> Self[src]

pub fn default_hl(&self) -> Rc<Highlight>[src]

pub fn set_defaults(
    &mut self,
    fg: Color,
    bg: Color,
    sp: Color,
    cterm_fg: Color,
    cterm_bg: Color
)
[src]

pub fn set_use_cterm(&mut self, cterm_color: bool)[src]

pub fn bg(&self) -> &Color[src]

pub fn fg(&self) -> &Color[src]

pub fn get(&self, idx: Option<u64>) -> Rc<Highlight>[src]

pub fn set(
    &mut self,
    idx: u64,
    hl: &HashMap<String, Value>,
    info: &Vec<HashMap<String, Value>>
)
[src]

pub fn cell_fg<'a>(&'a self, cell: &'a Cell) -> Option<&'a Color>[src]

pub fn actual_cell_fg<'a>(&'a self, cell: &'a Cell) -> &'a Color[src]

pub fn cell_bg<'a>(&'a self, cell: &'a Cell) -> Option<&'a Color>[src]

pub fn actual_cell_sp<'a>(&'a self, cell: &'a Cell) -> &'a Color[src]

pub fn pmenu_bg(&self) -> &Color[src]

pub fn pmenu_fg(&self) -> &Color[src]

pub fn pmenu_bg_sel(&self) -> &Color[src]

pub fn pmenu_fg_sel(&self) -> &Color[src]

pub fn cursor_bg(&self) -> &Color[src]

Auto Trait Implementations

impl !RefUnwindSafe for HighlightMap

impl !Send for HighlightMap

impl !Sync for HighlightMap

impl Unpin for HighlightMap

impl UnwindSafe for HighlightMap

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.