/// <summary> /// Initializes the signals /// </summary> protected override void InitSignals() { base.InitSignals(); ToggledCallback = new CallbackActionInt((val) => SendSignal(myToggledEventKey, new SignalArgsBool(val != 0))); AddInternalSignal(tguiWidget_connectBool(CPointer, Util.ConvertStringForC_ASCII("Changed"), ToggledCallback)); }
protected override void InitSignals() { base.InitSignals(); ValueChangedCallback = new CallbackActionInt((val) => SendSignal(myValueChangedEventKey, new SignalArgsInt(val))); AddInternalSignal(tguiWidget_connectInt(CPointer, Util.ConvertStringForC_ASCII("ValueChanged"), ValueChangedCallback)); }
/// <summary> /// Initializes the signals /// </summary> protected override void InitSignals() { base.InitSignals(); ItemSelectedCallback = new CallbackActionInt((index) => SendSignal(myItemSelectedEventKey, new SignalArgsInt(index))); AddInternalSignal(tguiWidget_connectInt(CPointer, Util.ConvertStringForC_ASCII("ItemSelected"), ItemSelectedCallback)); DoubleClickedCallback = new CallbackActionInt((index) => SendSignal(myDoubleClickedEventKey, new SignalArgsInt(index))); AddInternalSignal(tguiWidget_connectInt(CPointer, Util.ConvertStringForC_ASCII("DoubleClicked"), DoubleClickedCallback)); RightClickedCallback = new CallbackActionInt((index) => SendSignal(myRightClickedEventKey, new SignalArgsInt(index))); AddInternalSignal(tguiWidget_connectInt(CPointer, Util.ConvertStringForC_ASCII("RightClicked"), RightClickedCallback)); HeaderClickedCallback = new CallbackActionInt((index) => SendSignal(myHeaderClickedEventKey, new SignalArgsInt(index))); AddInternalSignal(tguiWidget_connectInt(CPointer, Util.ConvertStringForC_ASCII("HeaderClicked"), HeaderClickedCallback)); }
static extern protected uint tguiWidget_connectInt(IntPtr cPointer, IntPtr signalName, [MarshalAs(UnmanagedType.FunctionPtr)] CallbackActionInt func);