示例#1
0
        public static void Hnk_setImage(this global::MonoTouch.UIKit.UIButton This, global::MonoTouch.UIKit.UIImage image, string key, global::MonoTouch.UIKit.UIControlState state)
        {
            if (image == null)
            {
                throw new ArgumentNullException("image");
            }
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }
            var nskey = NSString.CreateNative(key);

            ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr_UInt32(This.Handle, selHnk_setImageWithKeyForState_Handle, image.Handle, nskey, (UInt32)state);
            NSString.ReleaseNative(nskey);
        }
示例#2
0
        public static void ShowInViewController(global::MonoTouch.UIKit.UIViewController viewController, global::MonoTouch.UIKit.UIColor tintColor, global::MonoTouch.UIKit.UIFont font, global::MonoTouch.UIKit.UITextAlignment textAlignment, global::MonoTouch.UIKit.UIImage image, string message, global::System.Double duration)
        {
            if (viewController == null)
            {
                throw new ArgumentNullException("viewController");
            }
            if (tintColor == null)
            {
                throw new ArgumentNullException("tintColor");
            }
            if (font == null)
            {
                throw new ArgumentNullException("font");
            }
            if (image == null)
            {
                throw new ArgumentNullException("image");
            }
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }
            var nsmessage = NSString.CreateNative(message);

            ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_int_IntPtr_IntPtr_Double(class_ptr, selShowInViewControllerTintColorFontTextAlignmentImageMessageDuration_Handle, viewController.Handle, tintColor.Handle, font.Handle, (int)textAlignment, image.Handle, nsmessage, duration);
            NSString.ReleaseNative(nsmessage);
        }
示例#3
0
        public static CSNotificationView NotificationViewWithParentViewController(global::MonoTouch.UIKit.UIViewController viewController, global::MonoTouch.UIKit.UIColor tintColor, global::MonoTouch.UIKit.UIImage image, string message)
        {
            if (viewController == null)
            {
                throw new ArgumentNullException("viewController");
            }
            if (tintColor == null)
            {
                throw new ArgumentNullException("tintColor");
            }
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }
            var nsmessage = NSString.CreateNative(message);

            CSNotificationView ret;

            ret = Runtime.GetNSObject <CSNotificationView> (ApiDefinition.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(class_ptr, selNotificationViewWithParentViewControllerTintColorImageMessage_Handle, viewController.Handle, tintColor.Handle, image == null ? IntPtr.Zero : image.Handle, nsmessage));
            NSString.ReleaseNative(nsmessage);

            return(ret);
        }
示例#4
0
 public virtual void LoadAndDisplayRequest(GADRequest request, global::MonoTouch.UIKit.UIWindow window, global::MonoTouch.UIKit.UIImage image)
 {
     if (request == null)
     {
         throw new ArgumentNullException("request");
     }
     if (window == null)
     {
         throw new ArgumentNullException("window");
     }
     if (image == null)
     {
         throw new ArgumentNullException("image");
     }
     if (IsDirectBinding)
     {
         MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(this.Handle, selLoadAndDisplayRequestUsingWindowInitialImage_Handle, request.Handle, window.Handle, image.Handle);
     }
     else
     {
         MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(this.SuperHandle, selLoadAndDisplayRequestUsingWindowInitialImage_Handle, request.Handle, window.Handle, image.Handle);
     }
 }
示例#5
0
        public static void Hnk_setImage(this global::MonoTouch.UIKit.UIImageView This, global::MonoTouch.UIKit.UIImage image, string key, global::MonoTouch.UIKit.UIImage placeholder)
        {
            if (image == null)
            {
                throw new ArgumentNullException("image");
            }
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }
            if (placeholder == null)
            {
                throw new ArgumentNullException("placeholder");
            }
            var nskey = NSString.CreateNative(key);

            ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(This.Handle, selHnk_setImageWithKeyPlaceholder_Handle, image.Handle, nskey, placeholder.Handle);
            NSString.ReleaseNative(nskey);
        }
示例#6
0
        public unsafe static void Hnk_setImageFromURL(this global::MonoTouch.UIKit.UIImageView This, NSUrl url, global::MonoTouch.UIKit.UIImage placeholder, [BlockProxy(typeof(MonoTouch.ObjCRuntime.Trampolines.NIDCallbackblock))] Callbackblock successBlock, [BlockProxy(typeof(MonoTouch.ObjCRuntime.Trampolines.NIDCallbackblock))] Callbackblock failureBlock)
        {
            if (url == null)
            {
                throw new ArgumentNullException("url");
            }
            if (successBlock == null)
            {
                throw new ArgumentNullException("successBlock");
            }
            if (failureBlock == null)
            {
                throw new ArgumentNullException("failureBlock");
            }
            BlockLiteral *block_ptr_successBlock;
            BlockLiteral  block_successBlock;

            block_successBlock     = new BlockLiteral();
            block_ptr_successBlock = &block_successBlock;
            block_successBlock.SetupBlock(Trampolines.SDCallbackblock.Handler, successBlock);
            BlockLiteral *block_ptr_failureBlock;
            BlockLiteral  block_failureBlock;

            block_failureBlock     = new BlockLiteral();
            block_ptr_failureBlock = &block_failureBlock;
            block_failureBlock.SetupBlock(Trampolines.SDCallbackblock.Handler, failureBlock);

            ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(This.Handle, selHnk_setImageFromURLPlaceholderSuccessFailure_Handle, url.Handle, placeholder == null ? IntPtr.Zero : placeholder.Handle, (IntPtr)block_ptr_successBlock, (IntPtr)block_ptr_failureBlock);
            block_ptr_successBlock->CleanupBlock();
            block_ptr_failureBlock->CleanupBlock();
        }
示例#7
0
 public static void Hnk_setImageFromURL(this global::MonoTouch.UIKit.UIImageView This, NSUrl url, global::MonoTouch.UIKit.UIImage placeholder)
 {
     if (url == null)
     {
         throw new ArgumentNullException("url");
     }
     if (placeholder == null)
     {
         throw new ArgumentNullException("placeholder");
     }
     ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr(This.Handle, selHnk_setImageFromURLPlaceholder_Handle, url.Handle, placeholder.Handle);
 }
示例#8
0
        public unsafe static void Hnk_setImageFromFile(this global::MonoTouch.UIKit.UIImageView This, string path, global::MonoTouch.UIKit.UIImage placeholder, [BlockProxy(typeof(MonoTouch.ObjCRuntime.Trampolines.NIDCallbackblock))] Callbackblock successBlock, [BlockProxy(typeof(MonoTouch.ObjCRuntime.Trampolines.NIDCallbackblock))] Callbackblock failureBlock)
        {
            if (path == null)
            {
                throw new ArgumentNullException("path");
            }
            if (placeholder == null)
            {
                throw new ArgumentNullException("placeholder");
            }
            if (successBlock == null)
            {
                throw new ArgumentNullException("successBlock");
            }
            if (failureBlock == null)
            {
                throw new ArgumentNullException("failureBlock");
            }
            var           nspath = NSString.CreateNative(path);
            BlockLiteral *block_ptr_successBlock;
            BlockLiteral  block_successBlock;

            block_successBlock     = new BlockLiteral();
            block_ptr_successBlock = &block_successBlock;
            block_successBlock.SetupBlock(Trampolines.SDCallbackblock.Handler, successBlock);
            BlockLiteral *block_ptr_failureBlock;
            BlockLiteral  block_failureBlock;

            block_failureBlock     = new BlockLiteral();
            block_ptr_failureBlock = &block_failureBlock;
            block_failureBlock.SetupBlock(Trampolines.SDCallbackblock.Handler, failureBlock);

            ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(This.Handle, selHnk_setImageFromFilePlaceholderSuccessFailure_Handle, nspath, placeholder.Handle, (IntPtr)block_ptr_successBlock, (IntPtr)block_ptr_failureBlock);
            NSString.ReleaseNative(nspath);
            block_ptr_successBlock->CleanupBlock();
            block_ptr_failureBlock->CleanupBlock();
        }
示例#9
0
        public static void Hnk_setImageFromFile(this global::MonoTouch.UIKit.UIImageView This, string path, global::MonoTouch.UIKit.UIImage placeholder)
        {
            if (path == null)
            {
                throw new ArgumentNullException("path");
            }
            if (placeholder == null)
            {
                throw new ArgumentNullException("placeholder");
            }
            var nspath = NSString.CreateNative(path);

            ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr(This.Handle, selHnk_setImageFromFilePlaceholder_Handle, nspath, placeholder.Handle);
            NSString.ReleaseNative(nspath);
        }
示例#10
0
        public unsafe static void Hnk_setImageFromURL(this global::MonoTouch.UIKit.UIButton This, NSUrl URL, global::MonoTouch.UIKit.UIControlState state, global::MonoTouch.UIKit.UIImage placeholder, [BlockProxy(typeof(MonoTouch.ObjCRuntime.Trampolines.NIDCallbackblock))] Callbackblock successBlock, [BlockProxy(typeof(MonoTouch.ObjCRuntime.Trampolines.NIDCallbackblock))] Callbackblock failureBlock)
        {
            if (URL == null)
            {
                throw new ArgumentNullException("URL");
            }
            if (placeholder == null)
            {
                throw new ArgumentNullException("placeholder");
            }
            if (successBlock == null)
            {
                throw new ArgumentNullException("successBlock");
            }
            if (failureBlock == null)
            {
                throw new ArgumentNullException("failureBlock");
            }
            BlockLiteral *block_ptr_successBlock;
            BlockLiteral  block_successBlock;

            block_successBlock     = new BlockLiteral();
            block_ptr_successBlock = &block_successBlock;
            block_successBlock.SetupBlock(Trampolines.SDCallbackblock.Handler, successBlock);
            BlockLiteral *block_ptr_failureBlock;
            BlockLiteral  block_failureBlock;

            block_failureBlock     = new BlockLiteral();
            block_ptr_failureBlock = &block_failureBlock;
            block_failureBlock.SetupBlock(Trampolines.SDCallbackblock.Handler, failureBlock);

            ApiDefinition.Messaging.void_objc_msgSend_IntPtr_UInt32_IntPtr_IntPtr_IntPtr(This.Handle, selHnk_setImageFromURLForStatePlaceholderSuccessFailure_Handle, URL.Handle, (UInt32)state, placeholder.Handle, (IntPtr)block_ptr_successBlock, (IntPtr)block_ptr_failureBlock);
            block_ptr_successBlock->CleanupBlock();
            block_ptr_failureBlock->CleanupBlock();
        }
示例#11
0
 public static void Hnk_setImageFromURL(this global::MonoTouch.UIKit.UIButton This, NSUrl URL, global::MonoTouch.UIKit.UIControlState state, global::MonoTouch.UIKit.UIImage placeholder)
 {
     if (URL == null)
     {
         throw new ArgumentNullException("URL");
     }
     if (placeholder == null)
     {
         throw new ArgumentNullException("placeholder");
     }
     ApiDefinition.Messaging.void_objc_msgSend_IntPtr_UInt32_IntPtr(This.Handle, selHnk_setImageFromURLForStatePlaceholder_Handle, URL.Handle, (UInt32)state, placeholder.Handle);
 }
示例#12
0
        public unsafe static void Hnk_setImage(this global::MonoTouch.UIKit.UIButton This, global::MonoTouch.UIKit.UIImage image, string key, global::MonoTouch.UIKit.UIControlState state, global::MonoTouch.UIKit.UIImage placeholder, [BlockProxy(typeof(MonoTouch.ObjCRuntime.Trampolines.NIDCallbackblock))] Callbackblock successBlock, [BlockProxy(typeof(MonoTouch.ObjCRuntime.Trampolines.NIDCallbackblock))] Callbackblock failureBlock)
        {
            if (image == null)
            {
                throw new ArgumentNullException("image");
            }
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }
            if (placeholder == null)
            {
                throw new ArgumentNullException("placeholder");
            }
            if (successBlock == null)
            {
                throw new ArgumentNullException("successBlock");
            }
            if (failureBlock == null)
            {
                throw new ArgumentNullException("failureBlock");
            }
            var           nskey = NSString.CreateNative(key);
            BlockLiteral *block_ptr_successBlock;
            BlockLiteral  block_successBlock;

            block_successBlock     = new BlockLiteral();
            block_ptr_successBlock = &block_successBlock;
            block_successBlock.SetupBlock(Trampolines.SDCallbackblock.Handler, successBlock);
            BlockLiteral *block_ptr_failureBlock;
            BlockLiteral  block_failureBlock;

            block_failureBlock     = new BlockLiteral();
            block_ptr_failureBlock = &block_failureBlock;
            block_failureBlock.SetupBlock(Trampolines.SDCallbackblock.Handler, failureBlock);

            ApiDefinition.Messaging.void_objc_msgSend_IntPtr_IntPtr_UInt32_IntPtr_IntPtr_IntPtr(This.Handle, selHnk_setImageWithKeyForStatePlaceholderSuccessFailure_Handle, image.Handle, nskey, (UInt32)state, placeholder.Handle, (IntPtr)block_ptr_successBlock, (IntPtr)block_ptr_failureBlock);
            NSString.ReleaseNative(nskey);
            block_ptr_successBlock->CleanupBlock();
            block_ptr_failureBlock->CleanupBlock();
        }