Debian Codegraph @

mingw-w64-headers/include/windows.ui.text.core.idl

raw
1 /*
2 * Copyright (C) 2026 Alistair Leslie-Hughes
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.globalization.idl";
29 import "windows.ui.viewmanagement.idl";
30 import "windows.ui.text.idl";
31
32 namespace Windows.UI.Text.Core
33 {
34 interface ICoreTextCompositionCompletedEventArgs;
35 interface ICoreTextCompositionSegment;
36 interface ICoreTextCompositionStartedEventArgs;
37 interface ICoreTextEditContext;
38 interface ICoreTextFormatUpdatingEventArgs;
39 interface ICoreTextLayoutBounds;
40 interface ICoreTextLayoutRequest;
41 interface ICoreTextLayoutRequestedEventArgs;
42 interface ICoreTextSelectionRequest;
43 interface ICoreTextSelectionRequestedEventArgs;
44 interface ICoreTextSelectionUpdatingEventArgs;
45 interface ICoreTextServicesManager;
46 interface ICoreTextServicesManagerStatics;
47 interface ICoreTextTextRequest;
48 interface ICoreTextTextRequestedEventArgs;
49 interface ICoreTextTextUpdatingEventArgs;
50
51 typedef enum CoreTextFormatUpdatingReason CoreTextFormatUpdatingReason;
52 typedef enum CoreTextFormatUpdatingResult CoreTextFormatUpdatingResult;
53 typedef enum CoreTextInputPaneDisplayPolicy CoreTextInputPaneDisplayPolicy;
54 typedef enum CoreTextInputScope CoreTextInputScope;
55 typedef enum CoreTextSelectionUpdatingResult CoreTextSelectionUpdatingResult;
56 typedef enum CoreTextTextUpdatingResult CoreTextTextUpdatingResult;
57
58 runtimeclass CoreTextCompositionCompletedEventArgs;
59 runtimeclass CoreTextCompositionSegment;
60 runtimeclass CoreTextCompositionStartedEventArgs;
61 runtimeclass CoreTextEditContext;
62 runtimeclass CoreTextFormatUpdatingEventArgs;
63 runtimeclass CoreTextLayoutBounds;
64 runtimeclass CoreTextLayoutRequest;
65 runtimeclass CoreTextLayoutRequestedEventArgs;
66 runtimeclass CoreTextSelectionRequest;
67 runtimeclass CoreTextSelectionRequestedEventArgs;
68 runtimeclass CoreTextSelectionUpdatingEventArgs;
69 runtimeclass CoreTextServicesManager;
70 runtimeclass CoreTextTextRequest;
71 runtimeclass CoreTextTextRequestedEventArgs;
72 runtimeclass CoreTextTextUpdatingEventArgs;
73
74 typedef struct CoreTextRange CoreTextRange;
75
76 [
77 contract(Windows.Foundation.UniversalApiContract, 1.0)
78 ]
79 struct CoreTextRange
80 {
81 INT32 StartCaretPosition;
82 INT32 EndCaretPosition;
83 };
84
85 declare
86 {
87 interface Windows.Foundation.Collections.IVectorView<Windows.UI.Text.Core.CoreTextCompositionSegment*>;
88 interface Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*, IInspectable*>;
89 interface Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*, Windows.UI.Text.Core.CoreTextCompositionCompletedEventArgs*>;
90 interface Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*, Windows.UI.Text.Core.CoreTextCompositionStartedEventArgs*>;
91 interface Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*, Windows.UI.Text.Core.CoreTextFormatUpdatingEventArgs*>;
92 interface Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*, Windows.UI.Text.Core.CoreTextLayoutRequestedEventArgs*>;
93 interface Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*, Windows.UI.Text.Core.CoreTextSelectionRequestedEventArgs*>;
94 interface Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*, Windows.UI.Text.Core.CoreTextSelectionUpdatingEventArgs*>;
95 interface Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*, Windows.UI.Text.Core.CoreTextTextRequestedEventArgs*>;
96 interface Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*, Windows.UI.Text.Core.CoreTextTextUpdatingEventArgs*>;
97 interface Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextServicesManager*, IInspectable*>;
98 }
99
100 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
101 enum CoreTextFormatUpdatingResult
102 {
103 Succeeded = 0,
104 Failed = 1
105 };
106
107 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
108 enum CoreTextFormatUpdatingReason
109 {
110 None = 0,
111 CompositionUnconverted = 1,
112 CompositionConverted = 2,
113 CompositionTargetUnconverted = 3,
114 CompositionTargetConverted = 4
115 };
116
117 [
118 contract(Windows.Foundation.UniversalApiContract, 1.0)
119 ]
120 enum CoreTextSelectionUpdatingResult
121 {
122 Succeeded = 0,
123 Failed = 1
124 };
125
126 [
127 contract(Windows.Foundation.UniversalApiContract, 1.0)
128 ]
129 enum CoreTextTextUpdatingResult
130 {
131 Succeeded = 0,
132 Failed = 1
133 };
134
135 [
136 contract(Windows.Foundation.UniversalApiContract, 1.0)
137 ]
138 enum CoreTextInputPaneDisplayPolicy
139 {
140 Automatic = 0,
141 Manual = 1
142 };
143
144 [
145 contract(Windows.Foundation.UniversalApiContract, 1.0)
146 ]
147 enum CoreTextInputScope
148 {
149 Default = 0,
150 Url = 1,
151 FilePath = 2,
152 FileName = 3,
153 EmailUserName = 4,
154 EmailAddress = 5,
155 UserName = 6,
156 PersonalFullName = 7,
157 PersonalNamePrefix = 8,
158 PersonalGivenName = 9,
159 PersonalMiddleName = 10,
160 PersonalSurname = 11,
161 PersonalNameSuffix = 12,
162 Address = 13,
163 AddressPostalCode = 14,
164 AddressStreet = 15,
165 AddressStateOrProvince = 16,
166 AddressCity = 17,
167 AddressCountryName = 18,
168 AddressCountryShortName = 19,
169 CurrencyAmountAndSymbol = 20,
170 CurrencyAmount = 21,
171 Date = 22,
172 DateMonth = 23,
173 DateDay = 24,
174 DateYear = 25,
175 DateMonthName = 26,
176 DateDayName = 27,
177 Number = 29,
178 SingleCharacter = 30,
179 Password = 31,
180 TelephoneNumber = 32,
181 TelephoneCountryCode = 33,
182 TelephoneAreaCode = 34,
183 TelephoneLocalNumber = 35,
184 Time = 36,
185 TimeHour = 37,
186 TimeMinuteOrSecond = 38,
187 NumberFullWidth = 39,
188 AlphanumericHalfWidth = 40,
189 AlphanumericFullWidth = 41,
190 CurrencyChinese = 42,
191 Bopomofo = 43,
192 Hiragana = 44,
193 KatakanaHalfWidth = 45,
194 KatakanaFullWidth = 46,
195 Hanja = 47,
196 HangulHalfWidth = 48,
197 HangulFullWidth = 49,
198 Search = 50,
199 Formula = 51,
200 SearchIncremental = 52,
201 ChineseHalfWidth = 53,
202 ChineseFullWidth = 54,
203 NativeScript = 55,
204 Text = 57,
205 Chat = 58,
206 NameOrPhoneNumber = 59,
207 EmailUserNameOrAddress = 60,
208 Private = 61,
209 Maps = 62,
210 PasswordNumeric = 63,
211 FormulaNumber = 67
212 };
213
214 [
215 contract(Windows.Foundation.UniversalApiContract, 1.0),
216 exclusiveto(Windows.UI.Text.Core.CoreTextServicesManager),
217 uuid(1520a388-e2cf-4d65-aeb9-b32d86fe39b9)
218 ]
219 interface ICoreTextServicesManagerStatics : IInspectable
220 {
221 HRESULT GetForCurrentView([out, retval] Windows.UI.Text.Core.CoreTextServicesManager** value);
222 }
223
224 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
225 [exclusiveto(Windows.UI.Text.Core.CoreTextCompositionSegment)]
226 [uuid(776c6bd9-4ead-4da7-8f47-3a88b523cc34)]
227 interface ICoreTextCompositionSegment : IInspectable
228 {
229 [propget] HRESULT PreconversionString([out, retval] HSTRING* value);
230 [propget] HRESULT Range([out, retval] Windows.UI.Text.Core.CoreTextRange* value);
231 }
232
233
234 [
235 contract(Windows.Foundation.UniversalApiContract, 1.0),
236 exclusiveto(Windows.UI.Text.Core.CoreTextCompositionCompletedEventArgs),
237 uuid(1f34ebb6-b79f-4121-a5e7-fda9b8616e30)
238 ]
239 interface ICoreTextCompositionCompletedEventArgs : IInspectable
240 {
241 [propget] HRESULT IsCanceled([out, retval] boolean* value);
242 [propget] HRESULT CompositionSegments([out, retval] Windows.Foundation.Collections.IVectorView<Windows.UI.Text.Core.CoreTextCompositionSegment*>** value);
243 HRESULT GetDeferral([out, retval] Windows.Foundation.Deferral** value);
244 }
245
246 [
247 contract(Windows.Foundation.UniversalApiContract, 1.0),
248 exclusiveto(Windows.UI.Text.Core.CoreTextCompositionStartedEventArgs),
249 uuid(276b16a9-64e7-4ab0-bc4b-a02d73835bfb)
250 ]
251 interface ICoreTextCompositionStartedEventArgs : IInspectable
252 {
253 [propget] HRESULT IsCanceled([out, retval] boolean* value);
254 HRESULT GetDeferral([out, retval] Windows.Foundation.Deferral** value);
255 }
256
257 [
258 contract(Windows.Foundation.UniversalApiContract, 1.0),
259 exclusiveto(Windows.UI.Text.Core.CoreTextFormatUpdatingEventArgs),
260 uuid(7310bd33-b4a8-43b1-b37b-0724d4aca7ab)
261 ]
262 interface ICoreTextFormatUpdatingEventArgs : IInspectable
263 {
264 [propget] HRESULT Range([out, retval] Windows.UI.Text.Core.CoreTextRange* value);
265 [propget] HRESULT TextColor([out, retval] Windows.Foundation.IReference<Windows.UI.ViewManagement.UIElementType>** value);
266 [propget] HRESULT BackgroundColor([out, retval] Windows.Foundation.IReference<Windows.UI.ViewManagement.UIElementType>** value);
267 [propget] HRESULT UnderlineColor([out, retval] Windows.Foundation.IReference<Windows.UI.ViewManagement.UIElementType>** value);
268 [propget] HRESULT UnderlineType([out, retval] Windows.Foundation.IReference<Windows.UI.Text.UnderlineType>** value);
269 [propget] HRESULT Reason([out, retval] Windows.UI.Text.Core.CoreTextFormatUpdatingReason* value);
270 [propget] HRESULT Result([out, retval] Windows.UI.Text.Core.CoreTextFormatUpdatingResult* value);
271 [propput] HRESULT Result([in] Windows.UI.Text.Core.CoreTextFormatUpdatingResult value);
272 [propget] HRESULT IsCanceled([out, retval] boolean* value);
273 HRESULT GetDeferral([out, retval] Windows.Foundation.Deferral** value);
274 }
275
276
277 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
278 [exclusiveto(Windows.UI.Text.Core.CoreTextSelectionUpdatingEventArgs)]
279 [uuid(d445839f-fe7f-4bd5-8a26-0922c1b3e639)]
280 interface ICoreTextSelectionUpdatingEventArgs : IInspectable
281 {
282 [propget] HRESULT Selection([out, retval] Windows.UI.Text.Core.CoreTextRange* value);
283 [propget] HRESULT Result([out, retval] Windows.UI.Text.Core.CoreTextSelectionUpdatingResult* value);
284 [propput] HRESULT Result([in] Windows.UI.Text.Core.CoreTextSelectionUpdatingResult value);
285 [propget] HRESULT IsCanceled([out, retval] boolean* value);
286 HRESULT GetDeferral([out, retval] Windows.Foundation.Deferral** value);
287 }
288
289 [
290 contract(Windows.Foundation.UniversalApiContract, 1.0),
291 exclusiveto(Windows.UI.Text.Core.CoreTextTextUpdatingEventArgs),
292 uuid(eea7918d-cc2b-4f03-8ff6-02fd217db450)
293 ]
294 interface ICoreTextTextUpdatingEventArgs : IInspectable
295 {
296 [propget] HRESULT Range([out, retval] Windows.UI.Text.Core.CoreTextRange* value);
297 [propget] HRESULT Text([out, retval] HSTRING* value);
298 [propget] HRESULT NewSelection([out, retval] Windows.UI.Text.Core.CoreTextRange* value);
299 [propget] HRESULT InputLanguage([out, retval] Windows.Globalization.Language** value);
300 [propget] HRESULT Result([out, retval] Windows.UI.Text.Core.CoreTextTextUpdatingResult* value);
301 [propput] HRESULT Result([in] Windows.UI.Text.Core.CoreTextTextUpdatingResult value);
302 [propget] HRESULT IsCanceled([out, retval] boolean* value);
303 HRESULT GetDeferral([out, retval] Windows.Foundation.Deferral** value);
304 }
305
306 [
307 contract(Windows.Foundation.UniversalApiContract, 1.0),
308 exclusiveto(Windows.UI.Text.Core.CoreTextLayoutBounds),
309 uuid(e972c974-4436-4917-80d0-a525e4ca6780)
310 ]
311 interface ICoreTextLayoutBounds : IInspectable
312 {
313 [propget] HRESULT TextBounds([out, retval] Windows.Foundation.Rect* value);
314 [propput] HRESULT TextBounds([in] Windows.Foundation.Rect value);
315 [propget] HRESULT ControlBounds([out, retval] Windows.Foundation.Rect* value);
316 [propput] HRESULT ControlBounds([in] Windows.Foundation.Rect value);
317 }
318
319 [
320 contract(Windows.Foundation.UniversalApiContract, 1.0),
321 exclusiveto(Windows.UI.Text.Core.CoreTextLayoutRequest),
322 uuid(2555a8cc-51fd-4f03-98bf-ac78174d68e0)
323 ]
324 interface ICoreTextLayoutRequest : IInspectable
325 {
326 [propget] HRESULT Range([out, retval] Windows.UI.Text.Core.CoreTextRange* value);
327 [propget] HRESULT LayoutBounds([out, retval] Windows.UI.Text.Core.CoreTextLayoutBounds** value);
328 [propget] HRESULT IsCanceled([out, retval] boolean* value);
329 HRESULT GetDeferral([out, retval] Windows.Foundation.Deferral** value);
330 }
331
332 [
333 contract(Windows.Foundation.UniversalApiContract, 1.0),
334 exclusiveto(Windows.UI.Text.Core.CoreTextLayoutRequestedEventArgs),
335 uuid(b1dc6ae0-9a7b-4e9e-a566-4a6b5f8ad676)
336 ]
337 interface ICoreTextLayoutRequestedEventArgs : IInspectable
338 {
339 [propget] HRESULT Request([out, retval] Windows.UI.Text.Core.CoreTextLayoutRequest** value);
340 }
341
342 [
343 contract(Windows.Foundation.UniversalApiContract, 1.0),
344 exclusiveto(Windows.UI.Text.Core.CoreTextSelectionRequest),
345 uuid(f0a70403-208b-4301-883c-74ca7485fd8d)
346 ]
347 interface ICoreTextSelectionRequest : IInspectable
348 {
349 [propget] HRESULT Selection([out, retval] Windows.UI.Text.Core.CoreTextRange* value);
350 [propput] HRESULT Selection([in] Windows.UI.Text.Core.CoreTextRange value);
351 [propget] HRESULT IsCanceled([out, retval] boolean* value);
352 HRESULT GetDeferral([out, retval] Windows.Foundation.Deferral** value);
353 }
354
355 [
356 contract(Windows.Foundation.UniversalApiContract, 1.0),
357 exclusiveto(Windows.UI.Text.Core.CoreTextSelectionRequestedEventArgs),
358 uuid(13c6682b-f614-421a-8f4b-9ec8a5a37fcd)
359 ]
360 interface ICoreTextSelectionRequestedEventArgs : IInspectable
361 {
362 [propget] HRESULT Request([out, retval] Windows.UI.Text.Core.CoreTextSelectionRequest** value);
363 }
364
365 [
366 contract(Windows.Foundation.UniversalApiContract, 1.0),
367 exclusiveto(Windows.UI.Text.Core.CoreTextTextRequest),
368 uuid(50d950a9-f51e-4cc1-8ca1-e6346d1a61be)
369 ]
370 interface ICoreTextTextRequest : IInspectable
371 {
372 [propget] HRESULT Range([out, retval] Windows.UI.Text.Core.CoreTextRange* value);
373 [propget] HRESULT Text([out, retval] HSTRING* value);
374 [propput] HRESULT Text([in] HSTRING value);
375 [propget] HRESULT IsCanceled([out, retval] boolean* value);
376 HRESULT GetDeferral([out, retval] Windows.Foundation.Deferral** value);
377 }
378
379 [
380 contract(Windows.Foundation.UniversalApiContract, 1.0),
381 exclusiveto(Windows.UI.Text.Core.CoreTextTextRequestedEventArgs),
382 uuid(f096a2d0-41c6-4c02-8b1a-d953b00cabb3)
383 ]
384 interface ICoreTextTextRequestedEventArgs : IInspectable
385 {
386 [propget] HRESULT Request([out, retval] Windows.UI.Text.Core.CoreTextTextRequest** value);
387 }
388
389 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
390 [exclusiveto(Windows.UI.Text.Core.CoreTextEditContext)]
391 [uuid(bf6608af-4041-47c3-b263-a918eb5eaef2)]
392 interface ICoreTextEditContext : IInspectable
393 {
394 [propget] HRESULT Name([out, retval] HSTRING* value);
395 [propput] HRESULT Name([in] HSTRING value);
396 [propget] HRESULT InputScope([out, retval] Windows.UI.Text.Core.CoreTextInputScope* value);
397 [propput] HRESULT InputScope([in] Windows.UI.Text.Core.CoreTextInputScope value);
398 [propget] HRESULT IsReadOnly([out, retval] boolean* value);
399 [propput] HRESULT IsReadOnly([in] boolean value);
400 [propget] HRESULT InputPaneDisplayPolicy([out, retval] Windows.UI.Text.Core.CoreTextInputPaneDisplayPolicy* value);
401 [propput] HRESULT InputPaneDisplayPolicy([in] Windows.UI.Text.Core.CoreTextInputPaneDisplayPolicy value);
402 [eventadd] HRESULT TextRequested([in] Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*,
403 Windows.UI.Text.Core.CoreTextTextRequestedEventArgs*>* handler,
404 [out, retval] EventRegistrationToken* cookie);
405 [eventremove] HRESULT TextRequested([in] EventRegistrationToken cookie);
406 [eventadd] HRESULT SelectionRequested([in] Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*,
407 Windows.UI.Text.Core.CoreTextSelectionRequestedEventArgs*>* handler,
408 [out, retval] EventRegistrationToken* cookie);
409 [eventremove] HRESULT SelectionRequested([in] EventRegistrationToken cookie);
410 [eventadd] HRESULT LayoutRequested([in] Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*,
411 Windows.UI.Text.Core.CoreTextLayoutRequestedEventArgs*>* handler,
412 [out, retval] EventRegistrationToken* cookie);
413 [eventremove] HRESULT LayoutRequested([in] EventRegistrationToken cookie);
414 [eventadd] HRESULT TextUpdating([in] Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*,
415 Windows.UI.Text.Core.CoreTextTextUpdatingEventArgs*>* handler,
416 [out, retval] EventRegistrationToken* cookie);
417 [eventremove] HRESULT TextUpdating([in] EventRegistrationToken cookie);
418 [eventadd] HRESULT SelectionUpdating([in] Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*,
419 Windows.UI.Text.Core.CoreTextSelectionUpdatingEventArgs*>* handler,
420 [out, retval] EventRegistrationToken* cookie);
421 [eventremove] HRESULT SelectionUpdating([in] EventRegistrationToken cookie);
422 [eventadd] HRESULT FormatUpdating([in] Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*,
423 Windows.UI.Text.Core.CoreTextFormatUpdatingEventArgs*>* handler,
424 [out, retval] EventRegistrationToken* cookie);
425 [eventremove] HRESULT FormatUpdating([in] EventRegistrationToken cookie);
426 [eventadd] HRESULT CompositionStarted([in] Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*,
427 Windows.UI.Text.Core.CoreTextCompositionStartedEventArgs*>* handler,
428 [out, retval] EventRegistrationToken* cookie);
429 [eventremove] HRESULT CompositionStarted([in] EventRegistrationToken cookie);
430 [eventadd] HRESULT CompositionCompleted([in] Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*,
431 Windows.UI.Text.Core.CoreTextCompositionCompletedEventArgs*>* handler,
432 [out, retval] EventRegistrationToken* cookie);
433 [eventremove] HRESULT CompositionCompleted([in] EventRegistrationToken cookie);
434 [eventadd] HRESULT FocusRemoved([in] Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextEditContext*,
435 IInspectable*>* handler, [out, retval] EventRegistrationToken* cookie);
436 [eventremove] HRESULT FocusRemoved([in] EventRegistrationToken cookie);
437 HRESULT NotifyFocusEnter();
438 HRESULT NotifyFocusLeave();
439 HRESULT NotifyTextChanged([in] Windows.UI.Text.Core.CoreTextRange modifiedRange, [in] INT32 newLength,
440 [in] Windows.UI.Text.Core.CoreTextRange newSelection);
441 HRESULT NotifySelectionChanged([in] Windows.UI.Text.Core.CoreTextRange selection);
442 HRESULT NotifyLayoutChanged();
443 }
444
445 [
446 contract(Windows.Foundation.UniversalApiContract, 1.0),
447 exclusiveto(Windows.UI.Text.Core.CoreTextServicesManager),
448 uuid(c2507d83-6e0a-4a8a-bdf8-1948874854ba)
449 ]
450 interface ICoreTextServicesManager : IInspectable
451 {
452 [propget] HRESULT InputLanguage([out, retval] Windows.Globalization.Language** value);
453 [eventadd] HRESULT InputLanguageChanged([in] Windows.Foundation.TypedEventHandler<Windows.UI.Text.Core.CoreTextServicesManager*,
454 IInspectable*>* handler, [out,retval] EventRegistrationToken* cookie);
455 [eventremove] HRESULT InputLanguageChanged([in] EventRegistrationToken cookie);
456 HRESULT CreateEditContext([out,retval] Windows.UI.Text.Core.CoreTextEditContext** out);
457 }
458
459 [
460 contract(Windows.Foundation.UniversalApiContract, 1.0),
461 marshaling_behavior(agile),
462 static(Windows.UI.Text.Core.ICoreTextServicesManagerStatics, Windows.Foundation.UniversalApiContract, 1.0)
463 ]
464 runtimeclass CoreTextServicesManager
465 {
466 [default] interface Windows.UI.Text.Core.ICoreTextServicesManager;
467 }
468
469 [
470 contract(Windows.Foundation.UniversalApiContract, 1.0),
471 marshaling_behavior(agile)
472 ]
473 runtimeclass CoreTextFormatUpdatingEventArgs
474 {
475 [default] interface Windows.UI.Text.Core.ICoreTextFormatUpdatingEventArgs;
476 }
477
478 [
479 contract(Windows.Foundation.UniversalApiContract, 1.0),
480 marshaling_behavior(agile)
481 ]
482 runtimeclass CoreTextEditContext
483 {
484 [default] interface Windows.UI.Text.Core.ICoreTextEditContext;
485 }
486
487 [
488 contract(Windows.Foundation.UniversalApiContract, 1.0),
489 marshaling_behavior(agile)
490 ]
491 runtimeclass CoreTextCompositionCompletedEventArgs
492 {
493 [default] interface Windows.UI.Text.Core.ICoreTextCompositionCompletedEventArgs;
494 }
495
496 [
497 contract(Windows.Foundation.UniversalApiContract, 1.0),
498 marshaling_behavior(agile)
499 ]
500 runtimeclass CoreTextCompositionStartedEventArgs
501 {
502 [default] interface Windows.UI.Text.Core.ICoreTextCompositionStartedEventArgs;
503 }
504
505 [
506 contract(Windows.Foundation.UniversalApiContract, 1.0),
507 marshaling_behavior(agile)
508 ]
509 runtimeclass CoreTextLayoutRequestedEventArgs
510 {
511 [default] interface Windows.UI.Text.Core.ICoreTextLayoutRequestedEventArgs;
512 }
513
514 [
515 contract(Windows.Foundation.UniversalApiContract, 1.0),
516 marshaling_behavior(agile)
517 ]
518 runtimeclass CoreTextSelectionRequestedEventArgs
519 {
520 [default] interface Windows.UI.Text.Core.ICoreTextSelectionRequestedEventArgs;
521 }
522
523 [
524 contract(Windows.Foundation.UniversalApiContract, 1.0),
525 marshaling_behavior(agile)
526 ]
527 runtimeclass CoreTextSelectionUpdatingEventArgs
528 {
529 [default] interface Windows.UI.Text.Core.ICoreTextSelectionUpdatingEventArgs;
530 }
531
532 [
533 contract(Windows.Foundation.UniversalApiContract, 1.0),
534 marshaling_behavior(agile)
535 ]
536 runtimeclass CoreTextTextRequestedEventArgs
537 {
538 [default] interface Windows.UI.Text.Core.ICoreTextTextRequestedEventArgs;
539 }
540
541 [
542 contract(Windows.Foundation.UniversalApiContract, 1.0),
543 marshaling_behavior(agile)
544 ]
545 runtimeclass CoreTextTextUpdatingEventArgs
546 {
547 [default] interface Windows.UI.Text.Core.ICoreTextTextUpdatingEventArgs;
548 }
549
550 [
551 contract(Windows.Foundation.UniversalApiContract, 1.0),
552 marshaling_behavior(agile)
553 ]
554 runtimeclass CoreTextLayoutBounds
555 {
556 [default] interface Windows.UI.Text.Core.ICoreTextLayoutBounds;
557 }
558
559 [
560 contract(Windows.Foundation.UniversalApiContract, 1.0),
561 marshaling_behavior(agile)
562 ]
563 runtimeclass CoreTextLayoutRequest
564 {
565 [default] interface Windows.UI.Text.Core.ICoreTextLayoutRequest;
566 }
567
568 [
569 contract(Windows.Foundation.UniversalApiContract, 1.0),
570 marshaling_behavior(agile)
571 ]
572 runtimeclass CoreTextSelectionRequest
573 {
574 [default] interface Windows.UI.Text.Core.ICoreTextSelectionRequest;
575 }
576
577 [
578 contract(Windows.Foundation.UniversalApiContract, 1.0),
579 marshaling_behavior(agile)
580 ]
581 runtimeclass CoreTextTextRequest
582 {
583 [default] interface Windows.UI.Text.Core.ICoreTextTextRequest;
584 }
585
586 [contract(Windows.Foundation.UniversalApiContract, 1.0)]
587 [marshaling_behavior(agile)]
588 runtimeclass CoreTextCompositionSegment
589 {
590 [default] interface Windows.UI.Text.Core.ICoreTextCompositionSegment;
591 }
592
593 }