Class: Qt::Font
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
633
634
635
636
637
|
# File 'lib/qt/qtruby4.rb', line 633
def inspect
str = super
str.sub(/>$/, " family=%s, pointSize=%d, weight=%d, italic=%s, bold=%s, underline=%s, strikeOut=%s>" %
[family.inspect, pointSize, weight, italic, bold, underline, strikeOut])
end
|
#pretty_print(pp) ⇒ Object
639
640
641
642
643
|
# File 'lib/qt/qtruby4.rb', line 639
def pretty_print(pp)
str = to_s
pp.text str.sub(/>$/, "\n family=%s,\n pointSize=%d,\n weight=%d,\n italic=%s,\n bold=%s,\n underline=%s,\n strikeOut=%s>" %
[family.inspect, pointSize, weight, italic, bold, underline, strikeOut])
end
|