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
use bevy_ui::{GridPlacement, Style};
use derive_more::From;

use crate::class::ApplyClass;

#[derive(Debug, Clone, From, PartialEq)]
pub struct GridCol(pub GridPlacement);

impl ApplyClass<GridCol> for Style {
    fn apply_class(&mut self, class: &GridCol) {
        self.grid_column = class.0;
    }
}