예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Display"/> class with a <see cref="NUI.Window"/> class.
        /// </summary>
        /// <param name="window">A <see cref="NUI.Window"/> to display.</param>
        /// <remarks>
        /// The <see cref="NUI.Window.BackgroundColor"/> must be <see cref="NUI.Color.Transparent"/>
        /// for the <see cref="Display"/> to be rendered correctly.
        /// </remarks>
        /// <since_tizen> 3 </since_tizen>
        public Display(NUI.Window window)
        {
            if (window == null)
            {
                throw new ArgumentNullException(nameof(window));
            }

            _setter = new EcoreDisplaySetter(window.GetNativeWindowHandler());
        }
예제 #2
0
파일: Display.cs 프로젝트: wonrst/TizenFX
 /// <summary>
 /// Initializes a new instance of the <see cref="Display"/> class with a <see cref="NUI.Window"/> class.
 /// </summary>
 /// <param name="window">A <see cref="NUI.Window"/> to display.</param>
 /// <remarks>
 /// The <see cref="NUI.Window.BackgroundColor"/> must be <see cref="NUI.Color.Transparent"/>
 /// for the <see cref="Display"/> to be rendered correctly.
 /// </remarks>
 /// <since_tizen> 3 </since_tizen>
 public Display(NUI.Window window)
     : this(window, false)
 {
 }