Пример #1
0
 public HypertextAdapter(IHypertextImplementor 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 GetLink_cb(IntPtr inst, int link_index)
 {
     try {
         IHypertextImplementor __obj = GLib.Object.GetObject(inst, false) as IHypertextImplementor;
         Atk.Hyperlink         __result;
         __result = __obj.GetLink(link_index);
         return(__result == null ? IntPtr.Zero : __result.Handle);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Пример #3
0
 static int GetLinkIndex_cb(IntPtr inst, int char_index)
 {
     try {
         IHypertextImplementor __obj = GLib.Object.GetObject(inst, false) as IHypertextImplementor;
         int __result;
         __result = __obj.GetLinkIndex(char_index);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Пример #4
0
		public HypertextAdapter (IHypertextImplementor 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;
		}