コード例 #1
0
 public virtual void SetMaskTarget(int index, MaskTargetType target)
 {
     if (IsDirectBinding)
     {
         global::ApiDefinition.Messaging.void_objc_msgSend_int_UInt32(this.Handle, Selector.GetHandle("setMaskTarget:maskTargetType:"), index, (UInt32)target);
     }
     else
     {
         global::ApiDefinition.Messaging.void_objc_msgSendSuper_int_UInt32(this.SuperHandle, Selector.GetHandle("setMaskTarget:maskTargetType:"), index, (UInt32)target);
     }
 }
コード例 #2
0
        public AsSelectMaskParam(int index, MaskTargetType maskTarget, MaskActionType maskAction, MemoryBank maskBank, int maskOffset, string maskData, int maskLength, bool usedMask)
            : base(NSObjectFlag.Empty)
        {
            if (maskData == null)
            {
                throw new ArgumentNullException("maskData");
            }
            var nsmaskData = NSString.CreateNative(maskData);

            IsDirectBinding = GetType().Assembly == global::ApiDefinition.Messaging.this_assembly;
            if (IsDirectBinding)
            {
                InitializeHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_int_UInt32_UInt32_UInt32_int_IntPtr_int_bool(this.Handle, Selector.GetHandle("initWithParameterLength:target:action:bank:offset:mask:length:used:"), index, (UInt32)maskTarget, (UInt32)maskAction, (UInt32)maskBank, maskOffset, nsmaskData, maskLength, usedMask), "initWithParameterLength:target:action:bank:offset:mask:length:used:");
            }
            else
            {
                InitializeHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSendSuper_int_UInt32_UInt32_UInt32_int_IntPtr_int_bool(this.SuperHandle, Selector.GetHandle("initWithParameterLength:target:action:bank:offset:mask:length:used:"), index, (UInt32)maskTarget, (UInt32)maskAction, (UInt32)maskBank, maskOffset, nsmaskData, maskLength, usedMask), "initWithParameterLength:target:action:bank:offset:mask:length:used:");
            }
            NSString.ReleaseNative(nsmaskData);
        }
コード例 #3
0
 public static string ToString(MaskActionType actionType, MaskTargetType targetType)
 {
     return(NSString.FromHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSend_UInt32_UInt32(class_ptr, Selector.GetHandle("toString:targetType:"), (UInt32)actionType, (UInt32)targetType)));
 }