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); } }
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); } }
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); } }
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; }
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; } }
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; } }
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; } }
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; }