struct Espresso::MouseButtonEvent

Overview

Event triggered when a mouse button is pressed or released.

Defined in:

espresso/events/mouse_button_event.cr

Instance Method Summary

Instance methods inherited from struct Espresso::MouseEvent

mouse : Mouse mouse

Instance methods inherited from struct Espresso::WindowEvent

window : Window window

Instance Method Detail

def button : MouseButton #

Button that was pressed or released.


[View source]
def left? #

Indicates whether the left (primary) mouse button was involved.


[View source]
def middle? #

Indicates whether the middle mouse button was involved.


[View source]
def modifiers : ModifierKey #

Modifier keys held down when the event occurred.


[View source]
def pressed? #

Indicates whether the button was pressed.


[View source]
def released? #

Indicates whether the button was released.


[View source]
def right? #

Indicates whether the right (secondary) mouse button was involved.


[View source]
def state : ButtonState #

New state of the mouse button.


[View source]