Skip to main content

rocketsplash_rt/
text_style.rs

1// <FILE>crates/rocketsplash-rt/src/text_style.rs</FILE>
2// <DESC>Text style flags for runtime rendering</DESC>
3// <VERS>VERSION: 1.0.0</VERS>
4// <WCTX>Runtime library implementation</WCTX>
5// <CLOG>Add TextStyle bitflags for render styling</CLOG>
6
7use bitflags::bitflags;
8
9bitflags! {
10    #[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
11    pub struct TextStyle: u8 {
12        const BOLD = 0b0001;
13        const ITALIC = 0b0010;
14        const UNDERLINE = 0b0100;
15        const REVERSE = 0b1000;
16    }
17}
18
19// <FILE>crates/rocketsplash-rt/src/text_style.rs</FILE>
20// <VERS>END OF VERSION: 1.0.0</VERS>