2 * Copyright (c) 2007-2010 SlimDX Group
\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
11 * The above copyright notice and this permission notice shall be included in
\r
12 * all copies or substantial portions of the Software.
\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
25 #include "AdapterExCollection.h"
\r
26 #include "DisplayModeFilter.h"
\r
32 ref class AdapterDetails;
\r
33 value class DisplayModeEx;
\r
34 ref class Capabilities;
\r
35 ref class DisplayModeExCollection;
\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
42 IDirect3D9Ex *m_direct3D;
\r
43 AdapterDetails^ details;
\r
46 initonly int m_Adapter;
\r
48 AdapterInformationEx( IDirect3D9Ex *direct3D, unsigned int adapter, bool checkWhql );
\r
52 /// Gets the adapter ordinal.
\r
54 property int Adapter
\r
56 int get() { return m_Adapter; }
\r
60 /// Gets the monitor associated with the adapter.
\r
62 property System::IntPtr Monitor { System::IntPtr get(); }
\r
65 /// Gets the current extended display mode of the adapter.
\r
67 property DisplayModeEx CurrentDisplayMode { DisplayModeEx get(); }
\r
70 /// Gets a list of all possible display modes for the adapter.
\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
77 /// Gets the capabilities of the adapter.
\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
84 /// Gets or sets the adapter details.
\r
86 property AdapterDetails^ Details
\r
88 AdapterDetails^ get() { return details; }
\r