Class: RubyQt6::QtCore::Private::Signal

Inherits:
Object
  • Object
show all
Defined in:
lib/qt6/qtcore/private/signal.rb

Instance Method Summary collapse

Constructor Details

#initialize(sender, metamethod) ⇒ Signal

Returns a new instance of Signal.



7
8
9
10
# File 'lib/qt6/qtcore/private/signal.rb', line 7

def initialize(sender, metamethod)
  @sender = sender
  @metamethod = metamethod
end

Instance Method Details

#connect(receiver, metamethod) ⇒ Object



12
13
14
# File 'lib/qt6/qtcore/private/signal.rb', line 12

def connect(receiver, metamethod)
  QtCore::Private::SignalManager.connect(@sender, @metamethod, receiver, metamethod)
end

#disconnect(receiver, metamethod) ⇒ Object



16
17
18
# File 'lib/qt6/qtcore/private/signal.rb', line 16

def disconnect(receiver, metamethod)
  QtCore::Private::SignalManager.disconnect(@sender, @metamethod, receiver, metamethod)
end

#emit(*args) ⇒ Object



20
21
22
# File 'lib/qt6/qtcore/private/signal.rb', line 20

def emit(*args)
  QtCore::Private::SignalManager.emit(@sender, @metamethod, *args)
end