windows.ui.idl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. /*
  2. * Copyright 2022 Mohamad Al-Jaf
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  17. */
  18. #ifdef __WIDL__
  19. #pragma winrt ns_prefix
  20. #endif
  21. import "inspectable.idl";
  22. import "asyncinfo.idl";
  23. import "eventtoken.idl";
  24. import "windowscontracts.idl";
  25. import "windows.foundation.idl";
  26. namespace Windows.UI {
  27. typedef struct Color Color;
  28. typedef struct WindowId WindowId;
  29. interface IColorHelper;
  30. interface IColorHelperStatics;
  31. interface IColorHelperStatics2;
  32. interface IColors;
  33. interface IColorsStatics;
  34. interface IUIContentRoot;
  35. interface IUIContext;
  36. runtimeclass ColorHelper;
  37. runtimeclass Colors;
  38. runtimeclass UIContentRoot;
  39. runtimeclass UIContext;
  40. declare {
  41. interface Windows.Foundation.Collections.IIterable<Windows.UI.Color>;
  42. interface Windows.Foundation.Collections.IIterable<Windows.UI.WindowId>;
  43. interface Windows.Foundation.Collections.IIterator<Windows.UI.Color>;
  44. interface Windows.Foundation.Collections.IIterator<Windows.UI.WindowId>;
  45. interface Windows.Foundation.Collections.IVectorView<Windows.UI.WindowId>;
  46. interface Windows.Foundation.IReference<Windows.UI.Color>;
  47. }
  48. [
  49. contract(Windows.Foundation.UniversalApiContract, 1.0)
  50. ]
  51. struct Color
  52. {
  53. BYTE A;
  54. BYTE R;
  55. BYTE G;
  56. BYTE B;
  57. };
  58. [
  59. contract(Windows.Foundation.UniversalApiContract, 12.0)
  60. ]
  61. struct WindowId
  62. {
  63. UINT64 Value;
  64. };
  65. [
  66. contract(Windows.Foundation.UniversalApiContract, 1.0),
  67. exclusiveto(Windows.UI.ColorHelper),
  68. uuid(193cfbe7-65c7-4540-ad08-6283ba76879a)
  69. ]
  70. interface IColorHelper : IInspectable
  71. {
  72. }
  73. [
  74. contract(Windows.Foundation.UniversalApiContract, 1.0),
  75. exclusiveto(Windows.UI.ColorHelper),
  76. uuid(8504dbea-fb6a-4144-a6c2-33499c9284f5)
  77. ]
  78. interface IColorHelperStatics : IInspectable
  79. {
  80. HRESULT FromArgb([in] BYTE a, [in] BYTE r, [in] BYTE g, [in] BYTE b, [out, retval] Windows.UI.Color *value);
  81. }
  82. [
  83. contract(Windows.Foundation.UniversalApiContract, 4.0),
  84. exclusiveto(Windows.UI.ColorHelper),
  85. uuid(24d9af02-6eb0-4b94-855c-fcf0818d9a16)
  86. ]
  87. interface IColorHelperStatics2 : IInspectable
  88. {
  89. HRESULT ToDisplayName([in] Windows.UI.Color color, [out, retval] HSTRING *value);
  90. }
  91. [
  92. contract(Windows.Foundation.UniversalApiContract, 1.0),
  93. exclusiveto(Windows.UI.Colors),
  94. uuid(9b8c9326-4ca6-4ce5-8994-9eff65cabdcc)
  95. ]
  96. interface IColors : IInspectable
  97. {
  98. }
  99. [
  100. contract(Windows.Foundation.UniversalApiContract, 1.0),
  101. exclusiveto(Windows.UI.Colors),
  102. uuid(cff52e04-cca6-4614-a17e-754910c84a99)
  103. ]
  104. interface IColorsStatics : IInspectable
  105. {
  106. [propget] HRESULT AliceBlue([out, retval] Windows.UI.Color *value);
  107. [propget] HRESULT AntiqueWhite([out, retval] Windows.UI.Color *value);
  108. [propget] HRESULT Aqua([out, retval] Windows.UI.Color *value);
  109. [propget] HRESULT Aquamarine([out, retval] Windows.UI.Color *value);
  110. [propget] HRESULT Azure([out, retval] Windows.UI.Color *value);
  111. [propget] HRESULT Beige([out, retval] Windows.UI.Color *value);
  112. [propget] HRESULT Bisque([out, retval] Windows.UI.Color *value);
  113. [propget] HRESULT Black([out, retval] Windows.UI.Color *value);
  114. [propget] HRESULT BlanchedAlmond([out, retval] Windows.UI.Color *value);
  115. [propget] HRESULT Blue([out, retval] Windows.UI.Color *value);
  116. [propget] HRESULT BlueViolet([out, retval] Windows.UI.Color *value);
  117. [propget] HRESULT Brown([out, retval] Windows.UI.Color *value);
  118. [propget] HRESULT BurlyWood([out, retval] Windows.UI.Color *value);
  119. [propget] HRESULT CadetBlue([out, retval] Windows.UI.Color *value);
  120. [propget] HRESULT Chartreuse([out, retval] Windows.UI.Color *value);
  121. [propget] HRESULT Chocolate([out, retval] Windows.UI.Color *value);
  122. [propget] HRESULT Coral([out, retval] Windows.UI.Color *value);
  123. [propget] HRESULT CornflowerBlue([out, retval] Windows.UI.Color *value);
  124. [propget] HRESULT Cornsilk([out, retval] Windows.UI.Color *value);
  125. [propget] HRESULT Crimson([out, retval] Windows.UI.Color *value);
  126. [propget] HRESULT Cyan([out, retval] Windows.UI.Color *value);
  127. [propget] HRESULT DarkBlue([out, retval] Windows.UI.Color *value);
  128. [propget] HRESULT DarkCyan([out, retval] Windows.UI.Color *value);
  129. [propget] HRESULT DarkGoldenrod([out, retval] Windows.UI.Color *value);
  130. [propget] HRESULT DarkGray([out, retval] Windows.UI.Color *value);
  131. [propget] HRESULT DarkGreen([out, retval] Windows.UI.Color *value);
  132. [propget] HRESULT DarkKhaki([out, retval] Windows.UI.Color *value);
  133. [propget] HRESULT DarkMagenta([out, retval] Windows.UI.Color *value);
  134. [propget] HRESULT DarkOliveGreen([out, retval] Windows.UI.Color *value);
  135. [propget] HRESULT DarkOrange([out, retval] Windows.UI.Color *value);
  136. [propget] HRESULT DarkOrchid([out, retval] Windows.UI.Color *value);
  137. [propget] HRESULT DarkRed([out, retval] Windows.UI.Color *value);
  138. [propget] HRESULT DarkSalmon([out, retval] Windows.UI.Color *value);
  139. [propget] HRESULT DarkSeaGreen([out, retval] Windows.UI.Color *value);
  140. [propget] HRESULT DarkSlateBlue([out, retval] Windows.UI.Color *value);
  141. [propget] HRESULT DarkSlateGray([out, retval] Windows.UI.Color *value);
  142. [propget] HRESULT DarkTurquoise([out, retval] Windows.UI.Color *value);
  143. [propget] HRESULT DarkViolet([out, retval] Windows.UI.Color *value);
  144. [propget] HRESULT DeepPink([out, retval] Windows.UI.Color *value);
  145. [propget] HRESULT DeepSkyBlue([out, retval] Windows.UI.Color *value);
  146. [propget] HRESULT DimGray([out, retval] Windows.UI.Color *value);
  147. [propget] HRESULT DodgerBlue([out, retval] Windows.UI.Color *value);
  148. [propget] HRESULT Firebrick([out, retval] Windows.UI.Color *value);
  149. [propget] HRESULT FloralWhite([out, retval] Windows.UI.Color *value);
  150. [propget] HRESULT ForestGreen([out, retval] Windows.UI.Color *value);
  151. [propget] HRESULT Fuchsia([out, retval] Windows.UI.Color *value);
  152. [propget] HRESULT Gainsboro([out, retval] Windows.UI.Color *value);
  153. [propget] HRESULT GhostWhite([out, retval] Windows.UI.Color *value);
  154. [propget] HRESULT Gold([out, retval] Windows.UI.Color *value);
  155. [propget] HRESULT Goldenrod([out, retval] Windows.UI.Color *value);
  156. [propget] HRESULT Gray([out, retval] Windows.UI.Color *value);
  157. [propget] HRESULT Green([out, retval] Windows.UI.Color *value);
  158. [propget] HRESULT GreenYellow([out, retval] Windows.UI.Color *value);
  159. [propget] HRESULT Honeydew([out, retval] Windows.UI.Color *value);
  160. [propget] HRESULT HotPink([out, retval] Windows.UI.Color *value);
  161. [propget] HRESULT IndianRed([out, retval] Windows.UI.Color *value);
  162. [propget] HRESULT Indigo([out, retval] Windows.UI.Color *value);
  163. [propget] HRESULT Ivory([out, retval] Windows.UI.Color *value);
  164. [propget] HRESULT Khaki([out, retval] Windows.UI.Color *value);
  165. [propget] HRESULT Lavender([out, retval] Windows.UI.Color *value);
  166. [propget] HRESULT LavenderBlush([out, retval] Windows.UI.Color *value);
  167. [propget] HRESULT LawnGreen([out, retval] Windows.UI.Color *value);
  168. [propget] HRESULT LemonChiffon([out, retval] Windows.UI.Color *value);
  169. [propget] HRESULT LightBlue([out, retval] Windows.UI.Color *value);
  170. [propget] HRESULT LightCoral([out, retval] Windows.UI.Color *value);
  171. [propget] HRESULT LightCyan([out, retval] Windows.UI.Color *value);
  172. [propget] HRESULT LightGoldenrodYellow([out, retval] Windows.UI.Color *value);
  173. [propget] HRESULT LightGreen([out, retval] Windows.UI.Color *value);
  174. [propget] HRESULT LightGray([out, retval] Windows.UI.Color *value);
  175. [propget] HRESULT LightPink([out, retval] Windows.UI.Color *value);
  176. [propget] HRESULT LightSalmon([out, retval] Windows.UI.Color *value);
  177. [propget] HRESULT LightSeaGreen([out, retval] Windows.UI.Color *value);
  178. [propget] HRESULT LightSkyBlue([out, retval] Windows.UI.Color *value);
  179. [propget] HRESULT LightSlateGray([out, retval] Windows.UI.Color *value);
  180. [propget] HRESULT LightSteelBlue([out, retval] Windows.UI.Color *value);
  181. [propget] HRESULT LightYellow([out, retval] Windows.UI.Color *value);
  182. [propget] HRESULT Lime([out, retval] Windows.UI.Color *value);
  183. [propget] HRESULT LimeGreen([out, retval] Windows.UI.Color *value);
  184. [propget] HRESULT Linen([out, retval] Windows.UI.Color *value);
  185. [propget] HRESULT Magenta([out, retval] Windows.UI.Color *value);
  186. [propget] HRESULT Maroon([out, retval] Windows.UI.Color *value);
  187. [propget] HRESULT MediumAquamarine([out, retval] Windows.UI.Color *value);
  188. [propget] HRESULT MediumBlue([out, retval] Windows.UI.Color *value);
  189. [propget] HRESULT MediumOrchid([out, retval] Windows.UI.Color *value);
  190. [propget] HRESULT MediumPurple([out, retval] Windows.UI.Color *value);
  191. [propget] HRESULT MediumSeaGreen([out, retval] Windows.UI.Color *value);
  192. [propget] HRESULT MediumSlateBlue([out, retval] Windows.UI.Color *value);
  193. [propget] HRESULT MediumSpringGreen([out, retval] Windows.UI.Color *value);
  194. [propget] HRESULT MediumTurquoise([out, retval] Windows.UI.Color *value);
  195. [propget] HRESULT MediumVioletRed([out, retval] Windows.UI.Color *value);
  196. [propget] HRESULT MidnightBlue([out, retval] Windows.UI.Color *value);
  197. [propget] HRESULT MintCream([out, retval] Windows.UI.Color *value);
  198. [propget] HRESULT MistyRose([out, retval] Windows.UI.Color *value);
  199. [propget] HRESULT Moccasin([out, retval] Windows.UI.Color *value);
  200. [propget] HRESULT NavajoWhite([out, retval] Windows.UI.Color *value);
  201. [propget] HRESULT Navy([out, retval] Windows.UI.Color *value);
  202. [propget] HRESULT OldLace([out, retval] Windows.UI.Color *value);
  203. [propget] HRESULT Olive([out, retval] Windows.UI.Color *value);
  204. [propget] HRESULT OliveDrab([out, retval] Windows.UI.Color *value);
  205. [propget] HRESULT Orange([out, retval] Windows.UI.Color *value);
  206. [propget] HRESULT OrangeRed([out, retval] Windows.UI.Color *value);
  207. [propget] HRESULT Orchid([out, retval] Windows.UI.Color *value);
  208. [propget] HRESULT PaleGoldenrod([out, retval] Windows.UI.Color *value);
  209. [propget] HRESULT PaleGreen([out, retval] Windows.UI.Color *value);
  210. [propget] HRESULT PaleTurquoise([out, retval] Windows.UI.Color *value);
  211. [propget] HRESULT PaleVioletRed([out, retval] Windows.UI.Color *value);
  212. [propget] HRESULT PapayaWhip([out, retval] Windows.UI.Color *value);
  213. [propget] HRESULT PeachPuff([out, retval] Windows.UI.Color *value);
  214. [propget] HRESULT Peru([out, retval] Windows.UI.Color *value);
  215. [propget] HRESULT Pink([out, retval] Windows.UI.Color *value);
  216. [propget] HRESULT Plum([out, retval] Windows.UI.Color *value);
  217. [propget] HRESULT PowderBlue([out, retval] Windows.UI.Color *value);
  218. [propget] HRESULT Purple([out, retval] Windows.UI.Color *value);
  219. [propget] HRESULT Red([out, retval] Windows.UI.Color *value);
  220. [propget] HRESULT RosyBrown([out, retval] Windows.UI.Color *value);
  221. [propget] HRESULT RoyalBlue([out, retval] Windows.UI.Color *value);
  222. [propget] HRESULT SaddleBrown([out, retval] Windows.UI.Color *value);
  223. [propget] HRESULT Salmon([out, retval] Windows.UI.Color *value);
  224. [propget] HRESULT SandyBrown([out, retval] Windows.UI.Color *value);
  225. [propget] HRESULT SeaGreen([out, retval] Windows.UI.Color *value);
  226. [propget] HRESULT SeaShell([out, retval] Windows.UI.Color *value);
  227. [propget] HRESULT Sienna([out, retval] Windows.UI.Color *value);
  228. [propget] HRESULT Silver([out, retval] Windows.UI.Color *value);
  229. [propget] HRESULT SkyBlue([out, retval] Windows.UI.Color *value);
  230. [propget] HRESULT SlateBlue([out, retval] Windows.UI.Color *value);
  231. [propget] HRESULT SlateGray([out, retval] Windows.UI.Color *value);
  232. [propget] HRESULT Snow([out, retval] Windows.UI.Color *value);
  233. [propget] HRESULT SpringGreen([out, retval] Windows.UI.Color *value);
  234. [propget] HRESULT SteelBlue([out, retval] Windows.UI.Color *value);
  235. [propget] HRESULT Tan([out, retval] Windows.UI.Color *value);
  236. [propget] HRESULT Teal([out, retval] Windows.UI.Color *value);
  237. [propget] HRESULT Thistle([out, retval] Windows.UI.Color *value);
  238. [propget] HRESULT Tomato([out, retval] Windows.UI.Color *value);
  239. [propget] HRESULT Transparent([out, retval] Windows.UI.Color *value);
  240. [propget] HRESULT Turquoise([out, retval] Windows.UI.Color *value);
  241. [propget] HRESULT Violet([out, retval] Windows.UI.Color *value);
  242. [propget] HRESULT Wheat([out, retval] Windows.UI.Color *value);
  243. [propget] HRESULT White([out, retval] Windows.UI.Color *value);
  244. [propget] HRESULT WhiteSmoke([out, retval] Windows.UI.Color *value);
  245. [propget] HRESULT Yellow([out, retval] Windows.UI.Color *value);
  246. [propget] HRESULT YellowGreen([out, retval] Windows.UI.Color *value);
  247. }
  248. [
  249. contract(Windows.Foundation.UniversalApiContract, 8.0),
  250. exclusiveto(Windows.UI.UIContentRoot),
  251. uuid(1dfcbac6-b36b-5cb9-9bc5-2b7a0eddc378)
  252. ]
  253. interface IUIContentRoot : IInspectable
  254. {
  255. [propget] HRESULT UIContext([out, retval] Windows.UI.UIContext **value);
  256. }
  257. [
  258. contract(Windows.Foundation.UniversalApiContract, 8.0),
  259. exclusiveto(Windows.UI.UIContext),
  260. uuid(bb5cfacd-5bd8-59d0-a59e-1c17a4d6d243)
  261. ]
  262. interface IUIContext : IInspectable
  263. {
  264. }
  265. [
  266. contract(Windows.Foundation.UniversalApiContract, 1.0),
  267. marshaling_behavior(agile),
  268. static(Windows.UI.IColorHelperStatics, Windows.Foundation.UniversalApiContract, 1.0),
  269. static(Windows.UI.IColorHelperStatics2, Windows.Foundation.UniversalApiContract, 4.0),
  270. threading(both)
  271. ]
  272. runtimeclass ColorHelper
  273. {
  274. [default] interface Windows.UI.IColorHelper;
  275. }
  276. [
  277. contract(Windows.Foundation.UniversalApiContract, 1.0),
  278. marshaling_behavior(agile),
  279. static(Windows.UI.IColorsStatics, Windows.Foundation.UniversalApiContract, 1.0),
  280. threading(both)
  281. ]
  282. runtimeclass Colors
  283. {
  284. [default] interface Windows.UI.IColors;
  285. }
  286. [
  287. contract(Windows.Foundation.UniversalApiContract, 8.0),
  288. marshaling_behavior(agile),
  289. threading(both)
  290. ]
  291. runtimeclass UIContentRoot
  292. {
  293. [default] interface Windows.UI.IUIContentRoot;
  294. }
  295. [
  296. contract(Windows.Foundation.UniversalApiContract, 8.0),
  297. marshaling_behavior(agile),
  298. threading(both)
  299. ]
  300. runtimeclass UIContext
  301. {
  302. [default] interface Windows.UI.IUIContext;
  303. }
  304. }