Ejemplo n.º 1
0
        void SetupHooks()
        {
            PrintHook = new LibPDPrintHook(RaisePrintEvent);
            Native.Messaging.set_printhook(PrintHook);

            BangHook = new LibPDBangHook(RaiseBangEvent);
            Native.Messaging.set_banghook(BangHook);

            FloatHook = new LibPDFloatHook(RaiseFloatEvent);
            Native.Messaging.set_floathook(FloatHook);

            SymbolHook = new LibPDSymbolHook(RaiseSymbolEvent);
            Native.Messaging.set_symbolhook(SymbolHook);

            ListHook = new LibPDListHook(RaiseListEvent);
            Native.Messaging.set_listhook(ListHook);

            MessageHook = new LibPDMessageHook(RaiseMessageEvent);
            Native.Messaging.set_messagehook(MessageHook);
        }
Ejemplo n.º 2
0
        private static void SetupHooks()
        {
            //create the delegate with the method to call
            PrintHook = new LibPDPrintHook(RaisePrintEvent);
            //set_printhook(PrintHook);

            BangHook = new LibPDBangHook(RaiseBangEvent);
            set_banghook(BangHook);

            FloatHook = new LibPDFloatHook(RaiseFloatEvent);
            set_floathook(FloatHook);

            SymbolHook = new LibPDSymbolHook(RaiseSymbolEvent);
            set_symbolhook(SymbolHook);

            ListHook = new LibPDListHook(RaiseListEvent);
            set_listhook(ListHook);

            MessageHook = new LibPDMessageHook(RaiseMessageEvent);
            set_messagehook(MessageHook);
        }
Ejemplo n.º 3
0
		private static void SetupHooks()
		{
			//create the delegate with the method to call
			PrintHook = new LibPDPrintHook(RaisePrintEvent);
			set_printhook(PrintHook);
			
			BangHook = new LibPDBangHook(RaiseBangEvent);
			set_banghook(BangHook);

			FloatHook = new LibPDFloatHook(RaiseFloatEvent);
			set_floathook(FloatHook);

			SymbolHook = new LibPDSymbolHook(RaiseSymbolEvent);
			set_symbolhook(SymbolHook);
			
			ListHook = new LibPDListHook(RaiseListEvent);
			set_listhook(ListHook);
			
			MessageHook = new LibPDMessageHook(RaiseMessageEvent);
			set_messagehook(MessageHook);
			
		}
Ejemplo n.º 4
0
		private static extern  void set_banghook(LibPDBangHook hook) ;
Ejemplo n.º 5
0
 private static extern void set_banghook(LibPDBangHook hook);
Ejemplo n.º 6
0
 public static extern void set_banghook(LibPDBangHook hook);