コード例 #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
ファイル: EditableAdapter.cs プロジェクト: akrisiun/gtk-sharp
		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;
		}