Class: RubyQt6::QtCore::QSize

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

Overview

Instance Method Summary collapse

Constructor Details

#initializeQSize #initialize(width, height) ⇒ QSize

Overloads:

  • #initialize(width, height) ⇒ QSize

    Parameters:

    • width (Integer)
    • height (Integer)


17
18
19
20
21
22
# File 'lib/qt6/qtcore/qsize.rb', line 17

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