コード例 #1
0
 public void Emit(Size2D arg)
 {
     Interop.ResizedSignal.ResizedSignal_Emit(swigCPtr, Size2D.getCPtr(arg));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
ファイル: TableView.cs プロジェクト: xerrni/TizenFX
 /// <summary>
 /// Sets the horizontal and the vertical padding between cells.
 /// </summary>
 /// <param name="padding">Width and height.</param>
 /// <since_tizen> 3 </since_tizen>
 public void SetCellPadding(Size2D padding)
 {
     Interop.TableView.TableView_SetCellPadding(swigCPtr, Size2D.getCPtr(padding));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
        /// <summary>
        /// Checks inequality.<br />
        /// Utilizes appropriate machine epsilon values.<br />
        /// </summary>
        /// <param name="rhs">The size to test against.</param>
        /// <returns>True if the sizes are not equal.</returns>
        /// <since_tizen> 3 </since_tizen>
        public bool NotEqualTo(Size2D rhs)
        {
            bool ret = NDalicPINVOKE.Vector2_NotEqualTo(swigCPtr, Size2D.getCPtr(rhs));

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #4
0
        private Size2D Divide(Size2D rhs)
        {
            Size2D ret = new Size2D(NDalicPINVOKE.Vector2_Divide__SWIG_0(swigCPtr, Size2D.getCPtr(rhs)), true);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #5
0
ファイル: Picture.cs プロジェクト: wonrst/TizenFX
 /// <summary>
 /// Resize the picture content with the given size.
 ///
 /// Resize the picture content while keeping the default size aspect ratio.
 /// The scaling factor is established for each of dimensions and the smaller value is applied to both of them.
 /// </summary>
 /// <param name="size">A new size of the image in pixels</param>
 /// <exception cref="ArgumentNullException"> Thrown when size is null. </exception>
 /// <since_tizen> 9 </since_tizen>
 public void SetSize(Size2D size)
 {
     if (size == null)
     {
         throw new ArgumentNullException(nameof(size));
     }
     Interop.Picture.SetSize(View.getCPtr(this), Size2D.getCPtr(size));
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }