Example #1
0
        /// <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));
        }
Example #2
0
        protected override void InitSignals()
        {
            base.InitSignals();

            ValueChangedCallback = new CallbackActionInt((val) => SendSignal(myValueChangedEventKey, new SignalArgsInt(val)));
            AddInternalSignal(tguiWidget_connectInt(CPointer, Util.ConvertStringForC_ASCII("ValueChanged"), ValueChangedCallback));
        }
Example #3
0
        /// <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));
        }
Example #4
0
 static extern protected uint tguiWidget_connectInt(IntPtr cPointer, IntPtr signalName, [MarshalAs(UnmanagedType.FunctionPtr)] CallbackActionInt func);