Class: Fox::FXEvent
- Inherits:
-
Object
- Object
- Fox::FXEvent
- Defined in:
- rdoc-sources/FXApp.rb
Overview
FOX Event
Instance Attribute Summary collapse
-
#click_button ⇒ Object
readonly
Mouse button pressed [Integer].
-
#click_count ⇒ Object
readonly
Click count [Integer].
-
#click_time ⇒ Object
readonly
Time of mouse button press [Integer].
-
#click_x ⇒ Object
readonly
Window-relative x-coordinate of mouse press [Integer].
-
#click_y ⇒ Object
readonly
Window-relative y-coordinate of mouse press [Integer].
-
#code ⇒ Object
readonly
Button, keysym or mode; DDE source [Integer].
-
#last_x ⇒ Object
readonly
Window-relative x-coordinate of previous mouse location [Integer].
-
#last_y ⇒ Object
readonly
Window-relative y-coordinate of previous mouse location [Integer].
-
#root_x ⇒ Object
readonly
Root window x-coordinate [Integer].
-
#root_y ⇒ Object
readonly
Root window y-coordinate [Integer].
-
#rootclick_x ⇒ Object
readonly
Root window x-coordinate of mouse press [Integer].
-
#rootclick_y ⇒ Object
readonly
Root window y-coordinate of mouse press [Integer].
-
#state ⇒ Object
readonly
Keyboard/modifier state [Integer].
-
#target ⇒ Object
readonly
Target drag type being requested [Integer].
-
#text ⇒ Object
readonly
Text of keyboard event [String].
-
#time ⇒ Object
readonly
Time of last event [Integer].
-
#type ⇒ Object
readonly
Event type [Integer].
-
#win_x ⇒ Object
readonly
Window-relative x-coordinate [Integer].
-
#win_y ⇒ Object
readonly
Window-relative y-coordinate [Integer].
Instance Method Summary collapse
-
#moved? ⇒ Boolean
Return true if cursor moved since last press.
-
#rect ⇒ Object
Exposed rectangle for paint events.
-
#synthetic? ⇒ Boolean
Return true if this is a synthetic expose event.
Instance Attribute Details
#click_button ⇒ Object (readonly)
Mouse button pressed [Integer]
66 67 68 |
# File 'rdoc-sources/FXApp.rb', line 66 def @click_button end |
#click_count ⇒ Object (readonly)
Click count [Integer]
69 70 71 |
# File 'rdoc-sources/FXApp.rb', line 69 def click_count @click_count end |
#click_time ⇒ Object (readonly)
Time of mouse button press [Integer]
63 64 65 |
# File 'rdoc-sources/FXApp.rb', line 63 def click_time @click_time end |
#click_x ⇒ Object (readonly)
Window-relative x-coordinate of mouse press [Integer]
51 52 53 |
# File 'rdoc-sources/FXApp.rb', line 51 def click_x @click_x end |
#click_y ⇒ Object (readonly)
Window-relative y-coordinate of mouse press [Integer]
54 55 56 |
# File 'rdoc-sources/FXApp.rb', line 54 def click_y @click_y end |
#code ⇒ Object (readonly)
Button, keysym or mode; DDE source [Integer]
39 40 41 |
# File 'rdoc-sources/FXApp.rb', line 39 def code @code end |
#last_x ⇒ Object (readonly)
Window-relative x-coordinate of previous mouse location [Integer]
45 46 47 |
# File 'rdoc-sources/FXApp.rb', line 45 def last_x @last_x end |
#last_y ⇒ Object (readonly)
Window-relative y-coordinate of previous mouse location [Integer]
48 49 50 |
# File 'rdoc-sources/FXApp.rb', line 48 def last_y @last_y end |
#root_x ⇒ Object (readonly)
Root window x-coordinate [Integer]
18 19 20 |
# File 'rdoc-sources/FXApp.rb', line 18 def root_x @root_x end |
#root_y ⇒ Object (readonly)
Root window y-coordinate [Integer]
21 22 23 |
# File 'rdoc-sources/FXApp.rb', line 21 def root_y @root_y end |
#rootclick_x ⇒ Object (readonly)
Root window x-coordinate of mouse press [Integer]
57 58 59 |
# File 'rdoc-sources/FXApp.rb', line 57 def rootclick_x @rootclick_x end |
#rootclick_y ⇒ Object (readonly)
Root window y-coordinate of mouse press [Integer]
60 61 62 |
# File 'rdoc-sources/FXApp.rb', line 60 def rootclick_y @rootclick_y end |
#state ⇒ Object (readonly)
Keyboard/modifier state [Integer]
Bitmask of these:
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
36 37 38 |
# File 'rdoc-sources/FXApp.rb', line 36 def state @state end |
#target ⇒ Object (readonly)
Target drag type being requested [Integer]
72 73 74 |
# File 'rdoc-sources/FXApp.rb', line 72 def target @target end |
#text ⇒ Object (readonly)
Text of keyboard event [String]
42 43 44 |
# File 'rdoc-sources/FXApp.rb', line 42 def text @text end |
#time ⇒ Object (readonly)
Time of last event [Integer]
9 10 11 |
# File 'rdoc-sources/FXApp.rb', line 9 def time @time end |
#type ⇒ Object (readonly)
Event type [Integer]
6 7 8 |
# File 'rdoc-sources/FXApp.rb', line 6 def type @type end |
#win_x ⇒ Object (readonly)
Window-relative x-coordinate [Integer]
12 13 14 |
# File 'rdoc-sources/FXApp.rb', line 12 def win_x @win_x end |
#win_y ⇒ Object (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
75 |
# File 'rdoc-sources/FXApp.rb', line 75 def moved? ; end |
#rect ⇒ Object
Exposed rectangle for paint events
78 |
# File 'rdoc-sources/FXApp.rb', line 78 def rect ; end |
#synthetic? ⇒ Boolean
Return true if this is a synthetic expose event
81 |
# File 'rdoc-sources/FXApp.rb', line 81 def synthetic? ; end |