Class: Qt::MetaEnum

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

Instance Method Summary collapse

Methods inherited from Base

#%, #&, #*, #**, #+, #-, #-@, #/, #<, #<<, #<=, #==, #>, #>=, #>>, #QCOMPARE, #QEXPECT_FAIL, #QFAIL, #QSKIP, #QTEST, #QVERIFY, #QVERIFY2, #QWARN, #^, ancestors, #is_a?, #methods, private_slots, #protected_methods, #public_methods, q_classinfo, q_signal, q_slot, signals, #singleton_methods, slots, #|, #~

Instance Method Details

#inspectObject



1411
1412
1413
1414
# File 'lib/Qt/qtruby4.rb', line 1411

def inspect
  str = super
  str.sub(/>$/, " scope=%s, name=%s, keyValues=Array (%d element(s))>" % [scope, name, keyValues.length])
end

#keyValuesObject



1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
# File 'lib/Qt/qtruby4.rb', line 1399

def keyValues()
  res = []
  for i in 0...keyCount()
    if flag?
      res.push "%s=0x%x" % [key(i), value(i)]
    else
      res.push "%s=%d" % [key(i), value(i)]
    end
  end
  return res
end

#name(*args) ⇒ Object



1395
1396
1397
# File 'lib/Qt/qtruby4.rb', line 1395

def name(*args)
  method_missing(:name, *args)
end

#pretty_print(pp) ⇒ Object



1416
1417
1418
1419
# File 'lib/Qt/qtruby4.rb', line 1416

def pretty_print(pp)
  str = to_s
  pp.text str.sub(/>$/, " scope=%s, name=%s, keyValues=Array (%d element(s))>" % [scope, name, keyValues.length])
end