static void RemoveFocusHandler_cb(IntPtr inst, uint handler_id)
 {
     try {
         IComponentImplementor __obj = GLib.Object.GetObject(inst, false) as IComponentImplementor;
         __obj.RemoveFocusHandler(handler_id);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
 static void GetSize_cb(IntPtr inst, out int width, out int height)
 {
     try {
         IComponentImplementor __obj = GLib.Object.GetObject(inst, false) as IComponentImplementor;
         __obj.GetSize(out width, out height);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
 static void GetPosition_cb(IntPtr inst, out int x, out int y, int coord_type)
 {
     try {
         IComponentImplementor __obj = GLib.Object.GetObject(inst, false) as IComponentImplementor;
         __obj.GetPosition(out x, out y, (Atk.CoordType)coord_type);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
 public ComponentAdapter(IComponentImplementor 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 RefAccessibleAtPoint_cb(IntPtr inst, int x, int y, int coord_type)
 {
     try {
         IComponentImplementor __obj = GLib.Object.GetObject(inst, false) as IComponentImplementor;
         Atk.Object            __result;
         __result = __obj.RefAccessibleAtPoint(x, y, (Atk.CoordType)coord_type);
         return(__result == null ? IntPtr.Zero : __result.OwnedHandle);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
 static bool Contains_cb(IntPtr inst, int x, int y, int coord_type)
 {
     try {
         IComponentImplementor __obj = GLib.Object.GetObject(inst, false) as IComponentImplementor;
         bool __result;
         __result = __obj.Contains(x, y, (Atk.CoordType)coord_type);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
 static double GetAlpha_cb(IntPtr inst)
 {
     try {
         IComponentImplementor __obj = GLib.Object.GetObject(inst, false) as IComponentImplementor;
         double __result;
         __result = __obj.Alpha;
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
 static int GetLayer_cb(IntPtr inst)
 {
     try {
         IComponentImplementor __obj = GLib.Object.GetObject(inst, false) as IComponentImplementor;
         Atk.Layer             __result;
         __result = __obj.Layer;
         return((int)__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
 static bool SetSize_cb(IntPtr inst, int width, int height)
 {
     try {
         IComponentImplementor __obj = GLib.Object.GetObject(inst, false) as IComponentImplementor;
         bool __result;
         __result = __obj.SetSize(width, height);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
 static uint AddFocusHandler_cb(IntPtr inst, AtkSharp.FocusHandlerNative handler)
 {
     try {
         IComponentImplementor __obj = GLib.Object.GetObject(inst, false) as IComponentImplementor;
         uint __result;
         AtkSharp.FocusHandlerInvoker handler_invoker = new AtkSharp.FocusHandlerInvoker(handler);
         __result = __obj.AddFocusHandler(handler_invoker.Handler);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Example #11
0
		public ComponentAdapter (IComponentImplementor 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;
		}