コード例 #1
0
 public AwesomeMenuItem(global::UIKit.UIImage img, global::UIKit.UIImage himg, global::UIKit.UIImage cimg, global::UIKit.UIImage hcimg)
     : base(NSObjectFlag.Empty)
 {
     if (img == null)
     {
         throw new ArgumentNullException("img");
     }
     if (himg == null)
     {
         throw new ArgumentNullException("himg");
     }
     if (cimg == null)
     {
         throw new ArgumentNullException("cimg");
     }
     if (hcimg == null)
     {
         throw new ArgumentNullException("hcimg");
     }
     IsDirectBinding = GetType().Assembly == global::ApiDefinition.Messaging.this_assembly;
     if (IsDirectBinding)
     {
         InitializeHandle(ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(this.Handle, Selector.GetHandle("initWithImage:highlightedImage:ContentImage:highlightedContentImage:"), img.Handle, himg.Handle, cimg.Handle, hcimg.Handle), "initWithImage:highlightedImage:ContentImage:highlightedContentImage:");
     }
     else
     {
         InitializeHandle(ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(this.SuperHandle, Selector.GetHandle("initWithImage:highlightedImage:ContentImage:highlightedContentImage:"), img.Handle, himg.Handle, cimg.Handle, hcimg.Handle), "initWithImage:highlightedImage:ContentImage:highlightedContentImage:");
     }
 }
コード例 #2
0
ファイル: PrinterSDK.g.cs プロジェクト: cplusd/git-Binding
 public virtual void PrintImage(global::UIKit.UIImage image)
 {
     if (image == null)
     {
         throw new ArgumentNullException("image");
     }
     if (IsDirectBinding)
     {
         global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("printImage:"), image.Handle);
     }
     else
     {
         global::ApiDefinition.Messaging.void_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("printImage:"), image.Handle);
     }
 }
コード例 #3
0
 public new virtual global::UIKit.UIImage ImageByFilteringImage(global::UIKit.UIImage imageToFilter)
 {
     if (imageToFilter == null)
     {
         throw new ArgumentNullException("imageToFilter");
     }
     if (IsDirectBinding)
     {
         return(Runtime.GetNSObject <global::UIKit.UIImage> (global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("imageByFilteringImage:"), imageToFilter.Handle)));
     }
     else
     {
         return(Runtime.GetNSObject <global::UIKit.UIImage> (global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("imageByFilteringImage:"), imageToFilter.Handle)));
     }
 }
コード例 #4
0
 public AGEmojiPageView(CGRect frame, global::UIKit.UIImage backSpaceButtonImage, CGSize buttonSize, nuint rows, nuint columns)
     : base(NSObjectFlag.Empty)
 {
     if (backSpaceButtonImage == null)
     {
         throw new ArgumentNullException("backSpaceButtonImage");
     }
     IsDirectBinding = GetType().Assembly == global::ApiDefinitions.Messaging.this_assembly;
     if (IsDirectBinding)
     {
         InitializeHandle(global::ApiDefinitions.Messaging.IntPtr_objc_msgSend_CGRect_IntPtr_CGSize_nuint_nuint(this.Handle, Selector.GetHandle("initWithFrame:backSpaceButtonImage:buttonSize:rows:columns:"), frame, backSpaceButtonImage.Handle, buttonSize, rows, columns), "initWithFrame:backSpaceButtonImage:buttonSize:rows:columns:");
     }
     else
     {
         InitializeHandle(global::ApiDefinitions.Messaging.IntPtr_objc_msgSendSuper_CGRect_IntPtr_CGSize_nuint_nuint(this.SuperHandle, Selector.GetHandle("initWithFrame:backSpaceButtonImage:buttonSize:rows:columns:"), frame, backSpaceButtonImage.Handle, buttonSize, rows, columns), "initWithFrame:backSpaceButtonImage:buttonSize:rows:columns:");
     }
 }
コード例 #5
0
 public TOCropViewController(global::UIKit.UIImage image)
     : base(NSObjectFlag.Empty)
 {
     if (image == null)
     {
         throw new ArgumentNullException("image");
     }
     IsDirectBinding = GetType().Assembly == global::ApiDefinition.Messaging.this_assembly;
     if (IsDirectBinding)
     {
         InitializeHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("initWithImage:"), image.Handle), "initWithImage:");
     }
     else
     {
         InitializeHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("initWithImage:"), image.Handle), "initWithImage:");
     }
 }
コード例 #6
0
 public TOActivityCroppedImageProvider(global::UIKit.UIImage image, CGRect cropFrame, global::System.nint angle)
     : base(NSObjectFlag.Empty)
 {
     if (image == null)
     {
         throw new ArgumentNullException("image");
     }
     IsDirectBinding = GetType().Assembly == global::ApiDefinition.Messaging.this_assembly;
     if (IsDirectBinding)
     {
         InitializeHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr_CGRect_nint(this.Handle, Selector.GetHandle("initWithImage:cropFrame:angle:"), image.Handle, cropFrame, angle), "initWithImage:cropFrame:angle:");
     }
     else
     {
         InitializeHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr_CGRect_nint(this.SuperHandle, Selector.GetHandle("initWithImage:cropFrame:angle:"), image.Handle, cropFrame, angle), "initWithImage:cropFrame:angle:");
     }
 }
コード例 #7
0
 public GPUImagePicture(global::UIKit.UIImage newImageSource)
     : base(NSObjectFlag.Empty)
 {
     if (newImageSource == null)
     {
         throw new ArgumentNullException("newImageSource");
     }
     IsDirectBinding = GetType().Assembly == global::ApiDefinition.Messaging.this_assembly;
     if (IsDirectBinding)
     {
         InitializeHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("initWithImage:"), newImageSource.Handle), "initWithImage:");
     }
     else
     {
         InitializeHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("initWithImage:"), newImageSource.Handle), "initWithImage:");
     }
 }
コード例 #8
0
        public new virtual CGImage NewCGImageByFilteringImage(global::UIKit.UIImage imageToFilter)
        {
            if (imageToFilter == null)
            {
                throw new ArgumentNullException("imageToFilter");
            }
            IntPtr ret;

            if (IsDirectBinding)
            {
                ret = global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr(this.Handle, Selector.GetHandle("newCGImageByFilteringImage:"), imageToFilter.Handle);
            }
            else
            {
                ret = global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_IntPtr(this.SuperHandle, Selector.GetHandle("newCGImageByFilteringImage:"), imageToFilter.Handle);
            }
            return(ret == IntPtr.Zero ? null : new global::CoreGraphics.CGImage(ret));
        }
コード例 #9
0
        public static MGLAnnotationImage AnnotationImageWithImage(global::UIKit.UIImage image, string reuseIdentifier)
        {
            if (image == null)
            {
                throw new ArgumentNullException("image");
            }
            if (reuseIdentifier == null)
            {
                throw new ArgumentNullException("reuseIdentifier");
            }
            var nsreuseIdentifier = NSString.CreateNative(reuseIdentifier);

            MGLAnnotationImage ret;

            ret = Runtime.GetNSObject <MGLAnnotationImage> (global::ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(class_ptr, Selector.GetHandle("annotationImageWithImage:reuseIdentifier:"), image.Handle, nsreuseIdentifier));
            NSString.ReleaseNative(nsreuseIdentifier);

            return(ret);
        }
コード例 #10
0
 public virtual void AddAnnotation(global::CoreLocation.CLLocationCoordinate2D location, global::UIKit.UIImage image, CGPoint offset)
 {
     throw new PlatformNotSupportedException("The WatchKit framework has been removed from iOS");
 }
コード例 #11
0
 public virtual void SetBackgroundImage(global::UIKit.UIImage image)
 {
     throw new PlatformNotSupportedException(Constants.WatchKitRemoved);
 }
コード例 #12
0
 public virtual void AddMenuItem(global::UIKit.UIImage image, string title, Selector action)
 {
     throw new PlatformNotSupportedException(Constants.WatchKitRemoved);
 }
コード例 #13
0
 public virtual void AddAnnotation(global::CoreLocation.CLLocationCoordinate2D location, global::UIKit.UIImage image, CGPoint offset)
 {
     throw new PlatformNotSupportedException(Constants.WatchKitRemoved);
 }
コード例 #14
0
 public static void DidCropToImage(this ITOCropViewControllerDelegate This, TOCropViewController cropViewController, global::UIKit.UIImage image, CGRect cropRect, global::System.nint angle)
 {
     if (cropViewController == null)
     {
         throw new ArgumentNullException("cropViewController");
     }
     if (image == null)
     {
         throw new ArgumentNullException("image");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr_CGRect_nint(This.Handle, Selector.GetHandle("cropViewController:didCropToImage:withRect:angle:"), cropViewController.Handle, image.Handle, cropRect, angle);
 }
コード例 #15
0
 public virtual void DidCropToImage(TOCropViewController cropViewController, global::UIKit.UIImage image, CGRect cropRect, global::System.nint angle)
 {
     throw new You_Should_Not_Call_base_In_This_Method();
 }
コード例 #16
0
 public virtual void AddMenuItem(global::UIKit.UIImage image, string title, Selector action)
 {
     throw new PlatformNotSupportedException("The WatchKit framework has been removed from iOS");
 }
コード例 #17
0
 public virtual bool AddCachedImage(global::UIKit.UIImage image, string name)
 {
     throw new PlatformNotSupportedException(Constants.WatchKitRemoved);
 }
コード例 #18
0
 public virtual void SetImage(global::UIKit.UIImage image)
 {
     throw new PlatformNotSupportedException("The WatchKit framework has been removed from iOS");
 }
コード例 #19
0
 public static global::UIKit.UIImage CroppedImageWithFrame(this global::UIKit.UIImage This, CGRect frame, global::System.nint angle)
 {
     return(Runtime.GetNSObject <global::UIKit.UIImage> (global::ApiDefinition.Messaging.IntPtr_objc_msgSend_CGRect_nint(This.Handle, Selector.GetHandle("croppedImageWithFrame:angle:"), frame, angle)));
 }
コード例 #20
0
        public unsafe virtual void DismissAnimatedFromParentViewController(global::UIKit.UIViewController viewController, global::UIKit.UIImage image, CGRect frame, [BlockProxy(typeof(ObjCRuntime.Trampolines.SDAction))] global::System.Action completion)
        {
            if (viewController == null)
            {
                throw new ArgumentNullException("viewController");
            }
            if (image == null)
            {
                throw new ArgumentNullException("image");
            }
            if (completion == null)
            {
                throw new ArgumentNullException("completion");
            }
            BlockLiteral *block_ptr_completion;
            BlockLiteral  block_completion;

            block_completion     = new BlockLiteral();
            block_ptr_completion = &block_completion;
            block_completion.SetupBlock(Trampolines.SDAction.Handler, completion);

            if (IsDirectBinding)
            {
                global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr_CGRect_IntPtr(this.Handle, Selector.GetHandle("dismissAnimatedFromParentViewController:withCroppedImage:toFrame:completion:"), viewController.Handle, image.Handle, frame, (IntPtr)block_ptr_completion);
            }
            else
            {
                global::ApiDefinition.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_CGRect_IntPtr(this.SuperHandle, Selector.GetHandle("dismissAnimatedFromParentViewController:withCroppedImage:toFrame:completion:"), viewController.Handle, image.Handle, frame, (IntPtr)block_ptr_completion);
            }
            block_ptr_completion->CleanupBlock();
        }
コード例 #21
0
 public virtual bool AddCachedImage(global::UIKit.UIImage image, string name)
 {
     throw new PlatformNotSupportedException("The WatchKit framework has been removed from iOS");
 }