windows.media.closedcaptioning.idl 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. import "windows.ui.idl";
  27. namespace Windows.Media.ClosedCaptioning {
  28. typedef enum ClosedCaptionColor ClosedCaptionColor;
  29. typedef enum ClosedCaptionEdgeEffect ClosedCaptionEdgeEffect;
  30. typedef enum ClosedCaptionOpacity ClosedCaptionOpacity;
  31. typedef enum ClosedCaptionSize ClosedCaptionSize;
  32. typedef enum ClosedCaptionStyle ClosedCaptionStyle;
  33. interface IClosedCaptionPropertiesStatics;
  34. runtimeclass ClosedCaptionProperties;
  35. [
  36. contract(Windows.Foundation.UniversalApiContract, 1.0)
  37. ]
  38. enum ClosedCaptionColor
  39. {
  40. Default = 0,
  41. White = 1,
  42. Black = 2,
  43. Red = 3,
  44. Green = 4,
  45. Blue = 5,
  46. Yellow = 6,
  47. Magenta = 7,
  48. Cyan = 8,
  49. };
  50. [
  51. contract(Windows.Foundation.UniversalApiContract, 1.0)
  52. ]
  53. enum ClosedCaptionEdgeEffect
  54. {
  55. Default = 0,
  56. None = 1,
  57. Raised = 2,
  58. Depressed = 3,
  59. Uniform = 4,
  60. DropShadow = 5,
  61. };
  62. [
  63. contract(Windows.Foundation.UniversalApiContract, 1.0)
  64. ]
  65. enum ClosedCaptionOpacity
  66. {
  67. Default = 0,
  68. OneHundredPercent = 1,
  69. SeventyFivePercent = 2,
  70. TwentyFivePercent = 3,
  71. ZeroPercent = 4,
  72. };
  73. [
  74. contract(Windows.Foundation.UniversalApiContract, 1.0)
  75. ]
  76. enum ClosedCaptionSize
  77. {
  78. Default = 0,
  79. FiftyPercent = 1,
  80. OneHundredPercent = 2,
  81. OneHundredFiftyPercent = 3,
  82. TwoHundredPercent = 4,
  83. };
  84. [
  85. contract(Windows.Foundation.UniversalApiContract, 1.0)
  86. ]
  87. enum ClosedCaptionStyle
  88. {
  89. Default = 0,
  90. MonospacedWithSerifs = 1,
  91. ProportionalWithSerifs = 2,
  92. MonospacedWithoutSerifs = 3,
  93. ProportionalWithoutSerifs = 4,
  94. Casual = 5,
  95. Cursive = 6,
  96. SmallCapitals = 7,
  97. };
  98. [
  99. contract(Windows.Foundation.UniversalApiContract, 1.0),
  100. exclusiveto(Windows.Media.ClosedCaptioning.ClosedCaptionProperties),
  101. uuid(10aa1f84-cc30-4141-b503-5272289e0c20)
  102. ]
  103. interface IClosedCaptionPropertiesStatics : IInspectable
  104. {
  105. [propget] HRESULT FontColor([out, retval] Windows.Media.ClosedCaptioning.ClosedCaptionColor *value);
  106. [propget] HRESULT ComputedFontColor([out, retval] Windows.UI.Color *value);
  107. [propget] HRESULT FontOpacity([out, retval] Windows.Media.ClosedCaptioning.ClosedCaptionOpacity *value);
  108. [propget] HRESULT FontSize([out, retval] Windows.Media.ClosedCaptioning.ClosedCaptionSize *value);
  109. [propget] HRESULT FontStyle([out, retval] Windows.Media.ClosedCaptioning.ClosedCaptionStyle *value);
  110. [propget] HRESULT FontEffect([out, retval] Windows.Media.ClosedCaptioning.ClosedCaptionEdgeEffect *value);
  111. [propget] HRESULT BackgroundColor([out, retval] Windows.Media.ClosedCaptioning.ClosedCaptionColor *value);
  112. [propget] HRESULT ComputedBackgroundColor([out, retval] Windows.UI.Color *value);
  113. [propget] HRESULT BackgroundOpacity([out, retval] Windows.Media.ClosedCaptioning.ClosedCaptionOpacity *value);
  114. [propget] HRESULT RegionColor([out, retval] Windows.Media.ClosedCaptioning.ClosedCaptionColor *value);
  115. [propget] HRESULT ComputedRegionColor([out, retval] Windows.UI.Color *value);
  116. [propget] HRESULT RegionOpacity([out, retval] Windows.Media.ClosedCaptioning.ClosedCaptionOpacity *value);
  117. }
  118. [
  119. contract(Windows.Foundation.UniversalApiContract, 1.0),
  120. marshaling_behavior(agile),
  121. static(Windows.Media.ClosedCaptioning.IClosedCaptionPropertiesStatics, Windows.Foundation.UniversalApiContract, 1.0),
  122. threading(both)
  123. ]
  124. runtimeclass ClosedCaptionProperties
  125. {
  126. }
  127. }