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

pub trait Style<E>: Clone where
    E: Env,
    E::Backend: Backend<E, Style = Self>, 
{ type Font; type Cursor; type Color: Color; type PreprocessedText: PreprocessedText<E>; type PreprocessedChar: PreprocessedChar; type Variant: StyleVariant; fn font(&self, v: &Self::Variant) -> Option<&Self::Font>;
fn cursor(&self, v: &Self::Variant) -> Self::Cursor;
fn color(&self, v: &Self::Variant) -> Self::Color;
fn preprocess_text(
        &self,
        s: &str,
        c: &mut E::Context
    ) -> Self::PreprocessedText;
fn is_cached_valid(
        &self,
        s: &Self::PreprocessedText,
        _c: &mut E::Context
    ) -> bool;
fn static_default() -> Self; }

Associated Types

Loading content...

Required methods

fn font(&self, v: &Self::Variant) -> Option<&Self::Font>

fn cursor(&self, v: &Self::Variant) -> Self::Cursor

fn color(&self, v: &Self::Variant) -> Self::Color

fn preprocess_text(&self, s: &str, c: &mut E::Context) -> Self::PreprocessedText

fn is_cached_valid(
    &self,
    s: &Self::PreprocessedText,
    _c: &mut E::Context
) -> bool

fn static_default() -> Self

Loading content...

Implementors

Loading content...