Module: MacOS::Library::CoreGraphics::EventFlags
- Defined in:
- lib/macos/library/core_graphics/event_flags.rb
Overview
Constant Summary collapse
- MASK_SHIFT =
0x00020000
- MASK_CONTROL =
0x00040000
- MASK_ALTERNATE =
0x00080000
- MASK_COMMAND =
0x00100000
- MASK_HELP =
0x00400000
- MAPPING =
{ "shift" => MASK_SHIFT, "control" => MASK_CONTROL, "ctrl" => MASK_CONTROL, "option" => MASK_ALTERNATE, "opt" => MASK_ALTERNATE, "alt" => MASK_ALTERNATE, "command" => MASK_COMMAND, "cmd" => MASK_COMMAND, "help" => MASK_HELP, }.freeze
Class Method Summary collapse
Class Method Details
.find(modifier) ⇒ Integer
31 32 33 |
# File 'lib/macos/library/core_graphics/event_flags.rb', line 31 def self.find(modifier) MAPPING[modifier] || raise(ArgumentError, "unsupported modifier=#{modifier.inspect}") end |