static void CutText_cb(IntPtr inst, int start_pos, int end_pos)
 {
     try {
         IEditableTextImplementor __obj = GLib.Object.GetObject(inst, false) as IEditableTextImplementor;
         __obj.CutText(start_pos, end_pos);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
 static void InsertText_cb(IntPtr inst, IntPtr str1ng, int length, ref int position)
 {
     try {
         IEditableTextImplementor __obj = GLib.Object.GetObject(inst, false) as IEditableTextImplementor;
         __obj.InsertText(GLib.Marshaller.Utf8PtrToString(str1ng), ref position);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
 static void SetTextContents_cb(IntPtr inst, IntPtr str1ng)
 {
     try {
         IEditableTextImplementor __obj = GLib.Object.GetObject(inst, false) as IEditableTextImplementor;
         __obj.TextContents = GLib.Marshaller.Utf8PtrToString(str1ng);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
 static void PasteText_cb(IntPtr inst, int position)
 {
     try {
         IEditableTextImplementor __obj = GLib.Object.GetObject(inst, false) as IEditableTextImplementor;
         __obj.PasteText(position);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
 public EditableTextAdapter(IEditableTextImplementor 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;
 }
 static bool SetRunAttributes_cb(IntPtr inst, IntPtr attrib_set, int start_offset, int end_offset)
 {
     try {
         IEditableTextImplementor __obj = GLib.Object.GetObject(inst, false) as IEditableTextImplementor;
         bool __result;
         __result = __obj.SetRunAttributes(new GLib.SList(attrib_set), start_offset, end_offset);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Exemplo n.º 7
0
		public EditableTextAdapter (IEditableTextImplementor 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;
		}