Example #1
0
 public void SetBounds(Position2D centerPoint, float radius)
 {
     Interop.RadialGradient.SetBounds(BaseHandle.getCPtr(this), Position2D.getCPtr(centerPoint), radius);
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 /// <summary>
 /// Gets the linear gradient bounds.
 /// </summary>
 /// <param name="firstPoint">The first point used to determine the gradient bounds.</param>
 /// <param name="secondPoint">The second point used to determine the gradient bounds.</param>
 /// <since_tizen> 9 </since_tizen>
 public void GetBounds(ref Position2D firstPoint, ref Position2D secondPoint)
 {
     Interop.LinearGradient.GetBounds(BaseHandle.getCPtr(this), Position2D.getCPtr(firstPoint), Position2D.getCPtr(secondPoint));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
        /// <summary>
        /// Compares if the rhs is not equal to.
        /// </summary>
        /// <param name="rhs">The vector to compare.</param>
        /// <returns>Returns true if the two vectors are not equal, otherwise false.</returns>
        /// <since_tizen> 3 </since_tizen>
        public bool NotEqualTo(Position2D rhs)
        {
            bool ret = NDalicPINVOKE.Vector2_NotEqualTo(swigCPtr, Position2D.getCPtr(rhs));

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #4
0
        private Position2D Add(Position2D rhs)
        {
            Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Add(swigCPtr, Position2D.getCPtr(rhs)), true);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #5
0
        public void GetBounds(ref Position2D centerPoint, ref float radius)
        {
            float ret = 0.0f;

            unsafe
            {
                float *radiusPtr = &ret;
                Interop.RadialGradient.GetBounds(BaseHandle.getCPtr(this), Position2D.getCPtr(centerPoint), radiusPtr);
                if (NDalicPINVOKE.SWIGPendingException.Pending)
                {
                    throw NDalicPINVOKE.SWIGPendingException.Retrieve();
                }
            }
            radius = ret;
        }