Class: Qt::Size
Instance Method Summary
collapse
Methods inherited from Base
#%, #&, #*, #**, #+, #-, #-@, #/, #<, #<<, #<=, #==, #>, #>=, #>>, #^, #methods, #protected_methods, #public_methods, q_classinfo, q_signal, q_slot, signals, #singleton_methods, slots, #|, #~
Instance Method Details
1331
1332
1333
1334
|
# File 'lib/qt/qtruby4.rb', line 1331
def inspect
str = super
str.sub(/>$/, " width=%d, height=%d>" % [width, height])
end
|
#pretty_print(pp) ⇒ Object
1336
1337
1338
1339
|
# File 'lib/qt/qtruby4.rb', line 1336
def pretty_print(pp)
str = to_s
pp.text str.sub(/>$/, "\n width=%d,\n height=%d>" % [width, height])
end
|