[][src]Struct bevy_crossterm::components::StyleMap

pub struct StyleMap {
    pub style: Style,
    pub map: Vec<Vec<Style>>,
}

Fields

style: Stylemap: Vec<Vec<Style>>

Implementations

impl StyleMap[src]

pub fn new(style: Style, map: Vec<Vec<Style>>) -> StyleMap[src]

pub fn with_attrib(attribute: Attribute) -> StyleMap[src]

pub fn with_attribs(attributes: Attributes) -> StyleMap[src]

pub fn with_fg(foreground: Color) -> StyleMap[src]

pub fn with_bg(background: Color) -> StyleMap[src]

pub fn with_colors(colors: Colors) -> StyleMap[src]

pub fn style_at(&self, x: usize, y: usize) -> Option<&Style>[src]

If there is a style available in the map, this fetches it. Otherwise, this returns None

pub fn style_for(&self, x: usize, y: usize) -> Style[src]

If there is a style for the grapheme at position x,y in the map, this fetches it. Otherwise the global sprite's style is returned

Trait Implementations

impl Default for StyleMap[src]

impl<'de> Deserialize<'de> for StyleMap[src]

impl Eq for StyleMap[src]

impl PartialEq<StyleMap> for StyleMap[src]

impl Serialize for StyleMap[src]

impl StructuralEq for StyleMap[src]

impl StructuralPartialEq for StyleMap[src]

impl TypeUuid for StyleMap[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any

impl<T> Asset for T where
    T: TypeUuid + AssetDynamic + TypeUuidDynamic, 

impl<T> AssetDynamic for T where
    T: Send + Sync + 'static + TypeUuidDynamic, 

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

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

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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

impl<T> FromResources for T where
    T: Default

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Resource for T where
    T: 'static + Send + Sync

impl<T> Serialize for T where
    T: Serialize + ?Sized
[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.

impl<T> TypeUuidDynamic for T where
    T: TypeUuid, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,