Class: RubyQt6::QtCore::QMargins

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

Overview

Instance Method Summary collapse

Constructor Details

#initializeQMargins #initialize(left, top, right, bottom) ⇒ QMargins

Overloads:

  • #initialize(left, top, right, bottom) ⇒ QMargins

    Parameters:

    • left (Integer)
    • top (Integer)
    • right (Integer)
    • bottom (Integer)


19
20
21
22
23
24
# File 'lib/qt6/qtcore/qmargins.rb', line 19

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