예제 #1
0
 static void DeletedText_cb(IntPtr inst, uint position, uint n_chars)
 {
     try {
         EntryBuffer __obj = GLib.Object.GetObject(inst, false) as EntryBuffer;
         __obj.OnDeletedText(position, n_chars);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
예제 #2
0
 static void InsertedText_cb(IntPtr inst, uint position, IntPtr chars, uint n_chars)
 {
     try {
         EntryBuffer __obj = GLib.Object.GetObject(inst, false) as EntryBuffer;
         __obj.OnInsertedText(position, GLib.Marshaller.Utf8PtrToString(chars), n_chars);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
예제 #3
0
 static uint DeleteText_cb(IntPtr inst, uint position, uint n_chars)
 {
     try {
         EntryBuffer __obj = GLib.Object.GetObject(inst, false) as EntryBuffer;
         uint        __result;
         __result = __obj.OnDeleteText(position, n_chars);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
예제 #4
0
 static uint GetLength_cb(IntPtr inst)
 {
     try {
         EntryBuffer __obj = GLib.Object.GetObject(inst, false) as EntryBuffer;
         uint        __result;
         __result = __obj.OnGetLength();
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
예제 #5
0
 static IntPtr GetText_cb(IntPtr inst, out UIntPtr n_bytes)
 {
     try {
         EntryBuffer __obj = GLib.Object.GetObject(inst, false) as EntryBuffer;
         string      __result;
         ulong       myn_bytes;
         __result = __obj.OnGetText(out myn_bytes);
         n_bytes  = new UIntPtr(myn_bytes);
         return(GLib.Marshaller.StringToPtrGStrdup(__result));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }