Trait guion::style::Style[][src]

pub trait Style<E>: Clone + Default where
    E: Env
{ type Selector: StyleSelector<E> + StyleSelectorAppend<StdSelectag<E>, E> + for<'a> StyleSelectorAppend<&'a StdSelectag<E>, E> + for<'a> StyleSelectorAppend<&'a [StdSelectag<E>], E> + for<'a, 'b> StyleSelectorAppend<&'a [&'b StdSelectag<E>], E>; type Font; type Cursor: From<StdCursor> + Clone; type Color: Color + Clone; type Glyphs: Glyphs<E>; fn preprocess_text(&self, s: &str, c: &mut E::Context) -> Self::Glyphs;
fn is_cached_valid(&self, s: &Self::Glyphs, _c: &mut E::Context) -> bool;
fn and(&self, s: &Self) -> Self;
fn font(
        &self,
        selector: &Self::Selector,
        c: &mut E::Context
    ) -> Option<&Self::Font>;
fn color(
        &self,
        selector: &Self::Selector,
        c: &mut E::Context
    ) -> Self::Color;
fn border(&self, selector: &Self::Selector, c: &mut E::Context) -> Border;
fn cursor(
        &self,
        selector: &Self::Selector,
        c: &mut E::Context
    ) -> Self::Cursor; }

Associated Types

Loading content...

Required methods

fn preprocess_text(&self, s: &str, c: &mut E::Context) -> Self::Glyphs[src]

fn is_cached_valid(&self, s: &Self::Glyphs, _c: &mut E::Context) -> bool[src]

fn and(&self, s: &Self) -> Self[src]

fn font(
    &self,
    selector: &Self::Selector,
    c: &mut E::Context
) -> Option<&Self::Font>
[src]

fn color(&self, selector: &Self::Selector, c: &mut E::Context) -> Self::Color[src]

fn border(&self, selector: &Self::Selector, c: &mut E::Context) -> Border[src]

fn cursor(&self, selector: &Self::Selector, c: &mut E::Context) -> Self::Cursor[src]

Loading content...

Implementors

Loading content...