Class: Qt::Point

Inherits:
Base show all
Defined in:
lib/qt/qtruby4.rb

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

#inspectObject



1177
1178
1179
1180
# File 'lib/qt/qtruby4.rb', line 1177

def inspect
	str = super
	str.sub(/>$/, " x=%d, y=%d>" % [x, y])
end

#pretty_print(pp) ⇒ Object



1182
1183
1184
1185
# File 'lib/qt/qtruby4.rb', line 1182

def pretty_print(pp)
	str = to_s
	pp.text str.sub(/>$/, "\n x=%d,\n y=%d>" % [x, y])
end