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