コード例 #1
0
 /// <summary>
 /// Sets the transform and the control size.
 /// </summary>
 /// <param name="transform">A property map describing the transform.</param>
 /// <param name="controlSize">The size of the parent control for visuals that need to scale internally.</param>
 /// <since_tizen> 3 </since_tizen>
 public void SetTransformAndSize(PropertyMap transform, Vector2 controlSize)
 {
     Interop.VisualBase.VisualBase_SetTransformAndSize(swigCPtr, PropertyMap.getCPtr(transform), Vector2.getCPtr(controlSize));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
ファイル: Builder.cs プロジェクト: vincent-kwon/TizenFX
 public void AddConstants(PropertyMap map)
 {
     Interop.Builder.Builder_AddConstants(swigCPtr, PropertyMap.getCPtr(map));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
 /// <summary>
 /// Merges values from the map 'from' to the current.<br />
 /// Any values in 'from' will overwrite the values in the current map.<br />
 /// </summary>
 /// <param name="from">The map to merge from.</param>
 /// <since_tizen> 3 </since_tizen>
 public void Merge(PropertyMap from)
 {
     Interop.PropertyMap.Merge(SwigCPtr, PropertyMap.getCPtr(from));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
 internal void CreatePropertyMap(PropertyMap map)
 {
     Interop.VisualBase.VisualBase_CreatePropertyMap(swigCPtr, PropertyMap.getCPtr(map));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #5
0
ファイル: ItemLayout.cs プロジェクト: sukhyungkang/TizenFX
 public void SetLayoutProperties(PropertyMap properties)
 {
     Interop.ItemLayout.SetLayoutProperties(SwigCPtr, PropertyMap.getCPtr(properties));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #6
0
        /// <summary>
        /// Performs an action on this object with the given action name and attributes.
        /// </summary>
        /// <param name="actionName">The command for the action.</param>
        /// <param name="attributes">The list of attributes for the action.</param>
        /// <returns>The action is performed by the object or not.</returns>
        /// <since_tizen> 3 </since_tizen>
        public bool DoAction(string actionName, PropertyMap attributes)
        {
            bool ret = Interop.BaseHandle.DoAction(swigCPtrCopy, actionName, PropertyMap.getCPtr(attributes));

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #7
0
        public bool DoAction(string actionName, PropertyMap attributes)
        {
            bool ret = LayoutPINVOKE.LayoutItemPtr_DoAction(swigCPtr, actionName, PropertyMap.getCPtr(attributes));

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #8
0
ファイル: PropertyValue.cs プロジェクト: hyotaekshim/TizenFX
        /// <summary>
        /// Retrieves a map property value.
        /// </summary>
        /// <param name="mapValue">On return, the map as vector of string and property value pairs.</param>
        /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
        /// <since_tizen> 3 </since_tizen>
        public bool Get(PropertyMap mapValue)
        {
            bool ret = Interop.PropertyValue.GetMap(swigCPtr, PropertyMap.getCPtr(mapValue));

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #9
0
ファイル: PropertyMap.cs プロジェクト: lol-github/TizenFX
 /// <summary>
 /// Merges values from the map 'from' to the current.<br />
 /// Any values in 'from' will overwrite the values in the current map.<br />
 /// </summary>
 /// <param name="from">The map to merge from.</param>
 /// <since_tizen> 3 </since_tizen>
 public void Merge(PropertyMap from)
 {
     if (from == null)
     {
         throw new global::System.ArgumentNullException(nameof(from));
     }
     Interop.PropertyMap.Merge(SwigCPtr, PropertyMap.getCPtr(from));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #10
0
        public bool AddResponseHeaders(IDictionary <string, string> headers)
        {
            if (headers == null)
            {
                return(false);
            }
            PropertyMap headerMap = new PropertyMap();

            foreach (KeyValuePair <string, string> kvp in headers)
            {
                using (PropertyValue value = new PropertyValue(kvp.Value))
                {
                    headerMap.Add(kvp.Key, value);
                }
            }
            bool result = Interop.WebHttpRequestInterceptor.AddResponseHeaders(interceptorHandle, PropertyMap.getCPtr(headerMap));

            headerMap.Dispose();
            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(result);
        }
コード例 #11
0
 /// <summary>
 /// Create an instance of TransitionData.
 /// </summary>
 /// <param name="transition">The transition data to store (a single animator).</param>
 /// <since_tizen> 3 </since_tizen>
 public TransitionData(PropertyMap transition) : this(Interop.TransitionData.NewByMap(PropertyMap.getCPtr(transition)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #12
0
ファイル: PropertyBuffer.cs プロジェクト: woohyun/TizenFX
 /// <summary>
 /// Creates a PropertyBuffer.
 /// </summary>
 /// <param name="bufferFormat">The map of names and types that describes the components of the buffer.</param>
 /// <since_tizen> 3 </since_tizen>
 public PropertyBuffer(PropertyMap bufferFormat) : this(Interop.PropertyBuffer.PropertyBuffer_New(PropertyMap.getCPtr(bufferFormat)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #13
0
ファイル: BaseHandle.cs プロジェクト: surbhig12/TizenFX
 /// <summary>
 /// Performs an action on this object with the given action name and attributes.
 /// </summary>
 /// <param name="actionName">The command for the action.</param>
 /// <param name="attributes">The list of attributes for the action.</param>
 /// <returns>The action is performed by the object or not.</returns>
 /// <since_tizen> 3 </since_tizen>
 public bool DoAction(string actionName, PropertyMap attributes)
 {
     bool ret = NDalicPINVOKE.BaseHandle_DoAction(swigCPtr, actionName, PropertyMap.getCPtr(attributes));
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #14
0
ファイル: PropertyValue.cs プロジェクト: hyotaekshim/TizenFX
 /// <summary>
 /// Creates a map property value.
 /// </summary>
 /// <param name="mapValue">An array.</param>
 /// <since_tizen> 3 </since_tizen>
 public PropertyValue(PropertyMap mapValue) : this(Interop.PropertyValue.NewPropertyValueMap(PropertyMap.getCPtr(mapValue)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #15
0
 /// <summary>
 /// The copy constructor.
 /// </summary>
 /// <param name="other">The map to copy from.</param>
 /// <since_tizen> 3 </since_tizen>
 public PropertyMap(PropertyMap other) : this(Interop.PropertyMap.NewPropertyMap(PropertyMap.getCPtr(other)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #16
0
ファイル: VisualFactory.cs プロジェクト: walac/NUIPreview
        /// <summary>
        /// Request the visual.
        /// </summary>
        /// <param name="propertyMap">The map contains the properties required by the visual. The content of the map determines the type of visual that will be returned.</param>
        /// <returns>The handle to the created visual.</returns>
        /// <since_tizen> 3 </since_tizen>
        public VisualBase CreateVisual(PropertyMap propertyMap)
        {
            VisualBase ret = new VisualBase(Interop.VisualFactory.VisualFactory_CreateVisual__SWIG_0(swigCPtr, PropertyMap.getCPtr(propertyMap)), true);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #17
0
ファイル: Builder.cs プロジェクト: sukhyungkang/TizenFX
        public Animation CreateAnimation(string animationName, PropertyMap map)
        {
            Animation ret = new Animation(Interop.Builder.CreateAnimationWithPropertyMap(SwigCPtr, animationName, PropertyMap.getCPtr(map)), true);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #18
0
ファイル: Builder.cs プロジェクト: vincent-kwon/TizenFX
        public Animation CreateAnimation(string animationName, PropertyMap map, View sourceActor)
        {
            Animation ret = new Animation(Interop.Builder.Builder_CreateAnimation__SWIG_3(swigCPtr, animationName, PropertyMap.getCPtr(map), View.getCPtr(sourceActor)), true);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #19
0
ファイル: Builder.cs プロジェクト: vincent-kwon/TizenFX
        public BaseHandle Create(string templateName, PropertyMap map)
        {
            BaseHandle ret = new BaseHandle(Interop.Builder.Builder_Create__SWIG_1(swigCPtr, templateName, PropertyMap.getCPtr(map)), true);

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