Class gobject.GObject
Defined in: jsgtk_merge_for_doc.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Base class of all widgets, handle signal binding and triggering
|
Method Attributes | Method Name and Description |
---|---|
connect(detailedSignal, handler)
Listen to the signal being triggered
|
|
disconnect(signal)
Disconnect the function from the signal
|
|
emit(detailedSignal, arguments)
Trigger the the registered signal
|
Method Detail
connect(detailedSignal, handler)
Listen to the signal being triggered
- Parameters:
- {String} detailedSignal
- The name of signal
- {Function} handler
- function to be executed when the signal is triggered
- Returns:
- The id of handler
disconnect(signal)
Disconnect the function from the signal
- Parameters:
- {String} signal
- handlerId id
emit(detailedSignal, arguments)
Trigger the the registered signal
- Parameters:
- {String} detailedSignal
- The name of signal
- {Arguments} arguments
- value that will be used as argument by handler