class
Opal::TEA::MouseMsg
- Opal::TEA::MouseMsg
- Opal::TEA::Msg
- Reference
- Object
Overview
Dispatched when a mouse event occurs.
Defined in:
opal/tea/msg.crConstructors
- .from_event(event : Terminal::MouseEvent) : MouseMsg
- .new(x : Int32, y : Int32, button : Terminal::MouseButton, action : Terminal::MouseAction, ctrl : Bool = false, alt : Bool = false, shift : Bool = false)
Instance Method Summary
- #action : Terminal::MouseAction
- #alt? : Bool
- #button : Terminal::MouseButton
- #ctrl? : Bool
- #left_click? : Bool
- #motion? : Bool
- #press? : Bool
- #release? : Bool
- #right_click? : Bool
- #shift? : Bool
- #wheel_down? : Bool
- #wheel_up? : Bool
- #x : Int32
- #y : Int32
Constructor Detail
def self.new(x : Int32, y : Int32, button : Terminal::MouseButton, action : Terminal::MouseAction, ctrl : Bool = false, alt : Bool = false, shift : Bool = false)
#