winrt-Windows.UI.Input.Inking 2.0.0b1__cp39-cp39-win_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,544 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation
13
+ import winrt.windows.foundation.collections
14
+ import winrt.windows.foundation.numerics
15
+ import winrt.windows.storage.streams
16
+ import winrt.windows.ui
17
+ import winrt.windows.ui.core
18
+ import winrt.windows.ui.input
19
+
20
+ from winrt.windows.ui.input.inking import HandwritingLineHeight, InkDrawingAttributesKind, InkHighContrastAdjustment, InkInputProcessingMode, InkInputRightDragAction, InkManipulationMode, InkPersistenceFormat, InkPresenterPredefinedConfiguration, InkPresenterStencilKind, InkRecognitionTarget, PenHandedness, PenTipShape
21
+
22
+ Self = typing.TypeVar('Self')
23
+
24
+ class InkDrawingAttributes_Static(type):
25
+ def create_for_pencil(cls) -> typing.Optional[InkDrawingAttributes]: ...
26
+
27
+ class InkDrawingAttributes(winrt.system.Object, metaclass=InkDrawingAttributes_Static):
28
+ @staticmethod
29
+ def _from(obj: winrt.system.Object, /) -> InkDrawingAttributes: ...
30
+ def __new__(cls: typing.Type[InkDrawingAttributes]) -> InkDrawingAttributes:...
31
+ @_property
32
+ def size(self) -> winrt.windows.foundation.Size: ...
33
+ @size.setter
34
+ def size(self, value: winrt.windows.foundation.Size) -> None: ...
35
+ @_property
36
+ def pen_tip(self) -> PenTipShape: ...
37
+ @pen_tip.setter
38
+ def pen_tip(self, value: PenTipShape) -> None: ...
39
+ @_property
40
+ def ignore_pressure(self) -> bool: ...
41
+ @ignore_pressure.setter
42
+ def ignore_pressure(self, value: bool) -> None: ...
43
+ @_property
44
+ def fit_to_curve(self) -> bool: ...
45
+ @fit_to_curve.setter
46
+ def fit_to_curve(self, value: bool) -> None: ...
47
+ @_property
48
+ def color(self) -> winrt.windows.ui.Color: ...
49
+ @color.setter
50
+ def color(self, value: winrt.windows.ui.Color) -> None: ...
51
+ @_property
52
+ def pen_tip_transform(self) -> winrt.windows.foundation.numerics.Matrix3x2: ...
53
+ @pen_tip_transform.setter
54
+ def pen_tip_transform(self, value: winrt.windows.foundation.numerics.Matrix3x2) -> None: ...
55
+ @_property
56
+ def draw_as_highlighter(self) -> bool: ...
57
+ @draw_as_highlighter.setter
58
+ def draw_as_highlighter(self, value: bool) -> None: ...
59
+ @_property
60
+ def kind(self) -> InkDrawingAttributesKind: ...
61
+ @_property
62
+ def pencil_properties(self) -> typing.Optional[InkDrawingAttributesPencilProperties]: ...
63
+ @_property
64
+ def ignore_tilt(self) -> bool: ...
65
+ @ignore_tilt.setter
66
+ def ignore_tilt(self, value: bool) -> None: ...
67
+ @_property
68
+ def modeler_attributes(self) -> typing.Optional[InkModelerAttributes]: ...
69
+
70
+ class InkDrawingAttributesPencilProperties(winrt.system.Object):
71
+ @staticmethod
72
+ def _from(obj: winrt.system.Object, /) -> InkDrawingAttributesPencilProperties: ...
73
+ @_property
74
+ def opacity(self) -> winrt.system.Double: ...
75
+ @opacity.setter
76
+ def opacity(self, value: winrt.system.Double) -> None: ...
77
+
78
+ class InkInputConfiguration(winrt.system.Object):
79
+ @staticmethod
80
+ def _from(obj: winrt.system.Object, /) -> InkInputConfiguration: ...
81
+ @_property
82
+ def is_primary_barrel_button_input_enabled(self) -> bool: ...
83
+ @is_primary_barrel_button_input_enabled.setter
84
+ def is_primary_barrel_button_input_enabled(self, value: bool) -> None: ...
85
+ @_property
86
+ def is_eraser_input_enabled(self) -> bool: ...
87
+ @is_eraser_input_enabled.setter
88
+ def is_eraser_input_enabled(self, value: bool) -> None: ...
89
+ @_property
90
+ def is_pen_haptic_feedback_enabled(self) -> bool: ...
91
+ @is_pen_haptic_feedback_enabled.setter
92
+ def is_pen_haptic_feedback_enabled(self, value: bool) -> None: ...
93
+
94
+ class InkInputProcessingConfiguration(winrt.system.Object):
95
+ @staticmethod
96
+ def _from(obj: winrt.system.Object, /) -> InkInputProcessingConfiguration: ...
97
+ @_property
98
+ def right_drag_action(self) -> InkInputRightDragAction: ...
99
+ @right_drag_action.setter
100
+ def right_drag_action(self, value: InkInputRightDragAction) -> None: ...
101
+ @_property
102
+ def mode(self) -> InkInputProcessingMode: ...
103
+ @mode.setter
104
+ def mode(self, value: InkInputProcessingMode) -> None: ...
105
+
106
+ class InkManager(winrt.system.Object):
107
+ @staticmethod
108
+ def _from(obj: winrt.system.Object, /) -> InkManager: ...
109
+ def __new__(cls: typing.Type[InkManager]) -> InkManager:...
110
+ def add_stroke(self, stroke: typing.Optional[InkStroke], /) -> None: ...
111
+ def can_paste_from_clipboard(self) -> bool: ...
112
+ def copy_selected_to_clipboard(self) -> None: ...
113
+ def delete_selected(self) -> winrt.windows.foundation.Rect: ...
114
+ def get_recognition_results(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[InkRecognitionResult]]: ...
115
+ def get_recognizers(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[InkRecognizer]]: ...
116
+ def get_strokes(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[InkStroke]]: ...
117
+ def load_async(self, input_stream: typing.Optional[winrt.windows.storage.streams.IInputStream], /) -> winrt.windows.foundation.IAsyncActionWithProgress[winrt.system.UInt64]: ...
118
+ def move_selected(self, translation: winrt.windows.foundation.Point, /) -> winrt.windows.foundation.Rect: ...
119
+ def paste_from_clipboard(self, position: winrt.windows.foundation.Point, /) -> winrt.windows.foundation.Rect: ...
120
+ def process_pointer_down(self, pointer_point: typing.Optional[winrt.windows.ui.input.PointerPoint], /) -> None: ...
121
+ def process_pointer_up(self, pointer_point: typing.Optional[winrt.windows.ui.input.PointerPoint], /) -> winrt.windows.foundation.Rect: ...
122
+ def process_pointer_update(self, pointer_point: typing.Optional[winrt.windows.ui.input.PointerPoint], /) -> typing.Optional[winrt.system.Object]: ...
123
+ @typing.overload
124
+ def recognize_async(self, recognition_target: InkRecognitionTarget, /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.foundation.collections.IVectorView[InkRecognitionResult]]: ...
125
+ @typing.overload
126
+ def recognize_async(self, stroke_collection: typing.Optional[InkStrokeContainer], recognition_target: InkRecognitionTarget, /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.foundation.collections.IVectorView[InkRecognitionResult]]: ...
127
+ def save_async(self, output_stream: typing.Optional[winrt.windows.storage.streams.IOutputStream], /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
128
+ def select_with_line(self, from_: winrt.windows.foundation.Point, to: winrt.windows.foundation.Point, /) -> winrt.windows.foundation.Rect: ...
129
+ def select_with_poly_line(self, polyline: typing.Iterable[winrt.windows.foundation.Point], /) -> winrt.windows.foundation.Rect: ...
130
+ def set_default_drawing_attributes(self, drawing_attributes: typing.Optional[InkDrawingAttributes], /) -> None: ...
131
+ def set_default_recognizer(self, recognizer: typing.Optional[InkRecognizer], /) -> None: ...
132
+ def update_recognition_results(self, recognition_results: winrt.windows.foundation.collections.IVectorView[InkRecognitionResult], /) -> None: ...
133
+ @_property
134
+ def mode(self) -> InkManipulationMode: ...
135
+ @mode.setter
136
+ def mode(self, value: InkManipulationMode) -> None: ...
137
+ @_property
138
+ def bounding_rect(self) -> winrt.windows.foundation.Rect: ...
139
+
140
+ class InkModelerAttributes(winrt.system.Object):
141
+ @staticmethod
142
+ def _from(obj: winrt.system.Object, /) -> InkModelerAttributes: ...
143
+ @_property
144
+ def scaling_factor(self) -> winrt.system.Single: ...
145
+ @scaling_factor.setter
146
+ def scaling_factor(self, value: winrt.system.Single) -> None: ...
147
+ @_property
148
+ def prediction_time(self) -> datetime.timedelta: ...
149
+ @prediction_time.setter
150
+ def prediction_time(self, value: datetime.timedelta) -> None: ...
151
+ @_property
152
+ def use_velocity_based_pressure(self) -> bool: ...
153
+ @use_velocity_based_pressure.setter
154
+ def use_velocity_based_pressure(self, value: bool) -> None: ...
155
+
156
+ class InkPoint(winrt.system.Object):
157
+ @staticmethod
158
+ def _from(obj: winrt.system.Object, /) -> InkPoint: ...
159
+ @typing.overload
160
+ def __new__(cls: typing.Type[InkPoint], position: winrt.windows.foundation.Point, pressure: winrt.system.Single, tilt_x: winrt.system.Single, tilt_y: winrt.system.Single, timestamp: winrt.system.UInt64) -> InkPoint:...
161
+ @typing.overload
162
+ def __new__(cls: typing.Type[InkPoint], position: winrt.windows.foundation.Point, pressure: winrt.system.Single) -> InkPoint:...
163
+ @_property
164
+ def position(self) -> winrt.windows.foundation.Point: ...
165
+ @_property
166
+ def pressure(self) -> winrt.system.Single: ...
167
+ @_property
168
+ def tilt_x(self) -> winrt.system.Single: ...
169
+ @_property
170
+ def tilt_y(self) -> winrt.system.Single: ...
171
+ @_property
172
+ def timestamp(self) -> winrt.system.UInt64: ...
173
+
174
+ class InkPresenter(winrt.system.Object):
175
+ @staticmethod
176
+ def _from(obj: winrt.system.Object, /) -> InkPresenter: ...
177
+ def activate_custom_drying(self) -> typing.Optional[InkSynchronizer]: ...
178
+ def copy_default_drawing_attributes(self) -> typing.Optional[InkDrawingAttributes]: ...
179
+ def set_predefined_configuration(self, value: InkPresenterPredefinedConfiguration, /) -> None: ...
180
+ def update_default_drawing_attributes(self, value: typing.Optional[InkDrawingAttributes], /) -> None: ...
181
+ def add_strokes_collected(self, handler: winrt.windows.foundation.TypedEventHandler[InkPresenter, InkStrokesCollectedEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
182
+ def remove_strokes_collected(self, cookie: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
183
+ def add_strokes_erased(self, handler: winrt.windows.foundation.TypedEventHandler[InkPresenter, InkStrokesErasedEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
184
+ def remove_strokes_erased(self, cookie: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
185
+ @_property
186
+ def stroke_container(self) -> typing.Optional[InkStrokeContainer]: ...
187
+ @stroke_container.setter
188
+ def stroke_container(self, value: typing.Optional[InkStrokeContainer]) -> None: ...
189
+ @_property
190
+ def is_input_enabled(self) -> bool: ...
191
+ @is_input_enabled.setter
192
+ def is_input_enabled(self, value: bool) -> None: ...
193
+ @_property
194
+ def input_device_types(self) -> winrt.windows.ui.core.CoreInputDeviceTypes: ...
195
+ @input_device_types.setter
196
+ def input_device_types(self, value: winrt.windows.ui.core.CoreInputDeviceTypes) -> None: ...
197
+ @_property
198
+ def input_processing_configuration(self) -> typing.Optional[InkInputProcessingConfiguration]: ...
199
+ @_property
200
+ def stroke_input(self) -> typing.Optional[InkStrokeInput]: ...
201
+ @_property
202
+ def unprocessed_input(self) -> typing.Optional[InkUnprocessedInput]: ...
203
+ @_property
204
+ def high_contrast_adjustment(self) -> InkHighContrastAdjustment: ...
205
+ @high_contrast_adjustment.setter
206
+ def high_contrast_adjustment(self, value: InkHighContrastAdjustment) -> None: ...
207
+ @_property
208
+ def input_configuration(self) -> typing.Optional[InkInputConfiguration]: ...
209
+
210
+ class InkPresenterProtractor(winrt.system.Object):
211
+ @staticmethod
212
+ def _from(obj: winrt.system.Object, /) -> InkPresenterProtractor: ...
213
+ def __new__(cls: typing.Type[InkPresenterProtractor], ink_presenter: typing.Optional[InkPresenter]) -> InkPresenterProtractor:...
214
+ @_property
215
+ def radius(self) -> winrt.system.Double: ...
216
+ @radius.setter
217
+ def radius(self, value: winrt.system.Double) -> None: ...
218
+ @_property
219
+ def is_resizable(self) -> bool: ...
220
+ @is_resizable.setter
221
+ def is_resizable(self, value: bool) -> None: ...
222
+ @_property
223
+ def is_center_marker_visible(self) -> bool: ...
224
+ @is_center_marker_visible.setter
225
+ def is_center_marker_visible(self, value: bool) -> None: ...
226
+ @_property
227
+ def is_angle_readout_visible(self) -> bool: ...
228
+ @is_angle_readout_visible.setter
229
+ def is_angle_readout_visible(self, value: bool) -> None: ...
230
+ @_property
231
+ def are_tick_marks_visible(self) -> bool: ...
232
+ @are_tick_marks_visible.setter
233
+ def are_tick_marks_visible(self, value: bool) -> None: ...
234
+ @_property
235
+ def are_rays_visible(self) -> bool: ...
236
+ @are_rays_visible.setter
237
+ def are_rays_visible(self, value: bool) -> None: ...
238
+ @_property
239
+ def accent_color(self) -> winrt.windows.ui.Color: ...
240
+ @accent_color.setter
241
+ def accent_color(self, value: winrt.windows.ui.Color) -> None: ...
242
+ @_property
243
+ def transform(self) -> winrt.windows.foundation.numerics.Matrix3x2: ...
244
+ @transform.setter
245
+ def transform(self, value: winrt.windows.foundation.numerics.Matrix3x2) -> None: ...
246
+ @_property
247
+ def is_visible(self) -> bool: ...
248
+ @is_visible.setter
249
+ def is_visible(self, value: bool) -> None: ...
250
+ @_property
251
+ def foreground_color(self) -> winrt.windows.ui.Color: ...
252
+ @foreground_color.setter
253
+ def foreground_color(self, value: winrt.windows.ui.Color) -> None: ...
254
+ @_property
255
+ def background_color(self) -> winrt.windows.ui.Color: ...
256
+ @background_color.setter
257
+ def background_color(self, value: winrt.windows.ui.Color) -> None: ...
258
+ @_property
259
+ def kind(self) -> InkPresenterStencilKind: ...
260
+
261
+ class InkPresenterRuler(winrt.system.Object):
262
+ @staticmethod
263
+ def _from(obj: winrt.system.Object, /) -> InkPresenterRuler: ...
264
+ def __new__(cls: typing.Type[InkPresenterRuler], ink_presenter: typing.Optional[InkPresenter]) -> InkPresenterRuler:...
265
+ @_property
266
+ def width(self) -> winrt.system.Double: ...
267
+ @width.setter
268
+ def width(self, value: winrt.system.Double) -> None: ...
269
+ @_property
270
+ def length(self) -> winrt.system.Double: ...
271
+ @length.setter
272
+ def length(self, value: winrt.system.Double) -> None: ...
273
+ @_property
274
+ def is_compass_visible(self) -> bool: ...
275
+ @is_compass_visible.setter
276
+ def is_compass_visible(self, value: bool) -> None: ...
277
+ @_property
278
+ def are_tick_marks_visible(self) -> bool: ...
279
+ @are_tick_marks_visible.setter
280
+ def are_tick_marks_visible(self, value: bool) -> None: ...
281
+ @_property
282
+ def transform(self) -> winrt.windows.foundation.numerics.Matrix3x2: ...
283
+ @transform.setter
284
+ def transform(self, value: winrt.windows.foundation.numerics.Matrix3x2) -> None: ...
285
+ @_property
286
+ def is_visible(self) -> bool: ...
287
+ @is_visible.setter
288
+ def is_visible(self, value: bool) -> None: ...
289
+ @_property
290
+ def foreground_color(self) -> winrt.windows.ui.Color: ...
291
+ @foreground_color.setter
292
+ def foreground_color(self, value: winrt.windows.ui.Color) -> None: ...
293
+ @_property
294
+ def background_color(self) -> winrt.windows.ui.Color: ...
295
+ @background_color.setter
296
+ def background_color(self, value: winrt.windows.ui.Color) -> None: ...
297
+ @_property
298
+ def kind(self) -> InkPresenterStencilKind: ...
299
+
300
+ class InkRecognitionResult(winrt.system.Object):
301
+ @staticmethod
302
+ def _from(obj: winrt.system.Object, /) -> InkRecognitionResult: ...
303
+ def get_strokes(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[InkStroke]]: ...
304
+ def get_text_candidates(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[str]]: ...
305
+ @_property
306
+ def bounding_rect(self) -> winrt.windows.foundation.Rect: ...
307
+
308
+ class InkRecognizer(winrt.system.Object):
309
+ @staticmethod
310
+ def _from(obj: winrt.system.Object, /) -> InkRecognizer: ...
311
+ @_property
312
+ def name(self) -> str: ...
313
+
314
+ class InkRecognizerContainer(winrt.system.Object):
315
+ @staticmethod
316
+ def _from(obj: winrt.system.Object, /) -> InkRecognizerContainer: ...
317
+ def __new__(cls: typing.Type[InkRecognizerContainer]) -> InkRecognizerContainer:...
318
+ def get_recognizers(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[InkRecognizer]]: ...
319
+ def recognize_async(self, stroke_collection: typing.Optional[InkStrokeContainer], recognition_target: InkRecognitionTarget, /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.foundation.collections.IVectorView[InkRecognitionResult]]: ...
320
+ def set_default_recognizer(self, recognizer: typing.Optional[InkRecognizer], /) -> None: ...
321
+
322
+ class InkStroke(winrt.system.Object):
323
+ @staticmethod
324
+ def _from(obj: winrt.system.Object, /) -> InkStroke: ...
325
+ def clone(self) -> typing.Optional[InkStroke]: ...
326
+ def get_ink_points(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[InkPoint]]: ...
327
+ def get_rendering_segments(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[InkStrokeRenderingSegment]]: ...
328
+ @_property
329
+ def selected(self) -> bool: ...
330
+ @selected.setter
331
+ def selected(self, value: bool) -> None: ...
332
+ @_property
333
+ def drawing_attributes(self) -> typing.Optional[InkDrawingAttributes]: ...
334
+ @drawing_attributes.setter
335
+ def drawing_attributes(self, value: typing.Optional[InkDrawingAttributes]) -> None: ...
336
+ @_property
337
+ def bounding_rect(self) -> winrt.windows.foundation.Rect: ...
338
+ @_property
339
+ def recognized(self) -> bool: ...
340
+ @_property
341
+ def point_transform(self) -> winrt.windows.foundation.numerics.Matrix3x2: ...
342
+ @point_transform.setter
343
+ def point_transform(self, value: winrt.windows.foundation.numerics.Matrix3x2) -> None: ...
344
+ @_property
345
+ def stroke_started_time(self) -> typing.Optional[typing.Optional[datetime.datetime]]: ...
346
+ @stroke_started_time.setter
347
+ def stroke_started_time(self, value: typing.Optional[typing.Optional[datetime.datetime]]) -> None: ...
348
+ @_property
349
+ def stroke_duration(self) -> typing.Optional[typing.Optional[datetime.timedelta]]: ...
350
+ @stroke_duration.setter
351
+ def stroke_duration(self, value: typing.Optional[typing.Optional[datetime.timedelta]]) -> None: ...
352
+ @_property
353
+ def id(self) -> winrt.system.UInt32: ...
354
+ @_property
355
+ def pointer_id(self) -> winrt.system.UInt32: ...
356
+
357
+ class InkStrokeBuilder(winrt.system.Object):
358
+ @staticmethod
359
+ def _from(obj: winrt.system.Object, /) -> InkStrokeBuilder: ...
360
+ def __new__(cls: typing.Type[InkStrokeBuilder]) -> InkStrokeBuilder:...
361
+ def append_to_stroke(self, pointer_point: typing.Optional[winrt.windows.ui.input.PointerPoint], /) -> typing.Optional[winrt.windows.ui.input.PointerPoint]: ...
362
+ def begin_stroke(self, pointer_point: typing.Optional[winrt.windows.ui.input.PointerPoint], /) -> None: ...
363
+ def create_stroke(self, points: typing.Iterable[winrt.windows.foundation.Point], /) -> typing.Optional[InkStroke]: ...
364
+ @typing.overload
365
+ def create_stroke_from_ink_points(self, ink_points: typing.Iterable[InkPoint], transform: winrt.windows.foundation.numerics.Matrix3x2, /) -> typing.Optional[InkStroke]: ...
366
+ @typing.overload
367
+ def create_stroke_from_ink_points(self, ink_points: typing.Iterable[InkPoint], transform: winrt.windows.foundation.numerics.Matrix3x2, stroke_started_time: typing.Optional[datetime.datetime], stroke_duration: typing.Optional[datetime.timedelta], /) -> typing.Optional[InkStroke]: ...
368
+ def end_stroke(self, pointer_point: typing.Optional[winrt.windows.ui.input.PointerPoint], /) -> typing.Optional[InkStroke]: ...
369
+ def set_default_drawing_attributes(self, drawing_attributes: typing.Optional[InkDrawingAttributes], /) -> None: ...
370
+
371
+ class InkStrokeContainer(winrt.system.Object):
372
+ @staticmethod
373
+ def _from(obj: winrt.system.Object, /) -> InkStrokeContainer: ...
374
+ def __new__(cls: typing.Type[InkStrokeContainer]) -> InkStrokeContainer:...
375
+ def add_stroke(self, stroke: typing.Optional[InkStroke], /) -> None: ...
376
+ def add_strokes(self, strokes: typing.Iterable[InkStroke], /) -> None: ...
377
+ def can_paste_from_clipboard(self) -> bool: ...
378
+ def clear(self) -> None: ...
379
+ def copy_selected_to_clipboard(self) -> None: ...
380
+ def delete_selected(self) -> winrt.windows.foundation.Rect: ...
381
+ def get_recognition_results(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[InkRecognitionResult]]: ...
382
+ def get_stroke_by_id(self, id: winrt.system.UInt32, /) -> typing.Optional[InkStroke]: ...
383
+ def get_strokes(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[InkStroke]]: ...
384
+ def load_async(self, input_stream: typing.Optional[winrt.windows.storage.streams.IInputStream], /) -> winrt.windows.foundation.IAsyncActionWithProgress[winrt.system.UInt64]: ...
385
+ def move_selected(self, translation: winrt.windows.foundation.Point, /) -> winrt.windows.foundation.Rect: ...
386
+ def paste_from_clipboard(self, position: winrt.windows.foundation.Point, /) -> winrt.windows.foundation.Rect: ...
387
+ @typing.overload
388
+ def save_async(self, output_stream: typing.Optional[winrt.windows.storage.streams.IOutputStream], /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
389
+ @typing.overload
390
+ def save_async(self, output_stream: typing.Optional[winrt.windows.storage.streams.IOutputStream], ink_persistence_format: InkPersistenceFormat, /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
391
+ def select_with_line(self, from_: winrt.windows.foundation.Point, to: winrt.windows.foundation.Point, /) -> winrt.windows.foundation.Rect: ...
392
+ def select_with_poly_line(self, polyline: typing.Iterable[winrt.windows.foundation.Point], /) -> winrt.windows.foundation.Rect: ...
393
+ def update_recognition_results(self, recognition_results: winrt.windows.foundation.collections.IVectorView[InkRecognitionResult], /) -> None: ...
394
+ @_property
395
+ def bounding_rect(self) -> winrt.windows.foundation.Rect: ...
396
+
397
+ class InkStrokeInput(winrt.system.Object):
398
+ @staticmethod
399
+ def _from(obj: winrt.system.Object, /) -> InkStrokeInput: ...
400
+ def add_stroke_canceled(self, handler: winrt.windows.foundation.TypedEventHandler[InkStrokeInput, winrt.windows.ui.core.PointerEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
401
+ def remove_stroke_canceled(self, cookie: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
402
+ def add_stroke_continued(self, handler: winrt.windows.foundation.TypedEventHandler[InkStrokeInput, winrt.windows.ui.core.PointerEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
403
+ def remove_stroke_continued(self, cookie: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
404
+ def add_stroke_ended(self, handler: winrt.windows.foundation.TypedEventHandler[InkStrokeInput, winrt.windows.ui.core.PointerEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
405
+ def remove_stroke_ended(self, cookie: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
406
+ def add_stroke_started(self, handler: winrt.windows.foundation.TypedEventHandler[InkStrokeInput, winrt.windows.ui.core.PointerEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
407
+ def remove_stroke_started(self, cookie: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
408
+ @_property
409
+ def ink_presenter(self) -> typing.Optional[InkPresenter]: ...
410
+
411
+ class InkStrokeRenderingSegment(winrt.system.Object):
412
+ @staticmethod
413
+ def _from(obj: winrt.system.Object, /) -> InkStrokeRenderingSegment: ...
414
+ @_property
415
+ def bezier_control_point1(self) -> winrt.windows.foundation.Point: ...
416
+ @_property
417
+ def bezier_control_point2(self) -> winrt.windows.foundation.Point: ...
418
+ @_property
419
+ def position(self) -> winrt.windows.foundation.Point: ...
420
+ @_property
421
+ def pressure(self) -> winrt.system.Single: ...
422
+ @_property
423
+ def tilt_x(self) -> winrt.system.Single: ...
424
+ @_property
425
+ def tilt_y(self) -> winrt.system.Single: ...
426
+ @_property
427
+ def twist(self) -> winrt.system.Single: ...
428
+
429
+ class InkStrokesCollectedEventArgs(winrt.system.Object):
430
+ @staticmethod
431
+ def _from(obj: winrt.system.Object, /) -> InkStrokesCollectedEventArgs: ...
432
+ @_property
433
+ def strokes(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[InkStroke]]: ...
434
+
435
+ class InkStrokesErasedEventArgs(winrt.system.Object):
436
+ @staticmethod
437
+ def _from(obj: winrt.system.Object, /) -> InkStrokesErasedEventArgs: ...
438
+ @_property
439
+ def strokes(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[InkStroke]]: ...
440
+
441
+ class InkSynchronizer(winrt.system.Object):
442
+ @staticmethod
443
+ def _from(obj: winrt.system.Object, /) -> InkSynchronizer: ...
444
+ def begin_dry(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[InkStroke]]: ...
445
+ def end_dry(self) -> None: ...
446
+
447
+ class InkUnprocessedInput(winrt.system.Object):
448
+ @staticmethod
449
+ def _from(obj: winrt.system.Object, /) -> InkUnprocessedInput: ...
450
+ def add_pointer_entered(self, handler: winrt.windows.foundation.TypedEventHandler[InkUnprocessedInput, winrt.windows.ui.core.PointerEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
451
+ def remove_pointer_entered(self, cookie: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
452
+ def add_pointer_exited(self, handler: winrt.windows.foundation.TypedEventHandler[InkUnprocessedInput, winrt.windows.ui.core.PointerEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
453
+ def remove_pointer_exited(self, cookie: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
454
+ def add_pointer_hovered(self, handler: winrt.windows.foundation.TypedEventHandler[InkUnprocessedInput, winrt.windows.ui.core.PointerEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
455
+ def remove_pointer_hovered(self, cookie: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
456
+ def add_pointer_lost(self, handler: winrt.windows.foundation.TypedEventHandler[InkUnprocessedInput, winrt.windows.ui.core.PointerEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
457
+ def remove_pointer_lost(self, cookie: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
458
+ def add_pointer_moved(self, handler: winrt.windows.foundation.TypedEventHandler[InkUnprocessedInput, winrt.windows.ui.core.PointerEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
459
+ def remove_pointer_moved(self, cookie: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
460
+ def add_pointer_pressed(self, handler: winrt.windows.foundation.TypedEventHandler[InkUnprocessedInput, winrt.windows.ui.core.PointerEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
461
+ def remove_pointer_pressed(self, cookie: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
462
+ def add_pointer_released(self, handler: winrt.windows.foundation.TypedEventHandler[InkUnprocessedInput, winrt.windows.ui.core.PointerEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
463
+ def remove_pointer_released(self, cookie: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
464
+ @_property
465
+ def ink_presenter(self) -> typing.Optional[InkPresenter]: ...
466
+
467
+ class PenAndInkSettings_Static(type):
468
+ def get_default(cls) -> typing.Optional[PenAndInkSettings]: ...
469
+
470
+ class PenAndInkSettings(winrt.system.Object, metaclass=PenAndInkSettings_Static):
471
+ @staticmethod
472
+ def _from(obj: winrt.system.Object, /) -> PenAndInkSettings: ...
473
+ def set_pen_handedness(self, value: PenHandedness, /) -> None: ...
474
+ @_property
475
+ def font_family_name(self) -> str: ...
476
+ @_property
477
+ def handwriting_line_height(self) -> HandwritingLineHeight: ...
478
+ @_property
479
+ def is_handwriting_directly_into_text_field_enabled(self) -> bool: ...
480
+ @_property
481
+ def is_touch_handwriting_enabled(self) -> bool: ...
482
+ @_property
483
+ def pen_handedness(self) -> PenHandedness: ...
484
+ @_property
485
+ def user_consents_to_handwriting_telemetry_collection(self) -> bool: ...
486
+
487
+ class IInkPointFactory(winrt.system.Object):
488
+ @staticmethod
489
+ def _from(obj: winrt.system.Object, /) -> IInkPointFactory: ...
490
+ def create_ink_point(self, position: winrt.windows.foundation.Point, pressure: winrt.system.Single, /) -> typing.Optional[InkPoint]: ...
491
+
492
+ class IInkPresenterRulerFactory(winrt.system.Object):
493
+ @staticmethod
494
+ def _from(obj: winrt.system.Object, /) -> IInkPresenterRulerFactory: ...
495
+ def create(self, ink_presenter: typing.Optional[InkPresenter], /) -> typing.Optional[InkPresenterRuler]: ...
496
+
497
+ class IInkPresenterStencil(winrt.system.Object):
498
+ @staticmethod
499
+ def _from(obj: winrt.system.Object, /) -> IInkPresenterStencil: ...
500
+ @_property
501
+ def background_color(self) -> winrt.windows.ui.Color: ...
502
+ @background_color.setter
503
+ def background_color(self, value: winrt.windows.ui.Color) -> None: ...
504
+ @_property
505
+ def foreground_color(self) -> winrt.windows.ui.Color: ...
506
+ @foreground_color.setter
507
+ def foreground_color(self, value: winrt.windows.ui.Color) -> None: ...
508
+ @_property
509
+ def is_visible(self) -> bool: ...
510
+ @is_visible.setter
511
+ def is_visible(self, value: bool) -> None: ...
512
+ @_property
513
+ def kind(self) -> InkPresenterStencilKind: ...
514
+ @_property
515
+ def transform(self) -> winrt.windows.foundation.numerics.Matrix3x2: ...
516
+ @transform.setter
517
+ def transform(self, value: winrt.windows.foundation.numerics.Matrix3x2) -> None: ...
518
+
519
+ class IInkRecognizerContainer(winrt.system.Object):
520
+ @staticmethod
521
+ def _from(obj: winrt.system.Object, /) -> IInkRecognizerContainer: ...
522
+ def get_recognizers(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[InkRecognizer]]: ...
523
+ def recognize_async(self, stroke_collection: typing.Optional[InkStrokeContainer], recognition_target: InkRecognitionTarget, /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.foundation.collections.IVectorView[InkRecognitionResult]]: ...
524
+ def set_default_recognizer(self, recognizer: typing.Optional[InkRecognizer], /) -> None: ...
525
+
526
+ class IInkStrokeContainer(winrt.system.Object):
527
+ @staticmethod
528
+ def _from(obj: winrt.system.Object, /) -> IInkStrokeContainer: ...
529
+ def add_stroke(self, stroke: typing.Optional[InkStroke], /) -> None: ...
530
+ def can_paste_from_clipboard(self) -> bool: ...
531
+ def copy_selected_to_clipboard(self) -> None: ...
532
+ def delete_selected(self) -> winrt.windows.foundation.Rect: ...
533
+ def get_recognition_results(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[InkRecognitionResult]]: ...
534
+ def get_strokes(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[InkStroke]]: ...
535
+ def load_async(self, input_stream: typing.Optional[winrt.windows.storage.streams.IInputStream], /) -> winrt.windows.foundation.IAsyncActionWithProgress[winrt.system.UInt64]: ...
536
+ def move_selected(self, translation: winrt.windows.foundation.Point, /) -> winrt.windows.foundation.Rect: ...
537
+ def paste_from_clipboard(self, position: winrt.windows.foundation.Point, /) -> winrt.windows.foundation.Rect: ...
538
+ def save_async(self, output_stream: typing.Optional[winrt.windows.storage.streams.IOutputStream], /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
539
+ def select_with_line(self, from_: winrt.windows.foundation.Point, to: winrt.windows.foundation.Point, /) -> winrt.windows.foundation.Rect: ...
540
+ def select_with_poly_line(self, polyline: typing.Iterable[winrt.windows.foundation.Point], /) -> winrt.windows.foundation.Rect: ...
541
+ def update_recognition_results(self, recognition_results: winrt.windows.foundation.collections.IVectorView[InkRecognitionResult], /) -> None: ...
542
+ @_property
543
+ def bounding_rect(self) -> winrt.windows.foundation.Rect: ...
544
+
@@ -0,0 +1,132 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt import _winrt_windows_ui_input_inking
7
+
8
+ __all__ = [
9
+ "HandwritingLineHeight",
10
+ "InkDrawingAttributesKind",
11
+ "InkHighContrastAdjustment",
12
+ "InkInputProcessingMode",
13
+ "InkInputRightDragAction",
14
+ "InkManipulationMode",
15
+ "InkPersistenceFormat",
16
+ "InkPresenterPredefinedConfiguration",
17
+ "InkPresenterStencilKind",
18
+ "InkRecognitionTarget",
19
+ "PenHandedness",
20
+ "PenTipShape",
21
+ "InkDrawingAttributes",
22
+ "InkDrawingAttributesPencilProperties",
23
+ "InkInputConfiguration",
24
+ "InkInputProcessingConfiguration",
25
+ "InkManager",
26
+ "InkModelerAttributes",
27
+ "InkPoint",
28
+ "InkPresenter",
29
+ "InkPresenterProtractor",
30
+ "InkPresenterRuler",
31
+ "InkRecognitionResult",
32
+ "InkRecognizer",
33
+ "InkRecognizerContainer",
34
+ "InkStroke",
35
+ "InkStrokeBuilder",
36
+ "InkStrokeContainer",
37
+ "InkStrokeInput",
38
+ "InkStrokeRenderingSegment",
39
+ "InkStrokesCollectedEventArgs",
40
+ "InkStrokesErasedEventArgs",
41
+ "InkSynchronizer",
42
+ "InkUnprocessedInput",
43
+ "PenAndInkSettings",
44
+ "IInkPointFactory",
45
+ "IInkPresenterRulerFactory",
46
+ "IInkPresenterStencil",
47
+ "IInkRecognizerContainer",
48
+ "IInkStrokeContainer",
49
+ ]
50
+
51
+ class HandwritingLineHeight(enum.IntEnum):
52
+ SMALL = 0
53
+ MEDIUM = 1
54
+ LARGE = 2
55
+
56
+ class InkDrawingAttributesKind(enum.IntEnum):
57
+ DEFAULT = 0
58
+ PENCIL = 1
59
+
60
+ class InkHighContrastAdjustment(enum.IntEnum):
61
+ USE_SYSTEM_COLORS_WHEN_NECESSARY = 0
62
+ USE_SYSTEM_COLORS = 1
63
+ USE_ORIGINAL_COLORS = 2
64
+
65
+ class InkInputProcessingMode(enum.IntEnum):
66
+ NONE = 0
67
+ INKING = 1
68
+ ERASING = 2
69
+
70
+ class InkInputRightDragAction(enum.IntEnum):
71
+ LEAVE_UNPROCESSED = 0
72
+ ALLOW_PROCESSING = 1
73
+
74
+ class InkManipulationMode(enum.IntEnum):
75
+ INKING = 0
76
+ ERASING = 1
77
+ SELECTING = 2
78
+
79
+ class InkPersistenceFormat(enum.IntEnum):
80
+ GIF_WITH_EMBEDDED_ISF = 0
81
+ ISF = 1
82
+
83
+ class InkPresenterPredefinedConfiguration(enum.IntEnum):
84
+ SIMPLE_SINGLE_POINTER = 0
85
+ SIMPLE_MULTIPLE_POINTER = 1
86
+
87
+ class InkPresenterStencilKind(enum.IntEnum):
88
+ OTHER = 0
89
+ RULER = 1
90
+ PROTRACTOR = 2
91
+
92
+ class InkRecognitionTarget(enum.IntEnum):
93
+ ALL = 0
94
+ SELECTED = 1
95
+ RECENT = 2
96
+
97
+ class PenHandedness(enum.IntEnum):
98
+ RIGHT = 0
99
+ LEFT = 1
100
+
101
+ class PenTipShape(enum.IntEnum):
102
+ CIRCLE = 0
103
+ RECTANGLE = 1
104
+
105
+ InkDrawingAttributes = _winrt_windows_ui_input_inking.InkDrawingAttributes
106
+ InkDrawingAttributesPencilProperties = _winrt_windows_ui_input_inking.InkDrawingAttributesPencilProperties
107
+ InkInputConfiguration = _winrt_windows_ui_input_inking.InkInputConfiguration
108
+ InkInputProcessingConfiguration = _winrt_windows_ui_input_inking.InkInputProcessingConfiguration
109
+ InkManager = _winrt_windows_ui_input_inking.InkManager
110
+ InkModelerAttributes = _winrt_windows_ui_input_inking.InkModelerAttributes
111
+ InkPoint = _winrt_windows_ui_input_inking.InkPoint
112
+ InkPresenter = _winrt_windows_ui_input_inking.InkPresenter
113
+ InkPresenterProtractor = _winrt_windows_ui_input_inking.InkPresenterProtractor
114
+ InkPresenterRuler = _winrt_windows_ui_input_inking.InkPresenterRuler
115
+ InkRecognitionResult = _winrt_windows_ui_input_inking.InkRecognitionResult
116
+ InkRecognizer = _winrt_windows_ui_input_inking.InkRecognizer
117
+ InkRecognizerContainer = _winrt_windows_ui_input_inking.InkRecognizerContainer
118
+ InkStroke = _winrt_windows_ui_input_inking.InkStroke
119
+ InkStrokeBuilder = _winrt_windows_ui_input_inking.InkStrokeBuilder
120
+ InkStrokeContainer = _winrt_windows_ui_input_inking.InkStrokeContainer
121
+ InkStrokeInput = _winrt_windows_ui_input_inking.InkStrokeInput
122
+ InkStrokeRenderingSegment = _winrt_windows_ui_input_inking.InkStrokeRenderingSegment
123
+ InkStrokesCollectedEventArgs = _winrt_windows_ui_input_inking.InkStrokesCollectedEventArgs
124
+ InkStrokesErasedEventArgs = _winrt_windows_ui_input_inking.InkStrokesErasedEventArgs
125
+ InkSynchronizer = _winrt_windows_ui_input_inking.InkSynchronizer
126
+ InkUnprocessedInput = _winrt_windows_ui_input_inking.InkUnprocessedInput
127
+ PenAndInkSettings = _winrt_windows_ui_input_inking.PenAndInkSettings
128
+ IInkPointFactory = _winrt_windows_ui_input_inking.IInkPointFactory
129
+ IInkPresenterRulerFactory = _winrt_windows_ui_input_inking.IInkPresenterRulerFactory
130
+ IInkPresenterStencil = _winrt_windows_ui_input_inking.IInkPresenterStencil
131
+ IInkRecognizerContainer = _winrt_windows_ui_input_inking.IInkRecognizerContainer
132
+ IInkStrokeContainer = _winrt_windows_ui_input_inking.IInkStrokeContainer
@@ -0,0 +1,30 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.UI.Input.Inking
3
+ Version: 2.0.0b1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Repository, https://github.com/pywrint/pywrinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: Implementation :: CPython
11
+ Classifier: Intended Audience :: Developers
12
+ Requires-Python: <3.13,>=3.9
13
+ Description-Content-Type: text/markdown
14
+ Requires-Dist: winrt-runtime ==2.0.0-beta.1
15
+ Provides-Extra: all
16
+ Requires-Dist: winrt-Windows.Foundation[all] ==2.0.0-beta.1 ; extra == 'all'
17
+ Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.0.0-beta.1 ; extra == 'all'
18
+ Requires-Dist: winrt-Windows.Foundation.Numerics[all] ==2.0.0-beta.1 ; extra == 'all'
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all] ==2.0.0-beta.1 ; extra == 'all'
20
+ Requires-Dist: winrt-Windows.UI[all] ==2.0.0-beta.1 ; extra == 'all'
21
+ Requires-Dist: winrt-Windows.UI.Core[all] ==2.0.0-beta.1 ; extra == 'all'
22
+ Requires-Dist: winrt-Windows.UI.Input[all] ==2.0.0-beta.1 ; extra == 'all'
23
+
24
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
25
+
26
+ # winrt-Windows.UI.Input.Inking
27
+
28
+ Windows Runtime (WinRT) APIs for for the `Windows.UI.Input.Inking` namespace.
29
+
30
+ This package provides the `winrt.windows.ui.input.inking` module.
@@ -0,0 +1,7 @@
1
+ winrt/_winrt_windows_ui_input_inking.cp39-win_arm64.pyd,sha256=jGBBUzgfMFz_UWIqdDZ_YGANTIAPaDgdWF7a-ZzbXGc,662016
2
+ winrt/_winrt_windows_ui_input_inking.pyi,sha256=yQbcto7PzUd3NnFW1Acy79zM5uwv0J9E47rzx3201PY,31722
3
+ winrt/windows/ui/input/inking/__init__.py,sha256=-dl_zXX4GMhZxyJWpKeYEpBHYu1SKENnKfY3R1taKE4,4465
4
+ winrt_Windows.UI.Input.Inking-2.0.0b1.dist-info/METADATA,sha256=IN41sWe6Rs0zkfMUsyWckarp9azlx8hszhSVA3jx1BM,1481
5
+ winrt_Windows.UI.Input.Inking-2.0.0b1.dist-info/WHEEL,sha256=PrHTG687fNsk7jS4Y-tLXN-3gpnf3wReNnzEPkeWHK0,100
6
+ winrt_Windows.UI.Input.Inking-2.0.0b1.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
7
+ winrt_Windows.UI.Input.Inking-2.0.0b1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.41.1)
3
+ Root-Is-Purelib: false
4
+ Tag: cp39-cp39-win_arm64
5
+