public DocumentAdapter(IDocumentImplementor 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 IntPtr GetAttributes_cb(IntPtr inst) { try { IDocumentImplementor __obj = GLib.Object.GetObject(inst, false) as IDocumentImplementor; Atk.Attribute[] __result; __result = __obj.Attributes; return(new GLib.SList(__result, typeof(Atk.Attribute), false, false) == null ? IntPtr.Zero : new GLib.SList(__result, typeof(Atk.Attribute), false, false).Handle); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static IntPtr GetLocale_cb(IntPtr inst) { try { IDocumentImplementor __obj = GLib.Object.GetObject(inst, false) as IDocumentImplementor; string __result; __result = __obj.Locale; return(GLib.Marshaller.StringToPtrGStrdup(__result)); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static IntPtr GetTheDocument_cb(IntPtr inst) { try { IDocumentImplementor __obj = GLib.Object.GetObject(inst, false) as IDocumentImplementor; IntPtr __result; __result = __obj.TheDocument; return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
static bool SetAttributeValue_cb(IntPtr inst, IntPtr attribute_name, IntPtr attribute_value) { try { IDocumentImplementor __obj = GLib.Object.GetObject(inst, false) as IDocumentImplementor; bool __result; __result = __obj.SetAttributeValue(GLib.Marshaller.Utf8PtrToString(attribute_name), GLib.Marshaller.Utf8PtrToString(attribute_value)); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }
public DocumentAdapter (IDocumentImplementor 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; }