예제 #1
0
 static void SelectRegion_cb(IntPtr inst, int start_pos, int end_pos)
 {
     try {
         IEditableImplementor __obj = GLib.Object.GetObject(inst, false) as IEditableImplementor;
         __obj.SelectRegion(start_pos, end_pos);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
예제 #2
0
 static void InsertText_cb(IntPtr inst, IntPtr new_text, int new_text_length, ref int position)
 {
     try {
         IEditableImplementor __obj = GLib.Object.GetObject(inst, false) as IEditableImplementor;
         __obj.InsertText(GLib.Marshaller.Utf8PtrToString(new_text), ref position);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
예제 #3
0
 static void SetPosition_cb(IntPtr inst, int position)
 {
     try {
         IEditableImplementor __obj = GLib.Object.GetObject(inst, false) as IEditableImplementor;
         __obj.Position = position;
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
예제 #4
0
 public EditableAdapter(IEditableImplementor implementor)
 {
     if (implementor == null)
     {
         throw new ArgumentNullException("implementor");
     }
     else if (!(implementor is GLib.Object))
     {
         throw new ArgumentException("implementor must be a subclass of GLib.Object");
     }
     this.implementor = implementor as GLib.Object;
 }
예제 #5
0
 static bool GetSelectionBounds_cb(IntPtr inst, out int start_pos, out int end_pos)
 {
     try {
         IEditableImplementor __obj = GLib.Object.GetObject(inst, false) as IEditableImplementor;
         bool __result;
         __result = __obj.GetSelectionBounds(out start_pos, out end_pos);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
예제 #6
0
 static IntPtr GetChars_cb(IntPtr inst, int start_pos, int end_pos)
 {
     try {
         IEditableImplementor __obj = GLib.Object.GetObject(inst, false) as IEditableImplementor;
         string __result;
         __result = __obj.GetChars(start_pos, end_pos);
         return(GLib.Marshaller.StringToPtrGStrdup(__result));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
예제 #7
0
 static int GetPosition_cb(IntPtr inst)
 {
     try {
         IEditableImplementor __obj = GLib.Object.GetObject(inst, false) as IEditableImplementor;
         int __result;
         __result = __obj.Position;
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
예제 #8
0
		public EditableAdapter (IEditableImplementor implementor)
		{
			if (implementor == null)
				throw new ArgumentNullException ("implementor");
			else if (!(implementor is GLib.Object))
				throw new ArgumentException ("implementor must be a subclass of GLib.Object");
			this.implementor = implementor as GLib.Object;
		}