コード例 #1
0
 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;
 }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
 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;
     }
 }
コード例 #4
0
 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;
     }
 }
コード例 #5
0
 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;
     }
 }
コード例 #6
0
ファイル: DocumentAdapter.cs プロジェクト: akrisiun/gtk-sharp
		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;
		}