blob: 56f0feb1aa5e4e28a7615c17cccd262c2a8c0aba (
plain)
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
|
use crate::context::MatchContext;
/// Display options valid pre JoshutoDirList in a JoshutoTab
#[derive(Clone, Debug, Default)]
pub struct DirListDisplayOptions {
filter_context: MatchContext,
depth: u8,
}
impl DirListDisplayOptions {
pub fn set_filter_context(&mut self, filter_context: MatchContext) {
self.filter_context = filter_context;
}
pub fn filter_context_ref(&self) -> &MatchContext {
&self.filter_context
}
pub fn set_depth(&mut self, depth: u8) {
self.depth = depth;
}
pub fn depth(&self) -> u8 {
self.depth
}
}
|