public virtual void OnPropertySet(int index, PropertyValue propertyValue) { Interop.CustomActorImpl.OnPropertySet(SwigCPtr, index, PropertyValue.getCPtr(propertyValue)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
internal void SetValue(string key, PropertyValue value) { Interop.PropertyMap.SetValueStringKey(swigCPtr, key, PropertyValue.getCPtr(value)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
/// <summary> /// Sets a constant for use when building styles. /// </summary> /// <param name="key">The key of the constant.</param> /// <param name="value">The value of the constant.</param> /// <since_tizen> 3 </since_tizen> public void AddConstant(string key, PropertyValue value) { Interop.StyleManager.SetStyleConstant(SwigCPtr, key, PropertyValue.getCPtr(value)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
/// <summary> /// Adds an element to the array. /// </summary> /// <param name="value">The value to add at the end of the array.</param> /// <since_tizen> 3 </since_tizen> public void PushBack(PropertyValue value) { Interop.Property.ArrayPushBack(swigCPtr, PropertyValue.getCPtr(value)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
public void AddConstant(string key, PropertyValue value) { Interop.Builder.Builder_AddConstant(swigCPtr, key, PropertyValue.getCPtr(value)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
/// <summary> /// Adds a key frame. /// </summary> /// <param name="progress">A progress value between 0.0 and 1.0.</param> /// <param name="value">A value.</param> /// <param name="alpha">The alpha function used to blend to the next keyframe.</param> /// <since_tizen> 3 </since_tizen> public void Add(float progress, PropertyValue value, AlphaFunction alpha) { NDalicPINVOKE.KeyFrames_Add__SWIG_1(swigCPtr, progress, PropertyValue.getCPtr(value), AlphaFunction.getCPtr(alpha)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
/// <summary> /// Adds a key frame. /// </summary> /// <param name="progress">A progress value between 0.0 and 1.0.</param> /// <param name="value">A value.</param> /// <since_tizen> 3 </since_tizen> public void Add(float progress, PropertyValue value) { Interop.KeyFrames.Add(SwigCPtr, progress, PropertyValue.getCPtr(value)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
/// <summary> /// Inserts the key-value pair in the map, with the key type as index.<br /> /// Does not check for duplicates.<br /> /// </summary> /// <param name="key">The key to insert.</param> /// <param name="value">The value to insert.</param> /// <since_tizen> 3 </since_tizen> public void Insert(int key, PropertyValue value) { Interop.PropertyMap.Insert(swigCPtr, key, PropertyValue.getCPtr(value)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
/// <summary> /// Inserts the key-value pair in the map, with the key type as string.<br /> /// Does not check for duplicates.<br /> /// </summary> /// <param name="key">The key to insert.</param> /// <param name="value">The value to insert.</param> /// <returns>Returns a reference to this object.</returns> /// <since_tizen> 3 </since_tizen> public PropertyMap Add(int key, PropertyValue value) { Interop.PropertyMap.Add(swigCPtr, key, PropertyValue.getCPtr(value)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(this); }
/// <summary> /// Registers a new animatable property. /// </summary> /// <param name="name">The name of the property.</param> /// <param name="propertyValue">The new value of the property.</param> /// <param name="accessMode">The property access mode (writable, animatable etc).</param> /// <returns>The type of the property.</returns> /// <since_tizen> 3 </since_tizen> public int RegisterProperty(string name, PropertyValue propertyValue, PropertyAccessMode accessMode) { int ret = NDalicPINVOKE.Handle_RegisterProperty__SWIG_1(swigCPtr, name, PropertyValue.getCPtr(propertyValue), (int)accessMode); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <summary> /// Registers a new animatable property. /// </summary> /// <param name="name">The name of the property.</param> /// <param name="propertyValue">The new value of the property.</param> /// <returns>The type of the property.</returns> /// <since_tizen> 3 </since_tizen> public int RegisterProperty(string name, PropertyValue propertyValue) { int ret = Interop.Handle.Handle_RegisterProperty__SWIG_0(swigCPtr, name, PropertyValue.getCPtr(propertyValue)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <summary> /// Returns the style constant set for a specific key. /// </summary> /// <param name="key">The key of the constant.</param> /// <param name="valueOut">The value of the constant if it exists.</param> /// <returns></returns> /// <since_tizen> 3 </since_tizen> public bool GetConstant(string key, PropertyValue valueOut) { bool ret = Interop.StyleManager.GetStyleConstant(SwigCPtr, key, PropertyValue.getCPtr(valueOut)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <summary> /// Inserts the key-value pair in the map, with the key type as index.<br /> /// The error message would be shown if the pair with the same key already exists. /// </summary> /// <param name="key">The key to insert.</param> /// <param name="value">The value to insert.</param> /// <since_tizen> 3 </since_tizen> public void Insert(int key, PropertyValue value) { global::System.IntPtr cPtr = Interop.PropertyMap.Find(SwigCPtr, key); if (cPtr != global::System.IntPtr.Zero) { Tizen.Log.Error("NUI", $"The key {key} already exists. please do not use duplicate key"); } Interop.PropertyMap.Insert(SwigCPtr, key, PropertyValue.getCPtr(value)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
/// <summary> /// Inserts the key-value pair in the map, with the key type as index.<br /> /// The exception would be thrown if the pair with the same key already exists. /// </summary> /// <param name="key">The key to insert.</param> /// <param name="value">The value to insert.</param> /// <since_tizen> 3 </since_tizen> public void Insert(int key, PropertyValue value) { global::System.IntPtr cPtr = Interop.PropertyMap.Find(SwigCPtr, key); if (cPtr != global::System.IntPtr.Zero) { throw new global::System.ArgumentException($"The key {key} already exists.", nameof(key)); } Interop.PropertyMap.Insert(SwigCPtr, key, PropertyValue.getCPtr(value)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
internal void SetValue(PropertyKey key, PropertyValue value) { if (key.Type == PropertyKey.KeyType.Index) { Interop.PropertyMap.SetValueIntKey(SwigCPtr, key.IndexKey, PropertyValue.getCPtr(value)); } else if (key.Type == PropertyKey.KeyType.String) { Interop.PropertyMap.SetValueStringKey(SwigCPtr, key.StringKey, PropertyValue.getCPtr(value)); } if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
/// <summary> /// Gets a property value from a view. /// </summary> private IntPtr GetPropertyValue(IntPtr refObjectPtr, string propertyName) { // Get the C# control that maps to the C++ control View view = Registry.GetManagedBaseHandleFromRefObject(refObjectPtr) as View; if (view != null) { // call the get property function System.Object val = view.GetType().GetProperty(propertyName).GetAccessors()[0].Invoke(view, null); PropertyValue value = PropertyValue.CreateFromObject(val); return((IntPtr)PropertyValue.getCPtr(value)); } else { return(IntPtr.Zero); } }
/// <summary> /// Inserts the keyvalue to the map.<br /> /// Does not check for duplicates.<br /> /// </summary> /// <param name="keyValue">The keyvalue to insert.</param> /// <returns>Returns a reference to this object.</returns> /// <exception cref="global::System.ArgumentNullException"> Thrown when keyValue is null. </exception> public PropertyMap Add(KeyValue keyValue) { if (null == keyValue) { throw new global::System.ArgumentNullException(nameof(keyValue)); } if (keyValue.KeyInt != null) { Interop.PropertyMap.Add(swigCPtr, (int)keyValue.KeyInt, PropertyValue.getCPtr(keyValue.TrueValue)); } else if (keyValue.KeyString != null) { Interop.PropertyMap.Add(swigCPtr, keyValue.KeyString, PropertyValue.getCPtr(keyValue.TrueValue)); } if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(this); }
/// <summary> /// Inserts the key-value pair in the map, with the key type as string.<br /> /// Does not check for duplicates.<br /> /// </summary> /// <param name="key">The key to insert.</param> /// <param name="value">The value to insert.</param> /// <returns>Returns a reference to this object.</returns> /// <since_tizen> 3 </since_tizen> public PropertyMap Add(int key, PropertyValue value) { PropertyMap ret = new PropertyMap(Interop.PropertyMap.Property_Map_Add__SWIG_2(swigCPtr, key, PropertyValue.getCPtr(value)), false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <summary> /// Adds an keyvalue to the array. /// This function should be first /// </summary> /// <param name="value">The value to add at the end of the array.</param> /// <exception cref="global::System.ArgumentNullException"> Thrown when value is null. </exception> public PropertyArray Add(KeyValue value) { if (null == value) { throw new global::System.ArgumentNullException(nameof(value)); } PropertyArray ret = new PropertyArray(Interop.Property.ArrayAdd(swigCPtr, PropertyValue.getCPtr(value.TrueValue)), false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <summary> /// Creates a PropertyValue value. /// </summary> /// <param name="value">A PropertyValue value.</param> /// <since_tizen> 3 </since_tizen> public PropertyValue(PropertyValue value) : this(Interop.PropertyValue.NewPropertyValueValue(PropertyValue.getCPtr(value)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
/// <summary> /// Adds an element to the array. /// </summary> /// <param name="value">The value to add at the end of the array.</param> /// <since_tizen> 3 </since_tizen> public PropertyArray Add(PropertyValue value) { PropertyArray ret = new PropertyArray(Interop.Property.ArrayAdd(swigCPtr, PropertyValue.getCPtr(value)), false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <summary> /// Inserts the keyvalue to the map.<br /> /// Does not check for duplicates.<br /> /// </summary> /// <param name="keyValue">The keyvalue to insert.</param> /// <returns>Returns a reference to this object.</returns> public PropertyMap Add(KeyValue keyValue) { PropertyMap ret = new PropertyMap(); if (keyValue.KeyInt != null) { ret = new PropertyMap(Interop.PropertyMap.Property_Map_Add__SWIG_2(swigCPtr, (int)keyValue.KeyInt, PropertyValue.getCPtr(keyValue.TrueValue)), false); } else if (keyValue.KeyString != null) { ret = new PropertyMap(Interop.PropertyMap.Property_Map_Add__SWIG_0(swigCPtr, keyValue.KeyString, PropertyValue.getCPtr(keyValue.TrueValue)), false); } if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }