notedeck

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

options.rs (790B)


      1 use bitflags::bitflags;
      2 
      3 bitflags! {
      4     #[repr(transparent)]
      5     #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
      6     pub struct ChromeOptions: u64 {
      7         /// Is the chrome currently open?
      8         const NoOptions = 0;
      9 
     10         /// Are we simulating a virtual keyboard? This is mostly for debugging
     11         /// if we are too lazy to open up a real mobile device with soft
     12         /// keyboard
     13         const VirtualKeyboard = 1 << 1;
     14 
     15         /// Are we showing the memory debug window?
     16         const MemoryDebug = 1 << 2;
     17 
     18         /// Repaint debug
     19         const RepaintDebug = 1 << 3;
     20 
     21         /// We need soft keyboard visibility
     22         const KeyboardVisibility = 1 << 4;
     23     }
     24 }
     25 
     26 impl Default for ChromeOptions {
     27     fn default() -> Self {
     28         ChromeOptions::NoOptions
     29     }
     30 }