Beispiel #1
0
 public void AddAutofillView(BaseComponents.View view, int propertyIndex, string id, string label, AutofillContainer.ItemHint hint, bool isSensitive)
 {
     Interop.AutofillContainer.AutofillContainer_AddAutofillView(swigCPtr, BaseComponents.View.getCPtr(view), propertyIndex, id, label, (uint)hint, isSensitive);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #2
0
 public void RemoveAutofillItem(BaseComponents.View view)
 {
     Interop.AutofillContainer.AutofillContainer_RemoveAutofillItem(swigCPtr, BaseComponents.View.getCPtr(view));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #3
0
 public void Emit(BaseComponents.View target, int visualIndex, int signalId)
 {
     Interop.VisualEventSignal.Emit(SwigCPtr, BaseComponents.View.getCPtr(target), visualIndex, signalId);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #4
0
 public void Emit(BaseComponents.View arg1)
 {
     Interop.ListEventSignalType.Emit(SwigCPtr, BaseComponents.View.getCPtr(arg1));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #5
0
        static internal PropertyValue ToPropertyValue(ShadowBase instance, BaseComponents.View attachedView)
        {
            if (instance == null || !instance.IsValid())
            {
                return(new PropertyValue());
            }

            instance.propertyMap[Visual.Property.Transform] = instance.GetTransformMap(attachedView);

            return(new PropertyValue(instance.propertyMap));
        }
Beispiel #6
0
        internal PropertyValue ToPropertyValue(BaseComponents.View attachedView)
        {
            if (IsEmpty())
            {
                return(new PropertyValue());
            }

            var map = GetPropertyMap();

            if (attachedView.CornerRadius != null)
            {
                map[Visual.Property.CornerRadius]       = attachedView.CornerRadius == null ? new PropertyValue() : new PropertyValue(attachedView.CornerRadius);
                map[Visual.Property.CornerRadiusPolicy] = new PropertyValue((int)attachedView.CornerRadiusPolicy);
            }

            return(new PropertyValue(map));
        }
Beispiel #7
0
        internal PropertyValue ToPropertyValue(BaseComponents.View attachedView)
        {
            if (IsEmpty())
            {
                return(new PropertyValue());
            }

            var map = GetPropertyMap();

            if (attachedView.CornerRadius > 0)
            {
                map[Visual.Property.CornerRadius] = new PropertyValue(attachedView.CornerRadius);
            }

            map[Visual.Property.Transform] = GetTransformMap();

            return(new PropertyValue(map));
        }
Beispiel #8
0
        private PropertyValue GetTransformMap(BaseComponents.View attachedView)
        {
            var transformMap = new PropertyMap();

            if (!offset.Equals(noOffset))
            {
                transformMap[(int)VisualTransformPropertyType.OffsetPolicy] = new PropertyValue(absoluteTransformPolicy);
                transformMap[(int)VisualTransformPropertyType.Offset]       = PropertyValue.CreateWithGuard(offset);
            }

            if (!extents.Equals(noExtents))
            {
                var viewSize   = new Vector2(attachedView.GetRelayoutSize(DimensionType.Width), attachedView.GetRelayoutSize(DimensionType.Height));
                var shadowSize = viewSize + extents;

                transformMap[(int)VisualTransformPropertyType.SizePolicy] = new PropertyValue(absoluteTransformPolicy);
                transformMap[(int)VisualTransformPropertyType.Size]       = PropertyValue.CreateWithGuard(shadowSize);
            }

            return(transformMap.Count() == 0 ? new PropertyValue() : new PropertyValue(transformMap));
        }
Beispiel #9
0
        internal ViewResourceReadySignal ResourceReadySignal(View view)
        {
            ViewResourceReadySignal ret = new ViewResourceReadySignal(Interop.View.ResourceReadySignal(View.getCPtr(view)), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #10
0
 protected virtual bool AccessibilityScrollToChild(View child)
 {
     return(false);
 }
        internal VisualEventSignal VisualEventSignal()
        {
            VisualEventSignal ret = new VisualEventSignal(Interop.VisualEventSignal.NewWithView(View.getCPtr(this)), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }