bevy_bsml 0.14.10

A UI library to compose UI elements using simple markup language, inspired by svelte and tailwindcss
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::class::ApplyClass;
use bevy_ui::Style;

pub use bevy_ui::Display;

pub const FLEX: Display = Display::Flex;
pub const BLOCK: Display = Display::Block;
pub const GRID: Display = Display::Grid;
pub const DISPLAY_NONE: Display = Display::None;

impl ApplyClass<Display> for Style {
    fn apply_class(&mut self, class: &Display) {
        self.display = *class;
    }
}