class TestGdkEvent::TestTouch

Public Instance Methods

event() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 166
def event
  @touch
end
setup() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 162
def setup
  @touch = Gdk::EventTouch.new(:touch_begin)
end
test_axes() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 182
def test_axes
  assert_nothing_raised do
    @touch.axes
  end
end
test_device() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 216
def test_device
  assert_nothing_raised do
    @touch.device
  end
end
test_emulating_pointer() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 212
def test_emulating_pointer
  assert_boolean(@touch.emulating_pointer?)
end
test_state() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 188
def test_state
  assert_not_nil(@touch.state)
end
test_time() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 170
def test_time
  assert_kind_of(Integer, @touch.time)
end
test_touch_begin() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 192
def test_touch_begin
  assert_equal("GDK_TOUCH_BEGIN",
               Gdk::EventTouch.new(:touch_begin).type.name)
end
test_touch_cancel() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 202
def test_touch_cancel
  assert_equal("GDK_TOUCH_CANCEL",
               Gdk::EventTouch.new(:touch_cancel).type.name)
end
test_touch_end() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 207
def test_touch_end
  assert_equal("GDK_TOUCH_END",
               Gdk::EventTouch.new(:touch_end).type.name)
end
test_touch_update() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 197
def test_touch_update
  assert_equal("GDK_TOUCH_UPDATE",
               Gdk::EventTouch.new(:touch_update).type.name)
end
test_x() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 174
def test_x
  assert_kind_of(Float, @touch.x)
end
test_x_root() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 222
def test_x_root
  assert_kind_of(Float, @touch.x_root)
end
test_y() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 178
def test_y
  assert_kind_of(Float, @touch.y)
end
test_y_root() click to toggle source
# File gdk3/test/test-gdk-event.rb, line 226
def test_y_root
  assert_kind_of(Float, @touch.y_root)
end