2 * Copyright 2022 Mohamad Al-Jaf
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.
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.
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
20 #pragma winrt ns_prefix
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";
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
;
37 interface IClosedCaptionPropertiesStatics
;
39 runtimeclass ClosedCaptionProperties
;
42 contract
(Windows.Foundation.UniversalApiContract
, 1.0)
44 enum ClosedCaptionColor
58 contract
(Windows.Foundation.UniversalApiContract
, 1.0)
60 enum ClosedCaptionEdgeEffect
71 contract
(Windows.Foundation.UniversalApiContract
, 1.0)
73 enum ClosedCaptionOpacity
76 OneHundredPercent
= 1,
77 SeventyFivePercent
= 2,
78 TwentyFivePercent
= 3,
83 contract
(Windows.Foundation.UniversalApiContract
, 1.0)
85 enum ClosedCaptionSize
89 OneHundredPercent
= 2,
90 OneHundredFiftyPercent
= 3,
91 TwoHundredPercent
= 4,
95 contract
(Windows.Foundation.UniversalApiContract
, 1.0)
97 enum ClosedCaptionStyle
100 MonospacedWithSerifs
= 1,
101 ProportionalWithSerifs
= 2,
102 MonospacedWithoutSerifs
= 3,
103 ProportionalWithoutSerifs
= 4,
110 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
111 exclusiveto
(Windows.Media.ClosedCaptioning.ClosedCaptionProperties
),
112 uuid(10aa1f84
-cc30
-4141-b503
-5272289e0c20
)
114 interface IClosedCaptionPropertiesStatics
: IInspectable
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
);
131 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
132 marshaling_behavior
(agile
),
133 static
(Windows.Media.ClosedCaptioning.IClosedCaptionPropertiesStatics
, Windows.Foundation.UniversalApiContract
, 1.0),
136 runtimeclass ClosedCaptionProperties