mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-19 01:24:21 +01:00
27 lines
705 B
Rust
27 lines
705 B
Rust
use bitflags::bitflags;
|
|
|
|
bitflags! {
|
|
// Attributes can be applied to flags types
|
|
#[repr(transparent)]
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
|
pub struct AppOptions: u64 {
|
|
/// Explicitly enable/disable column persistence for the sessions
|
|
const TmpColumns = 1 << 0;
|
|
|
|
/// Debug mode for debug ui controls
|
|
const Debug = 1 << 1;
|
|
|
|
/// Should we explicitly disable since optimization?
|
|
const SinceOptimize = 1 << 2;
|
|
|
|
/// Should we scroll to top on the active column?
|
|
const ScrollToTop = 1 << 3;
|
|
}
|
|
}
|
|
|
|
impl Default for AppOptions {
|
|
fn default() -> AppOptions {
|
|
AppOptions::SinceOptimize
|
|
}
|
|
}
|