class TestGdkEvent::TestScroll

Public Instance Methods

event() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 238
def event
  @scroll
end
setup() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 234
def setup
  @scroll = Gdk::EventScroll.new(:scroll)
end
test_direction() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 258
def test_direction
  assert_kind_of(Gdk::ScrollDirection, @scroll.direction)
end
test_state() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 254
def test_state
  assert_not_nil(@scroll.state)
end
test_time() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 242
def test_time
  assert_kind_of(Integer, @scroll.time)
end
test_x() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 246
def test_x
  assert_kind_of(Float, @scroll.x)
end
test_x_root() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 262
def test_x_root
  assert_kind_of(Float, @scroll.x_root)
end
test_y() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 250
def test_y
  assert_kind_of(Float, @scroll.y)
end
test_y_root() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 266
def test_y_root
  assert_kind_of(Float, @scroll.y_root)
end