コード例 #1
0
 static void GetImageSize_cb(IntPtr inst, out int width, out int height)
 {
     try {
         IImageImplementor __obj = GLib.Object.GetObject(inst, false) as IImageImplementor;
         __obj.GetImageSize(out width, out height);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
コード例 #2
0
 static void GetImagePosition_cb(IntPtr inst, out int x, out int y, int coord_type)
 {
     try {
         IImageImplementor __obj = GLib.Object.GetObject(inst, false) as IImageImplementor;
         __obj.GetImagePosition(out x, out y, (Atk.CoordType)coord_type);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
コード例 #3
0
 public ImageAdapter(IImageImplementor 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;
 }
コード例 #4
0
 static IntPtr GetImageLocale_cb(IntPtr inst)
 {
     try {
         IImageImplementor __obj = GLib.Object.GetObject(inst, false) as IImageImplementor;
         string            __result;
         __result = __obj.ImageLocale;
         return(GLib.Marshaller.StringToPtrGStrdup(__result));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
コード例 #5
0
 static bool SetImageDescription_cb(IntPtr inst, IntPtr description)
 {
     try {
         IImageImplementor __obj = GLib.Object.GetObject(inst, false) as IImageImplementor;
         bool __result;
         __result = __obj.SetImageDescription(GLib.Marshaller.Utf8PtrToString(description));
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
コード例 #6
0
ファイル: Image.cs プロジェクト: retran/old-projects-backup
 /// <summary>
 /// Создает новую модель изображения.
 /// </summary>
 /// <param name="services"> Фасад сервисов </param>
 /// <param name="implementor"> Имплементатор </param>
 public Image(ServiceFacade services, IImageImplementor implementor)
 {
     _services = services;
     _implementor = implementor;
 }
コード例 #7
0
 public void Delete(IImageImplementor image)
 {
     _context.DeleteObject(image);
     _context.SaveChanges();
 }
コード例 #8
0
ファイル: ImageAdapter.cs プロジェクト: akrisiun/gtk-sharp
		public ImageAdapter (IImageImplementor 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;
		}