Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Display"/> class with a <see cref="Window"/> class.
        /// </summary>
        /// <param name="window">A <see cref="Window"/> to display.</param>
        /// <since_tizen> 3 </since_tizen>
        public Display(Window window)
        {
            if (window == null)
            {
                throw new ArgumentNullException(nameof(window));
            }

            _setter = new EvasDisplaySetter(DisplayType.Overlay, window);
        }
Ejemplo n.º 2
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());
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Display"/> class with a <see cref="MediaView"/> class.
        /// </summary>
        /// <param name="mediaView">A <see cref="MediaView"/> to display.</param>
        /// <since_tizen> 3 </since_tizen>
        public Display(MediaView mediaView)
        {
            if (mediaView == null)
            {
                throw new ArgumentNullException(nameof(mediaView));
            }

            _setter = new EvasDisplaySetter(DisplayType.Surface, mediaView);

            HasMediaView = true;
        }