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
16
17
18
use crate::class::ApplyClass;

pub use bevy_render::view::Visibility;

/// Show the node.
pub const VISIBLE: Visibility = Visibility::Visible;

/// Hide the node.
pub const HIDDEN: Visibility = Visibility::Hidden;

/// Inherit the visibility from the parent.
pub const INHERITED: Visibility = Visibility::Inherited;

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