1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
use crate::attrmap2::AttrMap2;
use crate::style::color_string;
use crate::style::units::{Length, LineStyle, LineType, LineWidth, TabStopType};
use crate::TextStyleRef;
use color::Rgb;
#[derive(Clone, Debug, Default)]
pub struct TabStop {
attr: AttrMap2,
}
impl TabStop {
pub fn new() -> Self {
Self {
attr: Default::default(),
}
}
pub fn attrmap(&self) -> &AttrMap2 {
&self.attr
}
pub fn attrmap_mut(&mut self) -> &mut AttrMap2 {
&mut self.attr
}
style_char!(attr);
style_leader_color!(attr);
style_leader_style!(attr);
style_leader_text!(attr);
style_leader_text_style!(attr);
style_leader_type!(attr);
style_leader_width!(attr);
style_position!(attr);
style_type!(attr);
}