notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

options.rs (705B)


      1 use bitflags::bitflags;
      2 
      3 bitflags! {
      4     // Attributes can be applied to flags types
      5     #[repr(transparent)]
      6     #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
      7     pub struct AppOptions: u64 {
      8         /// Explicitly enable/disable column persistence for the sessions
      9         const TmpColumns    = 1 << 0;
     10 
     11         /// Debug mode for debug ui controls
     12         const Debug         = 1 << 1;
     13 
     14         /// Should we explicitly disable since optimization?
     15         const SinceOptimize = 1 << 2;
     16 
     17         /// Should we scroll to top on the active column?
     18         const ScrollToTop   = 1 << 3;
     19     }
     20 }
     21 
     22 impl Default for AppOptions {
     23     fn default() -> AppOptions {
     24         AppOptions::SinceOptimize
     25     }
     26 }