class Works::Mouse

Defined in:

works/mouse.cr

Constant Summary

None = 0_u8
Pressed = 3_u8
Released = 2_u8
Seen = 1_u8

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Int32 = 0, y : Int32 = 0) #

[View source]

Instance Method Detail

def hover?(ox, oy, width, height) #

[View source]
def just_pressed?(button : Int) #

[View source]
def left_just_pressed? #

[View source]
def left_pressed? #

[View source]
def pressed(button : Int) #

[View source]
def pressed?(button : Int) #

[View source]
def released(button : Int) #

[View source]
def reset #

[View source]
def right_just_pressed? #

[View source]
def right_pressed? #

[View source]
def to_map_coords(x, y) #

[View source]
def to_map_coords_centered(x, y, cols, rows) #

[View source]
def to_xy(x, y) #

[View source]
def x : Int32 #

[View source]
def x=(x : Int32) #

[View source]
def y : Int32 #

[View source]
def y=(y : Int32) #

[View source]