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



1428
1429
1430
1431
# File 'lib/Qt/qtruby4.rb', line 1428

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

#keyValuesObject



1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
# File 'lib/Qt/qtruby4.rb', line 1416

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



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

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

#pretty_print(pp) ⇒ Object



1433
1434
1435
1436
# File 'lib/Qt/qtruby4.rb', line 1433

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