OSDN Git Service

DTXMania089リリースに際してのtag付け。
[dtxmania/dtxmania.git] / 110401(DTXMania089) / SlimDXc_Jun2010(VC++2008) / source / directinput / DeviceImage.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 \r
26 namespace SlimDX\r
27 {\r
28         namespace DirectInput\r
29         {\r
30                 public ref class DeviceImage\r
31                 {\r
32                 private:\r
33                         System::String^ path;\r
34                         ImageUsage usage;\r
35                         int viewId;\r
36                         System::Drawing::Rectangle overlay;\r
37                         int instance;\r
38                         ObjectDeviceType type;\r
39                         array<System::Drawing::Point>^ calloutLine;\r
40                         System::Drawing::Rectangle calloutRectangle;\r
41                         TextAlignment alignment;\r
42 \r
43                 internal:\r
44                         DeviceImage( const DIDEVICEIMAGEINFO &image );\r
45 \r
46                 public:\r
47                         property System::String^ Path\r
48                         {\r
49                                 System::String^ get() { return path; }\r
50                         }\r
51 \r
52                         property ImageUsage Usage\r
53                         {\r
54                                 ImageUsage get() { return usage; }\r
55                         }\r
56 \r
57                         property int ViewId\r
58                         {\r
59                                 int get() { return viewId; }\r
60                         }\r
61 \r
62                         property System::Drawing::Rectangle Overlay\r
63                         {\r
64                                 System::Drawing::Rectangle get() { return overlay; }\r
65                         }\r
66                         \r
67                         property int Instance\r
68                         {\r
69                                 int get() { return instance; }\r
70                         }\r
71 \r
72                         property ObjectDeviceType Type\r
73                         {\r
74                                 ObjectDeviceType get() { return type; }\r
75                         }\r
76 \r
77                         property array<System::Drawing::Point>^ CalloutLine\r
78                         {\r
79                                 array<System::Drawing::Point>^ get() { return calloutLine; }\r
80                         }\r
81 \r
82                         property System::Drawing::Rectangle CalloutRectangle\r
83                         {\r
84                                 System::Drawing::Rectangle get() { return calloutRectangle; }\r
85                         }\r
86 \r
87                         property TextAlignment Alignment\r
88                         {\r
89                                 TextAlignment get() { return alignment; }\r
90                         }\r
91                 };\r
92         }\r
93 }