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