Exemple #1
0
        PlayerErrorCode IDisplayable <PlayerErrorCode> .ApplyEcoreWindow(IntPtr windowHandle)
        {
            Debug.Assert(IsDisposed == false);

            return(NativeDisplay.SetEcoreDisplay(Handle,
                                                 _uiSync ? PlayerDisplayType.OverlayUISync : PlayerDisplayType.Overlay, windowHandle));
        }
Exemple #2
0
        private PlayerErrorCode SetDisplay(Display display)
        {
            if (display == null)
            {
                return(NativeDisplay.SetDisplay(Handle, PlayerDisplayType.None, IntPtr.Zero));
            }

            return(display.ApplyTo(this));
        }
Exemple #3
0
        PlayerErrorCode IDisplayable <PlayerErrorCode> .ApplyEvasDisplay(DisplayType type, ElmSharp.EvasObject evasObject)
        {
            Debug.Assert(IsDisposed == false);

            Debug.Assert(Enum.IsDefined(typeof(DisplayType), type));
            Debug.Assert(type != DisplayType.None);

            return(NativeDisplay.SetDisplay(Handle,
                                            type == DisplayType.Overlay ? PlayerDisplayType.Overlay : PlayerDisplayType.Evas, evasObject));
        }