C# 클래스 TEdit.UI.Xaml.XnaContentHost.GraphicsDeviceControl

A control that enables XNA graphics rendering inside a WPF control through the use of a hosted child Hwnd.
상속: System.Windows.Interop.HwndHost
파일 보기 프로젝트 열기: TEdit/Terraria-Map-Editor

공개 메소드들

메소드 설명
CaptureMouse ( ) : void

Captures the mouse, hiding it and trapping it inside the window bounds.

This method is useful for tooling scenarios where you only care about the mouse deltas and want the user to be able to continue interacting with the window while they move the mouse. A good example of this is rotating an object based on the mouse deltas where through capturing you can spin and spin without having the cursor leave the window.

GraphicsDeviceControl ( ) : System
ReleaseMouseCapture ( ) : void

Releases the capture of the mouse which makes it visible and allows it to leave the window bounds.

SetCursor ( System.Windows.Input.Cursor cursor ) : void

보호된 메소드들

메소드 설명
BuildWindowCore ( HandleRef hwndParent ) : HandleRef
DestroyWindowCore ( HandleRef hwnd ) : void
Dispose ( bool disposing ) : void
WndProc ( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool &handled ) : IntPtr

비공개 메소드들

메소드 설명
CompositionTarget_Rendering ( object sender, EventArgs e ) : void
CreateHostWindow ( IntPtr hWndParent ) : IntPtr

Creates the host window as a child of the parent window.

Current_Activated ( object sender, EventArgs e ) : void
Current_Deactivated ( object sender, EventArgs e ) : void
InitGraphicsDevice ( ) : bool
RegisterWindowClass ( ) : void

Registers the window class.

ResetMouseState ( ) : void
XnaWindowHost_Loaded ( object sender, RoutedEventArgs e ) : void
XnaWindowHost_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void

메소드 상세

BuildWindowCore() 보호된 메소드

protected BuildWindowCore ( HandleRef hwndParent ) : HandleRef
hwndParent System.Runtime.InteropServices.HandleRef
리턴 System.Runtime.InteropServices.HandleRef

CaptureMouse() 공개 메소드

Captures the mouse, hiding it and trapping it inside the window bounds.
This method is useful for tooling scenarios where you only care about the mouse deltas and want the user to be able to continue interacting with the window while they move the mouse. A good example of this is rotating an object based on the mouse deltas where through capturing you can spin and spin without having the cursor leave the window.
public CaptureMouse ( ) : void
리턴 void

DestroyWindowCore() 보호된 메소드

protected DestroyWindowCore ( HandleRef hwnd ) : void
hwnd System.Runtime.InteropServices.HandleRef
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GraphicsDeviceControl() 공개 메소드

public GraphicsDeviceControl ( ) : System
리턴 System

ReleaseMouseCapture() 공개 메소드

Releases the capture of the mouse which makes it visible and allows it to leave the window bounds.
public ReleaseMouseCapture ( ) : void
리턴 void

SetCursor() 공개 메소드

public SetCursor ( System.Windows.Input.Cursor cursor ) : void
cursor System.Windows.Input.Cursor
리턴 void

WndProc() 보호된 메소드

protected WndProc ( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool &handled ) : IntPtr
hwnd System.IntPtr
msg int
wParam System.IntPtr
lParam System.IntPtr
handled bool
리턴 System.IntPtr