|
| | KeyMask () |
| | Creates an empty key mask.
|
| | KeyMask (ImGuiKey key) |
| | Creates a key mask containing a single ImGui key.
|
| | KeyMask (const KeyMask &other)=default |
| | Copies another key mask.
|
| bool | IsPressed () const |
| | Returns whether every key in the mask is currently pressed.
|
| | operator char * () const |
| | Converts the key mask to a display string.
|
| void | Reset () |
| | Clears all keys from the mask.
|
| std::vector< ImGuiKey > | All () const |
| | Returns all keys currently stored in the mask.
|
| KeyMask | operator| (const KeyMask &other) const |
| | Returns a key mask containing keys from both operands.
|
| bool | operator== (const KeyMask &other) const |
| | Returns whether two key masks contain the same keys.
|
Bitmask representing a set of ImGui keys.
Stores keys internally as bits, allowing efficient storage and comparison of multiple key states. Key combinations are created using bitwise OR rather than direct multi-key construction.
Used for representing keyboard input states such as shortcuts.
- Invariant
- Each ImGuiKey maps to exactly one bit in m_Keys.