Class: Fox::FXEvent

Inherits:
Object
  • Object
show all
Defined in:
rdoc-sources/FXApp.rb

Overview

FOX Event

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#click_buttonObject (readonly)

Mouse button pressed [Integer]



65
66
67
# File 'rdoc-sources/FXApp.rb', line 65

def click_button
  @click_button
end

#click_countObject (readonly)

Click count [Integer]



68
69
70
# File 'rdoc-sources/FXApp.rb', line 68

def click_count
  @click_count
end

#click_timeObject (readonly)

Time of mouse button press [Integer]



62
63
64
# File 'rdoc-sources/FXApp.rb', line 62

def click_time
  @click_time
end

#click_xObject (readonly)

Window-relative x-coordinate of mouse press [Integer]



50
51
52
# File 'rdoc-sources/FXApp.rb', line 50

def click_x
  @click_x
end

#click_yObject (readonly)

Window-relative y-coordinate of mouse press [Integer]



53
54
55
# File 'rdoc-sources/FXApp.rb', line 53

def click_y
  @click_y
end

#codeObject (readonly)

Button, keysym or mode; DDE source [Integer]



38
39
40
# File 'rdoc-sources/FXApp.rb', line 38

def code
  @code
end

#last_xObject (readonly)

Window-relative x-coordinate of previous mouse location [Integer]



44
45
46
# File 'rdoc-sources/FXApp.rb', line 44

def last_x
  @last_x
end

#last_yObject (readonly)

Window-relative y-coordinate of previous mouse location [Integer]



47
48
49
# File 'rdoc-sources/FXApp.rb', line 47

def last_y
  @last_y
end

#root_xObject (readonly)

Root window x-coordinate [Integer]



18
19
20
# File 'rdoc-sources/FXApp.rb', line 18

def root_x
  @root_x
end

#root_yObject (readonly)

Root window y-coordinate [Integer]



21
22
23
# File 'rdoc-sources/FXApp.rb', line 21

def root_y
  @root_y
end

#rootclick_xObject (readonly)

Root window x-coordinate of mouse press [Integer]



56
57
58
# File 'rdoc-sources/FXApp.rb', line 56

def rootclick_x
  @rootclick_x
end

#rootclick_yObject (readonly)

Root window y-coordinate of mouse press [Integer]



59
60
61
# File 'rdoc-sources/FXApp.rb', line 59

def rootclick_y
  @rootclick_y
end

#stateObject (readonly)

Keyboard/modifier state [Integer]

SHIFTMASK = 0x001, /// Shift key is down CAPSLOCKMASK = 0x002, /// Caps Lock key is down CONTROLMASK = 0x004, /// Ctrl key is down ALTMASK = 0x008, /// Alt key is down METAMASK = 0x040, /// Meta key is down NUMLOCKMASK = 0x010, /// Num Lock key is down SCROLLLOCKMASK = 0x0E0, /// Scroll Lock key is down (seems to vary) LEFTBUTTONMASK = 0x100, /// Left mouse button is down MIDDLEBUTTONMASK = 0x200, /// Middle mouse button is down RIGHTBUTTONMASK = 0x400 /// Right mouse button is down



35
36
37
# File 'rdoc-sources/FXApp.rb', line 35

def state
  @state
end

#targetObject (readonly)

Target drag type being requested [Integer]



71
72
73
# File 'rdoc-sources/FXApp.rb', line 71

def target
  @target
end

#textObject (readonly)

Text of keyboard event [String]



41
42
43
# File 'rdoc-sources/FXApp.rb', line 41

def text
  @text
end

#timeObject (readonly)

Time of last event [Integer]



9
10
11
# File 'rdoc-sources/FXApp.rb', line 9

def time
  @time
end

#typeObject (readonly)

Event type [Integer]



6
7
8
# File 'rdoc-sources/FXApp.rb', line 6

def type
  @type
end

#win_xObject (readonly)

Window-relative x-coordinate [Integer]



12
13
14
# File 'rdoc-sources/FXApp.rb', line 12

def win_x
  @win_x
end

#win_yObject (readonly)

Window-relative y-coordinate [Integer]



15
16
17
# File 'rdoc-sources/FXApp.rb', line 15

def win_y
  @win_y
end

Instance Method Details

#moved?Boolean

Return true if cursor moved since last press

Returns:

  • (Boolean)


74
# File 'rdoc-sources/FXApp.rb', line 74

def moved? ; end

#rectObject

Exposed rectangle for paint events



77
# File 'rdoc-sources/FXApp.rb', line 77

def rect ; end

#synthetic?Boolean

Return true if this is a synthetic expose event

Returns:

  • (Boolean)


80
# File 'rdoc-sources/FXApp.rb', line 80

def synthetic? ; end