Sha256: 48088c7dbf1bac58f8a108f154376e3c81206845467f2cd6feddbc36ad8ccc96
Contents?: true
Size: 712 Bytes
Versions: 4
Compression:
Stored size: 712 Bytes
Contents
require 'forwardable' require 'reflex/ext' module Reflex class PointerEvent < Event include Enumerable extend Forwardable def_delegators :first, :id, :types, :mouse?, :touch?, :pen?, :mouse_left?, :left?, :mouse_right?, :right?, :mouse_middle?, :middle?, :action, :down?, :up?, :move?, :cancel?, :stay?, :position, :pos, :x, :y, :modifiers, :click_count, :drag?, :time, :prev, :down def pointers() to_enum :each end def inspect() "#<Reflex::PointerEvent id:#{id} #{types} #{action} (#{x.round 2}, #{y.round 2}) mod:#{modifiers} click:#{click_count} drag:#{drag?} time:#{time.round 2}>" end end# PointerEvent end# Reflex
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
reflexion-0.3.4 | lib/reflex/pointer_event.rb |
reflexion-0.3.3 | lib/reflex/pointer_event.rb |
reflexion-0.3.2 | lib/reflex/pointer_event.rb |
reflexion-0.3.1 | lib/reflex/pointer_event.rb |