class TestGdkEvent::TestCrossing

Public Instance Methods

event() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 336
def event
  @crossing
end
setup() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 332
def setup
  @crossing = Gdk::EventCrossing.new(:enter_notify)
end
test_detail() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 374
def test_detail
  assert_not_nil(@crossing.detail)
end
test_enter_notify() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 340
def test_enter_notify
  assert_equal("GDK_ENTER_NOTIFY",
               Gdk::EventCrossing.new(:enter_notify).type.name)
end
test_leave_notify() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 345
def test_leave_notify
  assert_equal("GDK_LEAVE_NOTIFY",
               Gdk::EventCrossing.new(:leave_notify).type.name)
end
test_mode() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 370
def test_mode
  assert_kind_of(Gdk::CrossingMode, @crossing.mode)
end
test_state() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 378
def test_state
  assert_not_nil(@crossing.state)
end
test_time() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 350
def test_time
  assert_kind_of(Integer, @crossing.time)
end
test_x() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 354
def test_x
  assert_kind_of(Float, @crossing.x)
end
test_x_root() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 362
def test_x_root
  assert_kind_of(Float, @crossing.x_root)
end
test_y() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 358
def test_y
  assert_kind_of(Float, @crossing.y)
end
test_y_root() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 366
def test_y_root
  assert_kind_of(Float, @crossing.y_root)
end