Class: RubyQt6::QtCore::QRect

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

Overview

Instance Method Summary collapse

Constructor Details

#initializeQRect #initialize(x, y, width, height) ⇒ QRect #initialize(top_left, bottom_right) ⇒ QRect #initialize(top_left, size) ⇒ QRect

Overloads:

  • #initialize(x, y, width, height) ⇒ QRect

    Parameters:

    • x (Integer)
    • y (Integer)
    • width (Integer)
    • height (Integer)
  • #initialize(top_left, bottom_right) ⇒ QRect

    Parameters:

  • #initialize(top_left, size) ⇒ QRect

    Parameters:



27
28
29
30
31
32
# File 'lib/qt6/qtcore/qrect.rb', line 27

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