Class: RubyQt6::QtCore::QLine

Inherits:
Object
  • Object
show all
Defined in:
lib/qt6/qtcore/qline.rb

Overview

Instance Method Summary collapse

Constructor Details

#initializeQLine #initialize(x1, y1, x2, y2) ⇒ QLine #initialize(p1, p2) ⇒ QLine

Overloads:

  • #initialize(x1, y1, x2, y2) ⇒ QLine

    Parameters:

    • x1 (Integer)
    • y1 (Integer)
    • x2 (Integer)
    • y2 (Integer)
  • #initialize(p1, p2) ⇒ QLine

    Parameters:



23
24
25
26
27
28
# File 'lib/qt6/qtcore/qline.rb', line 23

def initialize(*args)
  case args.size
  when 4 then _initialize(*args.map(&:to_i))
  else _initialize(*args)
  end
end