class TestGdkEvent::TestMotion

Public Instance Methods

event() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 278
def event
  @motion
end
setup() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 274
def setup
  @motion = Gdk::EventMotion.new(:motion_notify)
end
test_request() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 306
def test_request
  assert_nothing_raised do
    @motion.request
  end
end
test_state() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 294
def test_state
  assert_not_nil(@motion.state)
end
test_time() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 282
def test_time
  assert_kind_of(Integer, @motion.time)
end
test_x() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 286
def test_x
  assert_kind_of(Float, @motion.x)
end
test_x_root() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 298
def test_x_root
  assert_kind_of(Float, @motion.x_root)
end
test_y() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 290
def test_y
  assert_kind_of(Float, @motion.y)
end
test_y_root() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 302
def test_y_root
  assert_kind_of(Float, @motion.y_root)
end