add_callback_symbol


Description:

[ Version ( since = "3.10" ) ]
public void add_callback_symbol (string callback_name, Callback callback_symbol)

Adds the callback_symbol to the scope of this under the given callback_name.

Using this function overrides the behavior of connect_signals for any callback symbols that are added. Using this method allows for better encapsulation as it does not require that callback symbols be declared in the global namespace.

Parameters:

this

a Builder

callback_name

The name of the callback, as expected in the XML

callback_symbol

The callback pointer




2022 vala-language.org