OSDN Git Service

#36897 [DTXC] MIDIインポート機能の呼び出し口を、ファイルメニュー内にも配置。
[dtxmania/dtxmania.git] / SlimDXc_Jun2010(VC++2008) / source / direct3d9 / AdapterInformationEx.h
1 /*\r
2 * Copyright (c) 2007-2010 SlimDX Group\r
3\r
4 * Permission is hereby granted, free of charge, to any person obtaining a copy\r
5 * of this software and associated documentation files (the "Software"), to deal\r
6 * in the Software without restriction, including without limitation the rights\r
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
8 * copies of the Software, and to permit persons to whom the Software is\r
9 * furnished to do so, subject to the following conditions:\r
10\r
11 * The above copyright notice and this permission notice shall be included in\r
12 * all copies or substantial portions of the Software.\r
13\r
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
20 * THE SOFTWARE.\r
21 */\r
22 #pragma once\r
23 \r
24 #include "Enums.h"\r
25 #include "AdapterExCollection.h"\r
26 #include "DisplayModeFilter.h"\r
27 \r
28 namespace SlimDX\r
29 {\r
30         namespace Direct3D9\r
31         {\r
32                 ref class AdapterDetails;\r
33                 value class DisplayModeEx;\r
34                 ref class Capabilities;\r
35                 ref class DisplayModeExCollection;\r
36 \r
37                 /// <summary>Dscribes the capabilities and properties of an available adapter.</summary>\r
38                 /// <unmanaged>None</unmanaged>\r
39                 public ref class AdapterInformationEx\r
40                 {\r
41                 private:\r
42                         IDirect3D9Ex *m_direct3D;\r
43                         AdapterDetails^ details;\r
44 \r
45                 internal:\r
46                         initonly int m_Adapter;\r
47 \r
48                         AdapterInformationEx( IDirect3D9Ex *direct3D, unsigned int adapter, bool checkWhql );\r
49 \r
50                 public:\r
51                         /// <summary>\r
52                         /// Gets the adapter ordinal.\r
53                         /// </summary>\r
54                         property int Adapter\r
55                         {\r
56                                 int get() { return m_Adapter; }\r
57                         }\r
58 \r
59                         /// <summary>\r
60                         /// Gets the monitor associated with the adapter.\r
61                         /// </summary>\r
62                         property System::IntPtr Monitor { System::IntPtr get(); }\r
63 \r
64                         /// <summary>\r
65                         /// Gets the current extended display mode of the adapter.\r
66                         /// </summary>\r
67                         property DisplayModeEx CurrentDisplayMode { DisplayModeEx get(); }\r
68 \r
69                         /// <summary>\r
70                         /// Gets a list of all possible display modes for the adapter.\r
71                         /// </summary>\r
72                         /// <param name="filter">The desired characteristics of the display mode.</param>\r
73                         /// <returns>A collection of possibly display modes.</returns>\r
74             DisplayModeExCollection^ GetDisplayModes( DisplayModeFilter filter );\r
75 \r
76                         /// <summary>\r
77                         /// Gets the capabilities of the adapter.\r
78                         /// </summary>\r
79                         /// <param name="type">The desired device type.</param>\r
80                         /// <returns>A <see cref="Capabilities"/> object containing the capabilities of the adapter.</returns>\r
81             Capabilities^ GetCaps( DeviceType type );\r
82 \r
83                         /// <summary>\r
84                         /// Gets or sets the adapter details.\r
85                         /// </summary>\r
86                         property AdapterDetails^ Details\r
87                         {\r
88                                 AdapterDetails^ get() { return details; }\r
89                         }\r
90                 };\r
91         }\r
92 }