title: Combining Enum Value using Bitmask
body: <p>I understand it's possible to use bitmasks in enum values, but I don't know how to create it.</p>
  
  <p>I have a simple enum :</p>
  
  <pre><code>enum State
  {
      minimizing = 0,
      maximizing,
  
      minimized,
      maximized
  };
  </code></pre>
  
  <p>A state is always <code>State.minimized</code> or <code>State.maximized</code>, and can have additional state on resize. So something can be Maximized and minimizing</p>