Class: RubyQt6::QtCore::Private::Signal
- Inherits:
-
Object
- Object
- RubyQt6::QtCore::Private::Signal
- Defined in:
- lib/qt6/qtcore/private/signal.rb
Instance Method Summary collapse
- #connect(receiver, metamethod) ⇒ Object
- #disconnect(receiver, metamethod) ⇒ Object
- #emit(*args) ⇒ Object
-
#initialize(sender, metamethod) ⇒ Signal
constructor
A new instance of Signal.
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, ) @sender = sender = end |
Instance Method Details
#connect(receiver, metamethod) ⇒ Object
12 13 14 |
# File 'lib/qt6/qtcore/private/signal.rb', line 12 def connect(receiver, ) QtCore::Private::SignalManager.connect(@sender, , receiver, ) end |
#disconnect(receiver, metamethod) ⇒ Object
16 17 18 |
# File 'lib/qt6/qtcore/private/signal.rb', line 16 def disconnect(receiver, ) QtCore::Private::SignalManager.disconnect(@sender, , receiver, ) end |
#emit(*args) ⇒ Object
20 21 22 |
# File 'lib/qt6/qtcore/private/signal.rb', line 20 def emit(*args) QtCore::Private::SignalManager.emit(@sender, , *args) end |