C# 클래스 MediaPortal.D3D

The base class for all the graphics (D3D) samples, it derives from windows forms
상속: MediaPortal.UserInterface.Controls.MPForm
파일 보기 프로젝트 열기: MediaPortal/MediaPortal-1

보호된 프로퍼티들

프로퍼티 타입 설명
AdapterInfo MediaPortal.GraphicsAdapterInfo
AppActive bool
AutoHideMouse bool
AutoHideTaskbar bool
ExitToTray bool
FrameStatsLine1 string
FrameStatsLine2 string
Frames int
FullscreenOverride bool
IsDisplayTurnedOn bool
IsInAwayMode bool
IsUserPresent bool
IsVisible bool
KeyEventTimer System.DateTime
LastCursorPosition Point
LastRect RECT
MinimizeOnFocusLoss bool
MinimizeOnGuiExit bool
MinimizeOnStartup bool
MouseCursor bool
MouseTimeOutFullscreen int
MouseTimeOutMP int
MouseTimeOutTimer System.DateTime
NeedRecreateSwapChain bool
PlaylistPlayer MediaPortal.Playlists.PlayListPlayer
PreviousKeyEvent System.Windows.Forms.KeyPressEventArgs
ScreenNumberOverride int
ScreenSaverEventTimer System.DateTime
ShuttingDown bool
SkinOverride string
SplashScreen MediaPortal.SplashScreen
UseEnhancedVideoRenderer bool
UseMadVideoRenderer bool
Volume int
WINDOWS_NATIVE_RESOLUTION System.Drawing.Size
Windowed bool
WindowedOverride bool
_backupBounds System.Drawing.Rectangle
_backupscreen System.Windows.Forms.Screen
_firstLoadedScreen bool
_presentParams PresentParameters
_presentParamsBackup PresentParameters
_restoreLoadedScreen bool
_screenFocus System.Windows.Forms.Screen

공개 메소드들

메소드 설명
ShowMouseCursor ( bool visible ) : void

Wrapper for shown/hiding cursor

보호된 메소드들

메소드 설명
BuildPresentParams ( bool windowed ) : void

Build D3D presentation parameters

CalcMaxClientArea ( ) : Size

Calculates the maximum client area if skin is larger than working area

D3D ( ) : System

Constructor

Dispose ( bool disposing ) : void

Clean up any resources

FrameMove ( ) : void

FullRender ( ) : void

Called when nothing else needs to be done and it's time to render

GetStats ( ) : void

Get the statistics

HandleMessage ( ) : void

Message Loop - Handles ANSI and Unicode Messages and dispatch them

HideTaskBar ( bool hide ) : void

Hides the task bar

Init ( ) : bool

Init graphics device

InitializeDevice ( ) : void

Initialization of the D3D Device

InitializeDeviceObjects ( ) : void

KeyDownEvent ( KeyEventArgs e ) : void

KeyPressEvent ( KeyPressEventArgs e ) : void

MinimizeToTray ( ) : void

Minimized MP To System Tray

MouseClickEvent ( MouseEventArgs e ) : void

MouseDoubleClickEvent ( MouseEventArgs e ) : void

MouseMoveEvent ( MouseEventArgs e ) : void

NotifyIconRestore ( Object sender, EventArgs e ) : void

OnDeviceLost ( Object sender, EventArgs e ) : void

OnEnumeration ( ) : void

OnExit ( ) : void

OnFormClosing ( FormClosingEventArgs formClosingEventArgs ) : void

http://msdn.microsoft.com/en-us/library/system.windows.forms.form.onformclosing.aspx

OnGotFocus ( EventArgs e ) : void

Raises the GotFocus event. http://msdn.microsoft.com/en-us/library/system.windows.forms.control.ongotfocus.aspx

OnKeyPress ( KeyPressEventArgs e ) : void

Raises the KeyPress event. http://msdn.microsoft.com/en-us/library/system.windows.forms.control.onkeypress.aspx

OnLostFocus ( EventArgs e ) : void

Raises the Lost Focus event. http://msdn.microsoft.com/en-us/library/system.windows.forms.control.onlostfocus.aspx

OnMouseMove ( MouseEventArgs e ) : void

Raises the MouseMove event. http://msdn.microsoft.com/en-us/library/system.windows.forms.control.onmousemove.aspx

OnPaint ( PaintEventArgs e ) : void

OnPaintEvent ( ) : void

Repaints the current window independent of WM_PAINT messages

OnProcess ( ) : void

OnStartup ( ) : void

RecoverDevice ( ) : void

Render ( float timePassed ) : void

RestoreFromTray ( ) : void

Restores MP from System Tray

ResumePlayer ( ) : void

Restore player from saved state

SavePlayerState ( ) : void

Save player state (when form was resized)

ShowLastActiveModule ( ) : bool

ToggleFullscreen ( ) : void

UpdateStats ( ) : void

Update the various statistics the simulation keeps track of

비공개 메소드들

메소드 설명
CleanupEnvironment ( ) : void

Set our variables to not active and not ready

ConfirmDevice ( Caps caps, VertexProcessingType vertexProcessingType, Format adapterFormat, Format backBufferFormat ) : bool

CreateDirectX9ExDevice ( ) : void

Creates a DirectX9Ex Device

Exit ( object sender, EventArgs e ) : void

Exit Form

FindAdapterForScreen ( Screen screen ) : MediaPortal.GraphicsAdapterInfo

Finds the adapter that has the specified screen on its primary monitor

GetCapabilities ( ) : Caps

GetForegroundWindow ( ) : IntPtr
GetMonitorInfo ( IntPtr hWnd, MonitorInformation &info ) : bool
InitializeComponent ( ) : void

Initialize Menus and Event Handlers

MenuItemConfiguration ( object sender, EventArgs e ) : void

MenuItemDVD ( object sender, EventArgs e ) : void

MenuItemFullscreen ( object sender, EventArgs e ) : void

MenuItemMiniTV ( object sender, EventArgs e ) : void

toggles default and minitv mode

MenuItemMovies ( object sender, EventArgs e ) : void

MenuItemMusic ( object sender, EventArgs e ) : void

MenuItemPictures ( object sender, EventArgs e ) : void

MenuItemTV ( object sender, EventArgs e ) : void

NotifyIconExit ( Object sender, EventArgs e ) : void

OnClick ( object sender, MouseEventArgs e ) : void

OnIdle ( object sender, EventArgs e ) : void

OnKeyDown ( object sender, KeyEventArgs e ) : void

OnKeyPress ( object sender, KeyPressEventArgs e ) : void

OnLoad ( object sender, EventArgs e ) : void

OnMouseDoubleClick ( object sender, MouseEventArgs e ) : void

OnMouseMove ( object sender, MouseEventArgs e ) : void

RecreateSwapChain ( bool useBackup ) : void

reset device if back buffer does not match skin dimensions (e.g. 16:10 display with 16:9 skin, 720p skin on 1080p display etc.)

ShowCursor ( bool bShow ) : int
StartConfiguration ( ) : void

Start Configuration.exe

TVDelayThread ( ) : void

ToggleMiniTV ( ) : void

UpdateMouseCursor ( ) : void

Automatically hides or show mouse cursor when over form

메소드 상세

BuildPresentParams() 보호된 메소드

Build D3D presentation parameters
protected BuildPresentParams ( bool windowed ) : void
windowed bool true for window, false for fullscreen
리턴 void

CalcMaxClientArea() 보호된 메소드

Calculates the maximum client area if skin is larger than working area
protected CalcMaxClientArea ( ) : Size
리턴 System.Drawing.Size

D3D() 보호된 메소드

Constructor
protected D3D ( ) : System
리턴 System

Dispose() 보호된 메소드

Clean up any resources
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

FrameMove() 보호된 메소드

protected FrameMove ( ) : void
리턴 void

FullRender() 보호된 메소드

Called when nothing else needs to be done and it's time to render
protected FullRender ( ) : void
리턴 void

GetStats() 보호된 메소드

Get the statistics
protected GetStats ( ) : void
리턴 void

HandleMessage() 보호된 메소드

Message Loop - Handles ANSI and Unicode Messages and dispatch them
protected HandleMessage ( ) : void
리턴 void

HideTaskBar() 보호된 정적인 메소드

Hides the task bar
protected static HideTaskBar ( bool hide ) : void
hide bool hides taskbar on true, shows it on false
리턴 void

Init() 보호된 메소드

Init graphics device
protected Init ( ) : bool
리턴 bool

InitializeDevice() 보호된 메소드

Initialization of the D3D Device
protected InitializeDevice ( ) : void
리턴 void

InitializeDeviceObjects() 보호된 메소드

protected InitializeDeviceObjects ( ) : void
리턴 void

KeyDownEvent() 보호된 메소드

protected KeyDownEvent ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
리턴 void

KeyPressEvent() 보호된 메소드

protected KeyPressEvent ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs
리턴 void

MinimizeToTray() 보호된 메소드

Minimized MP To System Tray
protected MinimizeToTray ( ) : void
리턴 void

MouseClickEvent() 보호된 메소드

protected MouseClickEvent ( MouseEventArgs e ) : void
e MouseEventArgs
리턴 void

MouseDoubleClickEvent() 보호된 메소드

protected MouseDoubleClickEvent ( MouseEventArgs e ) : void
e MouseEventArgs
리턴 void

MouseMoveEvent() 보호된 메소드

protected MouseMoveEvent ( MouseEventArgs e ) : void
e MouseEventArgs
리턴 void

NotifyIconRestore() 보호된 메소드

protected NotifyIconRestore ( Object sender, EventArgs e ) : void
sender Object
e System.EventArgs
리턴 void

OnDeviceLost() 보호된 메소드

protected OnDeviceLost ( Object sender, EventArgs e ) : void
sender Object
e System.EventArgs
리턴 void

OnEnumeration() 보호된 메소드

protected OnEnumeration ( ) : void
리턴 void

OnExit() 보호된 메소드

protected OnExit ( ) : void
리턴 void

OnFormClosing() 보호된 메소드

http://msdn.microsoft.com/en-us/library/system.windows.forms.form.onformclosing.aspx
protected OnFormClosing ( FormClosingEventArgs formClosingEventArgs ) : void
formClosingEventArgs System.Windows.Forms.FormClosingEventArgs
리턴 void

OnGotFocus() 보호된 메소드

Raises the GotFocus event. http://msdn.microsoft.com/en-us/library/system.windows.forms.control.ongotfocus.aspx
protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
리턴 void

OnKeyPress() 보호된 메소드

Raises the KeyPress event. http://msdn.microsoft.com/en-us/library/system.windows.forms.control.onkeypress.aspx
protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs A KeyPressEventArgs that contains the event data.
리턴 void

OnLostFocus() 보호된 메소드

Raises the Lost Focus event. http://msdn.microsoft.com/en-us/library/system.windows.forms.control.onlostfocus.aspx
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
리턴 void

OnMouseMove() 보호된 메소드

Raises the MouseMove event. http://msdn.microsoft.com/en-us/library/system.windows.forms.control.onmousemove.aspx
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs that contains the event data.
리턴 void

OnPaint() 보호된 메소드

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
리턴 void

OnPaintEvent() 보호된 메소드

Repaints the current window independent of WM_PAINT messages
protected OnPaintEvent ( ) : void
리턴 void

OnProcess() 보호된 메소드

protected OnProcess ( ) : void
리턴 void

OnStartup() 보호된 메소드

protected OnStartup ( ) : void
리턴 void

RecoverDevice() 보호된 메소드

protected RecoverDevice ( ) : void
리턴 void

Render() 보호된 메소드

protected Render ( float timePassed ) : void
timePassed float
리턴 void

RestoreFromTray() 보호된 메소드

Restores MP from System Tray
protected RestoreFromTray ( ) : void
리턴 void

ResumePlayer() 보호된 메소드

Restore player from saved state
protected ResumePlayer ( ) : void
리턴 void

SavePlayerState() 보호된 메소드

Save player state (when form was resized)
protected SavePlayerState ( ) : void
리턴 void

ShowLastActiveModule() 보호된 메소드

protected ShowLastActiveModule ( ) : bool
리턴 bool

ShowMouseCursor() 공개 메소드

Wrapper for shown/hiding cursor
public ShowMouseCursor ( bool visible ) : void
visible bool
리턴 void

ToggleFullscreen() 보호된 메소드

protected ToggleFullscreen ( ) : void
리턴 void

UpdateStats() 보호된 메소드

Update the various statistics the simulation keeps track of
protected UpdateStats ( ) : void
리턴 void

프로퍼티 상세

AdapterInfo 보호되어 있는 프로퍼티

protected GraphicsAdapterInfo,MediaPortal AdapterInfo
리턴 MediaPortal.GraphicsAdapterInfo

AppActive 보호되어 있는 프로퍼티

protected bool AppActive
리턴 bool

AutoHideMouse 보호되어 있는 프로퍼티

protected bool AutoHideMouse
리턴 bool

AutoHideTaskbar 보호되어 있는 프로퍼티

protected bool AutoHideTaskbar
리턴 bool

ExitToTray 보호되어 있는 프로퍼티

protected bool ExitToTray
리턴 bool

FrameStatsLine1 보호되어 있는 프로퍼티

protected string FrameStatsLine1
리턴 string

FrameStatsLine2 보호되어 있는 프로퍼티

protected string FrameStatsLine2
리턴 string

Frames 보호되어 있는 프로퍼티

protected int Frames
리턴 int

FullscreenOverride 보호되어 있는 정적으로 프로퍼티

protected static bool FullscreenOverride
리턴 bool

IsDisplayTurnedOn 보호되어 있는 프로퍼티

protected bool IsDisplayTurnedOn
리턴 bool

IsInAwayMode 보호되어 있는 프로퍼티

protected bool IsInAwayMode
리턴 bool

IsUserPresent 보호되어 있는 프로퍼티

protected bool IsUserPresent
리턴 bool

IsVisible 보호되어 있는 프로퍼티

protected bool IsVisible
리턴 bool

KeyEventTimer 보호되어 있는 프로퍼티

protected DateTime,System KeyEventTimer
리턴 System.DateTime

LastCursorPosition 보호되어 있는 프로퍼티

protected Point LastCursorPosition
리턴 Point

LastRect 보호되어 있는 프로퍼티

protected RECT LastRect
리턴 RECT

MinimizeOnFocusLoss 보호되어 있는 프로퍼티

protected bool MinimizeOnFocusLoss
리턴 bool

MinimizeOnGuiExit 보호되어 있는 프로퍼티

protected bool MinimizeOnGuiExit
리턴 bool

MinimizeOnStartup 보호되어 있는 프로퍼티

protected bool MinimizeOnStartup
리턴 bool

MouseCursor 보호되어 있는 프로퍼티

protected bool MouseCursor
리턴 bool

MouseTimeOutFullscreen 보호되어 있는 프로퍼티

protected int MouseTimeOutFullscreen
리턴 int

MouseTimeOutMP 보호되어 있는 프로퍼티

protected int MouseTimeOutMP
리턴 int

MouseTimeOutTimer 보호되어 있는 프로퍼티

protected DateTime,System MouseTimeOutTimer
리턴 System.DateTime

NeedRecreateSwapChain 보호되어 있는 프로퍼티

protected bool NeedRecreateSwapChain
리턴 bool

PlaylistPlayer 보호되어 있는 프로퍼티

protected PlayListPlayer,MediaPortal.Playlists PlaylistPlayer
리턴 MediaPortal.Playlists.PlayListPlayer

PreviousKeyEvent 보호되어 있는 프로퍼티

protected KeyPressEventArgs,System.Windows.Forms PreviousKeyEvent
리턴 System.Windows.Forms.KeyPressEventArgs

ScreenNumberOverride 보호되어 있는 정적으로 프로퍼티

protected static int ScreenNumberOverride
리턴 int

ScreenSaverEventTimer 보호되어 있는 프로퍼티

protected DateTime,System ScreenSaverEventTimer
리턴 System.DateTime

ShuttingDown 보호되어 있는 프로퍼티

protected bool ShuttingDown
리턴 bool

SkinOverride 보호되어 있는 정적으로 프로퍼티

protected static string SkinOverride
리턴 string

SplashScreen 보호되어 있는 정적으로 프로퍼티

protected static SplashScreen,MediaPortal SplashScreen
리턴 MediaPortal.SplashScreen

UseEnhancedVideoRenderer 보호되어 있는 프로퍼티

protected bool UseEnhancedVideoRenderer
리턴 bool

UseMadVideoRenderer 보호되어 있는 프로퍼티

protected bool UseMadVideoRenderer
리턴 bool

Volume 보호되어 있는 정적으로 프로퍼티

protected static int Volume
리턴 int

WINDOWS_NATIVE_RESOLUTION 보호되어 있는 정적으로 프로퍼티

protected static Size,System.Drawing WINDOWS_NATIVE_RESOLUTION
리턴 System.Drawing.Size

Windowed 보호되어 있는 프로퍼티

protected bool Windowed
리턴 bool

WindowedOverride 보호되어 있는 정적으로 프로퍼티

protected static bool WindowedOverride
리턴 bool

_backupBounds 보호되어 있는 정적으로 프로퍼티

protected static Rectangle,System.Drawing _backupBounds
리턴 System.Drawing.Rectangle

_backupscreen 보호되어 있는 정적으로 프로퍼티

protected static Screen,System.Windows.Forms _backupscreen
리턴 System.Windows.Forms.Screen

_firstLoadedScreen 보호되어 있는 정적으로 프로퍼티

protected static bool _firstLoadedScreen
리턴 bool

_presentParams 보호되어 있는 프로퍼티

protected PresentParameters _presentParams
리턴 PresentParameters

_presentParamsBackup 보호되어 있는 프로퍼티

protected PresentParameters _presentParamsBackup
리턴 PresentParameters

_restoreLoadedScreen 보호되어 있는 정적으로 프로퍼티

protected static bool _restoreLoadedScreen
리턴 bool

_screenFocus 보호되어 있는 정적으로 프로퍼티

protected static Screen,System.Windows.Forms _screenFocus
리턴 System.Windows.Forms.Screen