Class: Qt::MetaObject

Inherits:
Object show all
Defined in:
lib/ruber/qt_sugar.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) each_method



613
614
615
616
617
618
# File 'lib/ruber/qt_sugar.rb', line 613

def each_method
  if block_given?
    method_count.times{|i| yield method i}
  else self.enum_for(:each_method)
  end
end

- (Object) each_signal



593
594
595
596
597
598
599
600
601
# File 'lib/ruber/qt_sugar.rb', line 593

def each_signal
  if block_given?
    method_count.times do |i|
      m = method i
      yield m if m.method_type == Qt::MetaMethod::Signal
    end
  else self.enum_for(:each_signal)
  end
end

- (Object) each_slot



603
604
605
606
607
608
609
610
611
# File 'lib/ruber/qt_sugar.rb', line 603

def each_slot
  if block_given?
    method_count.times do |i|
      m = method i
      yield m if m.method_type == Qt::MetaMethod::Slot
    end
  else self.enum_for(:each_slot)
  end
end