nv-sgl 0.6.0__cp313-cp313-win_amd64.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. include/tevclient.h +393 -0
  2. nv_sgl-0.6.0.dist-info/LICENSE +29 -0
  3. nv_sgl-0.6.0.dist-info/METADATA +21 -0
  4. nv_sgl-0.6.0.dist-info/RECORD +142 -0
  5. nv_sgl-0.6.0.dist-info/WHEEL +5 -0
  6. nv_sgl-0.6.0.dist-info/top_level.txt +1 -0
  7. sgl/__init__.py +15 -0
  8. sgl/__init__.pyi +6738 -0
  9. sgl/d3d12/D3D12Core.dll +0 -0
  10. sgl/d3d12/d3d12SDKLayers.dll +0 -0
  11. sgl/dxcompiler.dll +0 -0
  12. sgl/dxil.dll +0 -0
  13. sgl/gfx.dll +0 -0
  14. sgl/include/sgl/app/app.h +113 -0
  15. sgl/include/sgl/core/bitmap.h +302 -0
  16. sgl/include/sgl/core/crypto.h +89 -0
  17. sgl/include/sgl/core/data_type.h +46 -0
  18. sgl/include/sgl/core/dds_file.h +103 -0
  19. sgl/include/sgl/core/enum.h +201 -0
  20. sgl/include/sgl/core/error.h +161 -0
  21. sgl/include/sgl/core/file_stream.h +77 -0
  22. sgl/include/sgl/core/file_system_watcher.h +141 -0
  23. sgl/include/sgl/core/format.h +36 -0
  24. sgl/include/sgl/core/fwd.h +90 -0
  25. sgl/include/sgl/core/hash.h +45 -0
  26. sgl/include/sgl/core/input.h +522 -0
  27. sgl/include/sgl/core/logger.h +214 -0
  28. sgl/include/sgl/core/macros.h +184 -0
  29. sgl/include/sgl/core/maths.h +45 -0
  30. sgl/include/sgl/core/memory_mapped_file.h +112 -0
  31. sgl/include/sgl/core/memory_mapped_file_stream.h +32 -0
  32. sgl/include/sgl/core/memory_stream.h +74 -0
  33. sgl/include/sgl/core/object.h +683 -0
  34. sgl/include/sgl/core/platform.h +239 -0
  35. sgl/include/sgl/core/plugin.h +331 -0
  36. sgl/include/sgl/core/resolver.h +39 -0
  37. sgl/include/sgl/core/short_vector.h +141 -0
  38. sgl/include/sgl/core/static_vector.h +111 -0
  39. sgl/include/sgl/core/stream.h +54 -0
  40. sgl/include/sgl/core/string.h +276 -0
  41. sgl/include/sgl/core/struct.h +360 -0
  42. sgl/include/sgl/core/thread.h +28 -0
  43. sgl/include/sgl/core/timer.h +52 -0
  44. sgl/include/sgl/core/traits.h +15 -0
  45. sgl/include/sgl/core/type_utils.h +19 -0
  46. sgl/include/sgl/core/window.h +177 -0
  47. sgl/include/sgl/device/agility_sdk.h +24 -0
  48. sgl/include/sgl/device/blit.h +88 -0
  49. sgl/include/sgl/device/buffer_cursor.h +162 -0
  50. sgl/include/sgl/device/command.h +539 -0
  51. sgl/include/sgl/device/cuda_api.h +766 -0
  52. sgl/include/sgl/device/cuda_interop.h +39 -0
  53. sgl/include/sgl/device/cuda_utils.h +107 -0
  54. sgl/include/sgl/device/cursor_utils.h +129 -0
  55. sgl/include/sgl/device/device.h +668 -0
  56. sgl/include/sgl/device/device_resource.h +37 -0
  57. sgl/include/sgl/device/fence.h +91 -0
  58. sgl/include/sgl/device/formats.h +330 -0
  59. sgl/include/sgl/device/framebuffer.h +85 -0
  60. sgl/include/sgl/device/fwd.h +164 -0
  61. sgl/include/sgl/device/helpers.h +20 -0
  62. sgl/include/sgl/device/hot_reload.h +75 -0
  63. sgl/include/sgl/device/input_layout.h +74 -0
  64. sgl/include/sgl/device/kernel.h +69 -0
  65. sgl/include/sgl/device/memory_heap.h +155 -0
  66. sgl/include/sgl/device/native_formats.h +342 -0
  67. sgl/include/sgl/device/native_handle.h +73 -0
  68. sgl/include/sgl/device/native_handle_traits.h +65 -0
  69. sgl/include/sgl/device/pipeline.h +138 -0
  70. sgl/include/sgl/device/print.h +45 -0
  71. sgl/include/sgl/device/python/cursor_utils.h +853 -0
  72. sgl/include/sgl/device/query.h +52 -0
  73. sgl/include/sgl/device/raytracing.h +84 -0
  74. sgl/include/sgl/device/reflection.h +1254 -0
  75. sgl/include/sgl/device/resource.h +705 -0
  76. sgl/include/sgl/device/sampler.h +57 -0
  77. sgl/include/sgl/device/shader.h +516 -0
  78. sgl/include/sgl/device/shader_cursor.h +85 -0
  79. sgl/include/sgl/device/shader_object.h +94 -0
  80. sgl/include/sgl/device/shader_offset.h +67 -0
  81. sgl/include/sgl/device/shared_handle.h +12 -0
  82. sgl/include/sgl/device/slang_utils.h +54 -0
  83. sgl/include/sgl/device/swapchain.h +74 -0
  84. sgl/include/sgl/device/types.h +782 -0
  85. sgl/include/sgl/math/colorspace.h +56 -0
  86. sgl/include/sgl/math/constants.h +7 -0
  87. sgl/include/sgl/math/float16.h +146 -0
  88. sgl/include/sgl/math/matrix.h +6 -0
  89. sgl/include/sgl/math/matrix_math.h +746 -0
  90. sgl/include/sgl/math/matrix_types.h +207 -0
  91. sgl/include/sgl/math/python/primitivetype.h +33 -0
  92. sgl/include/sgl/math/quaternion.h +6 -0
  93. sgl/include/sgl/math/quaternion_math.h +484 -0
  94. sgl/include/sgl/math/quaternion_types.h +83 -0
  95. sgl/include/sgl/math/ray.h +47 -0
  96. sgl/include/sgl/math/scalar_math.h +249 -0
  97. sgl/include/sgl/math/scalar_types.h +107 -0
  98. sgl/include/sgl/math/vector.h +6 -0
  99. sgl/include/sgl/math/vector_math.h +1796 -0
  100. sgl/include/sgl/math/vector_types.h +336 -0
  101. sgl/include/sgl/python/nanobind.h +489 -0
  102. sgl/include/sgl/python/py_doc.h +11600 -0
  103. sgl/include/sgl/python/sgl_ext_pch.h +8 -0
  104. sgl/include/sgl/sgl.h +21 -0
  105. sgl/include/sgl/sgl_pch.h +6 -0
  106. sgl/include/sgl/stl/bit.h +377 -0
  107. sgl/include/sgl/tests/testing.h +54 -0
  108. sgl/include/sgl/ui/fwd.h +34 -0
  109. sgl/include/sgl/ui/imgui_config.h +43 -0
  110. sgl/include/sgl/ui/ui.h +71 -0
  111. sgl/include/sgl/ui/widgets.h +918 -0
  112. sgl/include/sgl/utils/python/slangpy.h +366 -0
  113. sgl/include/sgl/utils/renderdoc.h +50 -0
  114. sgl/include/sgl/utils/slangpy.h +153 -0
  115. sgl/include/sgl/utils/tev.h +93 -0
  116. sgl/include/sgl/utils/texture_loader.h +106 -0
  117. sgl/math/__init__.pyi +5083 -0
  118. sgl/platform/__init__.pyi +102 -0
  119. sgl/renderdoc/__init__.pyi +51 -0
  120. sgl/sgl.dll +0 -0
  121. sgl/sgl_ext.cp313-win_amd64.pyd +0 -0
  122. sgl/shaders/nvapi/nvHLSLExtns.h +2315 -0
  123. sgl/shaders/nvapi/nvHLSLExtnsInternal.h +758 -0
  124. sgl/shaders/nvapi/nvShaderExtnEnums.h +142 -0
  125. sgl/shaders/sgl/device/blit.slang +93 -0
  126. sgl/shaders/sgl/device/nvapi.slang +5 -0
  127. sgl/shaders/sgl/device/nvapi.slangh +7 -0
  128. sgl/shaders/sgl/device/print.slang +445 -0
  129. sgl/shaders/sgl/math/constants.slang +4 -0
  130. sgl/shaders/sgl/math/ray.slang +29 -0
  131. sgl/shaders/sgl/ui/imgui.slang +49 -0
  132. sgl/slang-glslang.dll +0 -0
  133. sgl/slang-llvm.dll +0 -0
  134. sgl/slang-rt.dll +0 -0
  135. sgl/slang.dll +0 -0
  136. sgl/slangpy/__init__.pyi +268 -0
  137. sgl/tev/__init__.pyi +108 -0
  138. sgl/tevclient.lib +0 -0
  139. sgl/thread/__init__.pyi +4 -0
  140. sgl/ui/__init__.pyi +1118 -0
  141. share/cmake/tevclient/tevclient-config-release.cmake +19 -0
  142. share/cmake/tevclient/tevclient-config.cmake +108 -0
sgl/ui/__init__.pyi ADDED
@@ -0,0 +1,1118 @@
1
+ from collections.abc import Callable, Iterator, Sequence
2
+ import enum
3
+
4
+ import sgl
5
+
6
+
7
+ class Button(Widget):
8
+ def __init__(self, parent: Widget | None, label: str = '', callback: Callable[[], None] | None = None) -> None: ...
9
+
10
+ @property
11
+ def label(self) -> str: ...
12
+
13
+ @label.setter
14
+ def label(self, arg: str, /) -> None: ...
15
+
16
+ @property
17
+ def callback(self) -> Callable[[], None]: ...
18
+
19
+ @callback.setter
20
+ def callback(self, arg: Callable[[], None], /) -> None: ...
21
+
22
+ class CheckBox(ValuePropertyBool):
23
+ def __init__(self, parent: Widget | None, label: str = '', value: bool = False, callback: Callable[[bool], None] | None = None) -> None: ...
24
+
25
+ class ComboBox(ValuePropertyInt):
26
+ def __init__(self, parent: Widget | None, label: str = '', value: int = 0, callback: Callable[[int], None] | None = None, items: Sequence[str] = []) -> None: ...
27
+
28
+ @property
29
+ def items(self) -> list[str]: ...
30
+
31
+ @items.setter
32
+ def items(self, arg: Sequence[str], /) -> None: ...
33
+
34
+ class Context(sgl.Object):
35
+ def __init__(self, device: sgl.Device) -> None: ...
36
+
37
+ def new_frame(self, width: int, height: int) -> None: ...
38
+
39
+ def render(self, framebuffer: sgl.Framebuffer, command_buffer: sgl.CommandBuffer) -> None: ...
40
+
41
+ def handle_keyboard_event(self, event: sgl.KeyboardEvent) -> bool: ...
42
+
43
+ def handle_mouse_event(self, event: sgl.MouseEvent) -> bool: ...
44
+
45
+ def process_events(self) -> None: ...
46
+
47
+ @property
48
+ def screen(self) -> Screen: ...
49
+
50
+ class DragFloat(ValuePropertyFloat):
51
+ def __init__(self, parent: Widget | None, label: str = '', value: float = 0.0, callback: Callable[[float], None] | None = None, speed: float = 1.0, min: float = 0.0, max: float = 0.0, format: str = '%.3f', flags: SliderFlags = 0) -> None: ...
52
+
53
+ @property
54
+ def speed(self) -> float: ...
55
+
56
+ @speed.setter
57
+ def speed(self, arg: float, /) -> None: ...
58
+
59
+ @property
60
+ def min(self) -> float: ...
61
+
62
+ @min.setter
63
+ def min(self, arg: float, /) -> None: ...
64
+
65
+ @property
66
+ def max(self) -> float: ...
67
+
68
+ @max.setter
69
+ def max(self, arg: float, /) -> None: ...
70
+
71
+ @property
72
+ def format(self) -> str: ...
73
+
74
+ @format.setter
75
+ def format(self, arg: str, /) -> None: ...
76
+
77
+ @property
78
+ def flags(self) -> SliderFlags: ...
79
+
80
+ @flags.setter
81
+ def flags(self, arg: SliderFlags, /) -> None: ...
82
+
83
+ class DragFloat2(ValuePropertyFloat2):
84
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.float2 = ..., callback: Callable[[sgl.math.float2], None] | None = None, speed: float = 1.0, min: float = 0.0, max: float = 0.0, format: str = '%.3f', flags: SliderFlags = 0) -> None: ...
85
+
86
+ @property
87
+ def speed(self) -> float: ...
88
+
89
+ @speed.setter
90
+ def speed(self, arg: float, /) -> None: ...
91
+
92
+ @property
93
+ def min(self) -> float: ...
94
+
95
+ @min.setter
96
+ def min(self, arg: float, /) -> None: ...
97
+
98
+ @property
99
+ def max(self) -> float: ...
100
+
101
+ @max.setter
102
+ def max(self, arg: float, /) -> None: ...
103
+
104
+ @property
105
+ def format(self) -> str: ...
106
+
107
+ @format.setter
108
+ def format(self, arg: str, /) -> None: ...
109
+
110
+ @property
111
+ def flags(self) -> SliderFlags: ...
112
+
113
+ @flags.setter
114
+ def flags(self, arg: SliderFlags, /) -> None: ...
115
+
116
+ class DragFloat3(ValuePropertyFloat3):
117
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.float3 = ..., callback: Callable[[sgl.math.float3], None] | None = None, speed: float = 1.0, min: float = 0.0, max: float = 0.0, format: str = '%.3f', flags: SliderFlags = 0) -> None: ...
118
+
119
+ @property
120
+ def speed(self) -> float: ...
121
+
122
+ @speed.setter
123
+ def speed(self, arg: float, /) -> None: ...
124
+
125
+ @property
126
+ def min(self) -> float: ...
127
+
128
+ @min.setter
129
+ def min(self, arg: float, /) -> None: ...
130
+
131
+ @property
132
+ def max(self) -> float: ...
133
+
134
+ @max.setter
135
+ def max(self, arg: float, /) -> None: ...
136
+
137
+ @property
138
+ def format(self) -> str: ...
139
+
140
+ @format.setter
141
+ def format(self, arg: str, /) -> None: ...
142
+
143
+ @property
144
+ def flags(self) -> SliderFlags: ...
145
+
146
+ @flags.setter
147
+ def flags(self, arg: SliderFlags, /) -> None: ...
148
+
149
+ class DragFloat4(ValuePropertyFloat4):
150
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.float4 = ..., callback: Callable[[sgl.math.float4], None] | None = None, speed: float = 1.0, min: float = 0.0, max: float = 0.0, format: str = '%.3f', flags: SliderFlags = 0) -> None: ...
151
+
152
+ @property
153
+ def speed(self) -> float: ...
154
+
155
+ @speed.setter
156
+ def speed(self, arg: float, /) -> None: ...
157
+
158
+ @property
159
+ def min(self) -> float: ...
160
+
161
+ @min.setter
162
+ def min(self, arg: float, /) -> None: ...
163
+
164
+ @property
165
+ def max(self) -> float: ...
166
+
167
+ @max.setter
168
+ def max(self, arg: float, /) -> None: ...
169
+
170
+ @property
171
+ def format(self) -> str: ...
172
+
173
+ @format.setter
174
+ def format(self, arg: str, /) -> None: ...
175
+
176
+ @property
177
+ def flags(self) -> SliderFlags: ...
178
+
179
+ @flags.setter
180
+ def flags(self, arg: SliderFlags, /) -> None: ...
181
+
182
+ class DragInt(ValuePropertyInt):
183
+ def __init__(self, parent: Widget | None, label: str = '', value: int = 0, callback: Callable[[int], None] | None = None, speed: float = 1.0, min: int = 0, max: int = 0, format: str = '%d', flags: SliderFlags = 0) -> None: ...
184
+
185
+ @property
186
+ def speed(self) -> int: ...
187
+
188
+ @speed.setter
189
+ def speed(self, arg: int, /) -> None: ...
190
+
191
+ @property
192
+ def min(self) -> int: ...
193
+
194
+ @min.setter
195
+ def min(self, arg: int, /) -> None: ...
196
+
197
+ @property
198
+ def max(self) -> int: ...
199
+
200
+ @max.setter
201
+ def max(self, arg: int, /) -> None: ...
202
+
203
+ @property
204
+ def format(self) -> str: ...
205
+
206
+ @format.setter
207
+ def format(self, arg: str, /) -> None: ...
208
+
209
+ @property
210
+ def flags(self) -> SliderFlags: ...
211
+
212
+ @flags.setter
213
+ def flags(self, arg: SliderFlags, /) -> None: ...
214
+
215
+ class DragInt2(ValuePropertyInt2):
216
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.int2 = ..., callback: Callable[[sgl.math.int2], None] | None = None, speed: float = 1.0, min: int = 0, max: int = 0, format: str = '%d', flags: SliderFlags = 0) -> None: ...
217
+
218
+ @property
219
+ def speed(self) -> int: ...
220
+
221
+ @speed.setter
222
+ def speed(self, arg: int, /) -> None: ...
223
+
224
+ @property
225
+ def min(self) -> int: ...
226
+
227
+ @min.setter
228
+ def min(self, arg: int, /) -> None: ...
229
+
230
+ @property
231
+ def max(self) -> int: ...
232
+
233
+ @max.setter
234
+ def max(self, arg: int, /) -> None: ...
235
+
236
+ @property
237
+ def format(self) -> str: ...
238
+
239
+ @format.setter
240
+ def format(self, arg: str, /) -> None: ...
241
+
242
+ @property
243
+ def flags(self) -> SliderFlags: ...
244
+
245
+ @flags.setter
246
+ def flags(self, arg: SliderFlags, /) -> None: ...
247
+
248
+ class DragInt3(ValuePropertyInt3):
249
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.int3 = ..., callback: Callable[[sgl.math.int3], None] | None = None, speed: float = 1.0, min: int = 0, max: int = 0, format: str = '%d', flags: SliderFlags = 0) -> None: ...
250
+
251
+ @property
252
+ def speed(self) -> int: ...
253
+
254
+ @speed.setter
255
+ def speed(self, arg: int, /) -> None: ...
256
+
257
+ @property
258
+ def min(self) -> int: ...
259
+
260
+ @min.setter
261
+ def min(self, arg: int, /) -> None: ...
262
+
263
+ @property
264
+ def max(self) -> int: ...
265
+
266
+ @max.setter
267
+ def max(self, arg: int, /) -> None: ...
268
+
269
+ @property
270
+ def format(self) -> str: ...
271
+
272
+ @format.setter
273
+ def format(self, arg: str, /) -> None: ...
274
+
275
+ @property
276
+ def flags(self) -> SliderFlags: ...
277
+
278
+ @flags.setter
279
+ def flags(self, arg: SliderFlags, /) -> None: ...
280
+
281
+ class DragInt4(ValuePropertyInt4):
282
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.int4 = ..., callback: Callable[[sgl.math.int4], None] | None = None, speed: float = 1.0, min: int = 0, max: int = 0, format: str = '%d', flags: SliderFlags = 0) -> None: ...
283
+
284
+ @property
285
+ def speed(self) -> int: ...
286
+
287
+ @speed.setter
288
+ def speed(self, arg: int, /) -> None: ...
289
+
290
+ @property
291
+ def min(self) -> int: ...
292
+
293
+ @min.setter
294
+ def min(self, arg: int, /) -> None: ...
295
+
296
+ @property
297
+ def max(self) -> int: ...
298
+
299
+ @max.setter
300
+ def max(self, arg: int, /) -> None: ...
301
+
302
+ @property
303
+ def format(self) -> str: ...
304
+
305
+ @format.setter
306
+ def format(self, arg: str, /) -> None: ...
307
+
308
+ @property
309
+ def flags(self) -> SliderFlags: ...
310
+
311
+ @flags.setter
312
+ def flags(self, arg: SliderFlags, /) -> None: ...
313
+
314
+ class Group(Widget):
315
+ def __init__(self, parent: Widget | None, label: str = '') -> None: ...
316
+
317
+ @property
318
+ def label(self) -> str: ...
319
+
320
+ @label.setter
321
+ def label(self, arg: str, /) -> None: ...
322
+
323
+ class InputFloat(ValuePropertyFloat):
324
+ def __init__(self, parent: Widget | None, label: str = '', value: float = 0.0, callback: Callable[[float], None] | None = None, step: float = 1.0, step_fast: float = 100.0, format: str = '%.3f', flags: InputTextFlags = 0) -> None: ...
325
+
326
+ @property
327
+ def step(self) -> float: ...
328
+
329
+ @step.setter
330
+ def step(self, arg: float, /) -> None: ...
331
+
332
+ @property
333
+ def step_fast(self) -> float: ...
334
+
335
+ @step_fast.setter
336
+ def step_fast(self, arg: float, /) -> None: ...
337
+
338
+ @property
339
+ def format(self) -> str: ...
340
+
341
+ @format.setter
342
+ def format(self, arg: str, /) -> None: ...
343
+
344
+ @property
345
+ def flags(self) -> InputTextFlags: ...
346
+
347
+ @flags.setter
348
+ def flags(self, arg: InputTextFlags, /) -> None: ...
349
+
350
+ class InputFloat2(ValuePropertyFloat2):
351
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.float2 = ..., callback: Callable[[sgl.math.float2], None] | None = None, step: float = 1.0, step_fast: float = 100.0, format: str = '%.3f', flags: InputTextFlags = 0) -> None: ...
352
+
353
+ @property
354
+ def step(self) -> float: ...
355
+
356
+ @step.setter
357
+ def step(self, arg: float, /) -> None: ...
358
+
359
+ @property
360
+ def step_fast(self) -> float: ...
361
+
362
+ @step_fast.setter
363
+ def step_fast(self, arg: float, /) -> None: ...
364
+
365
+ @property
366
+ def format(self) -> str: ...
367
+
368
+ @format.setter
369
+ def format(self, arg: str, /) -> None: ...
370
+
371
+ @property
372
+ def flags(self) -> InputTextFlags: ...
373
+
374
+ @flags.setter
375
+ def flags(self, arg: InputTextFlags, /) -> None: ...
376
+
377
+ class InputFloat3(ValuePropertyFloat3):
378
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.float3 = ..., callback: Callable[[sgl.math.float3], None] | None = None, step: float = 1.0, step_fast: float = 100.0, format: str = '%.3f', flags: InputTextFlags = 0) -> None: ...
379
+
380
+ @property
381
+ def step(self) -> float: ...
382
+
383
+ @step.setter
384
+ def step(self, arg: float, /) -> None: ...
385
+
386
+ @property
387
+ def step_fast(self) -> float: ...
388
+
389
+ @step_fast.setter
390
+ def step_fast(self, arg: float, /) -> None: ...
391
+
392
+ @property
393
+ def format(self) -> str: ...
394
+
395
+ @format.setter
396
+ def format(self, arg: str, /) -> None: ...
397
+
398
+ @property
399
+ def flags(self) -> InputTextFlags: ...
400
+
401
+ @flags.setter
402
+ def flags(self, arg: InputTextFlags, /) -> None: ...
403
+
404
+ class InputFloat4(ValuePropertyFloat4):
405
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.float4 = ..., callback: Callable[[sgl.math.float4], None] | None = None, step: float = 1.0, step_fast: float = 100.0, format: str = '%.3f', flags: InputTextFlags = 0) -> None: ...
406
+
407
+ @property
408
+ def step(self) -> float: ...
409
+
410
+ @step.setter
411
+ def step(self, arg: float, /) -> None: ...
412
+
413
+ @property
414
+ def step_fast(self) -> float: ...
415
+
416
+ @step_fast.setter
417
+ def step_fast(self, arg: float, /) -> None: ...
418
+
419
+ @property
420
+ def format(self) -> str: ...
421
+
422
+ @format.setter
423
+ def format(self, arg: str, /) -> None: ...
424
+
425
+ @property
426
+ def flags(self) -> InputTextFlags: ...
427
+
428
+ @flags.setter
429
+ def flags(self, arg: InputTextFlags, /) -> None: ...
430
+
431
+ class InputInt(ValuePropertyInt):
432
+ def __init__(self, parent: Widget | None, label: str = '', value: int = 0, callback: Callable[[int], None] | None = None, step: int = 1, step_fast: int = 100, format: str = '%d', flags: InputTextFlags = 0) -> None: ...
433
+
434
+ @property
435
+ def step(self) -> int: ...
436
+
437
+ @step.setter
438
+ def step(self, arg: int, /) -> None: ...
439
+
440
+ @property
441
+ def step_fast(self) -> int: ...
442
+
443
+ @step_fast.setter
444
+ def step_fast(self, arg: int, /) -> None: ...
445
+
446
+ @property
447
+ def format(self) -> str: ...
448
+
449
+ @format.setter
450
+ def format(self, arg: str, /) -> None: ...
451
+
452
+ @property
453
+ def flags(self) -> InputTextFlags: ...
454
+
455
+ @flags.setter
456
+ def flags(self, arg: InputTextFlags, /) -> None: ...
457
+
458
+ class InputInt2(ValuePropertyInt2):
459
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.int2 = ..., callback: Callable[[sgl.math.int2], None] | None = None, step: int = 1, step_fast: int = 100, format: str = '%d', flags: InputTextFlags = 0) -> None: ...
460
+
461
+ @property
462
+ def step(self) -> int: ...
463
+
464
+ @step.setter
465
+ def step(self, arg: int, /) -> None: ...
466
+
467
+ @property
468
+ def step_fast(self) -> int: ...
469
+
470
+ @step_fast.setter
471
+ def step_fast(self, arg: int, /) -> None: ...
472
+
473
+ @property
474
+ def format(self) -> str: ...
475
+
476
+ @format.setter
477
+ def format(self, arg: str, /) -> None: ...
478
+
479
+ @property
480
+ def flags(self) -> InputTextFlags: ...
481
+
482
+ @flags.setter
483
+ def flags(self, arg: InputTextFlags, /) -> None: ...
484
+
485
+ class InputInt3(ValuePropertyInt3):
486
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.int3 = ..., callback: Callable[[sgl.math.int3], None] | None = None, step: int = 1, step_fast: int = 100, format: str = '%d', flags: InputTextFlags = 0) -> None: ...
487
+
488
+ @property
489
+ def step(self) -> int: ...
490
+
491
+ @step.setter
492
+ def step(self, arg: int, /) -> None: ...
493
+
494
+ @property
495
+ def step_fast(self) -> int: ...
496
+
497
+ @step_fast.setter
498
+ def step_fast(self, arg: int, /) -> None: ...
499
+
500
+ @property
501
+ def format(self) -> str: ...
502
+
503
+ @format.setter
504
+ def format(self, arg: str, /) -> None: ...
505
+
506
+ @property
507
+ def flags(self) -> InputTextFlags: ...
508
+
509
+ @flags.setter
510
+ def flags(self, arg: InputTextFlags, /) -> None: ...
511
+
512
+ class InputInt4(ValuePropertyInt4):
513
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.int4 = ..., callback: Callable[[sgl.math.int4], None] | None = None, step: int = 1, step_fast: int = 100, format: str = '%d', flags: InputTextFlags = 0) -> None: ...
514
+
515
+ @property
516
+ def step(self) -> int: ...
517
+
518
+ @step.setter
519
+ def step(self, arg: int, /) -> None: ...
520
+
521
+ @property
522
+ def step_fast(self) -> int: ...
523
+
524
+ @step_fast.setter
525
+ def step_fast(self, arg: int, /) -> None: ...
526
+
527
+ @property
528
+ def format(self) -> str: ...
529
+
530
+ @format.setter
531
+ def format(self, arg: str, /) -> None: ...
532
+
533
+ @property
534
+ def flags(self) -> InputTextFlags: ...
535
+
536
+ @flags.setter
537
+ def flags(self, arg: InputTextFlags, /) -> None: ...
538
+
539
+ class InputText(ValuePropertyString):
540
+ def __init__(self, parent: Widget | None, label: str = '', value: str = False, callback: Callable[[str], None] | None = None, multi_line: bool = False, flags: InputTextFlags = 0) -> None: ...
541
+
542
+ class InputTextFlags(enum.IntFlag):
543
+ __str__ = __repr__
544
+
545
+ def __repr__(self, /):
546
+ """Return repr(self)."""
547
+
548
+ none = 0
549
+
550
+ chars_decimal = 1
551
+
552
+ chars_hexadecimal = 2
553
+
554
+ chars_uppercase = 4
555
+
556
+ chars_no_blank = 8
557
+
558
+ auto_select_all = 16
559
+
560
+ enter_returns_true = 32
561
+
562
+ callback_completion = 64
563
+
564
+ callback_history = 128
565
+
566
+ callback_always = 256
567
+
568
+ callback_char_filter = 512
569
+
570
+ allow_tab_input = 1024
571
+
572
+ ctrl_enter_for_new_line = 2048
573
+
574
+ no_horizontal_scroll = 4096
575
+
576
+ always_overwrite = 8192
577
+
578
+ read_only = 16384
579
+
580
+ password = 32768
581
+
582
+ no_undo_redo = 65536
583
+
584
+ chars_scientific = 131072
585
+
586
+ escape_clears_all = 1048576
587
+
588
+ class ListBox(ValuePropertyInt):
589
+ def __init__(self, parent: Widget | None, label: str = '', value: int = 0, callback: Callable[[int], None] | None = None, items: Sequence[str] = [], height_in_items: int = -1) -> None: ...
590
+
591
+ @property
592
+ def items(self) -> list[str]: ...
593
+
594
+ @items.setter
595
+ def items(self, arg: Sequence[str], /) -> None: ...
596
+
597
+ @property
598
+ def height_in_items(self) -> int: ...
599
+
600
+ @height_in_items.setter
601
+ def height_in_items(self, arg: int, /) -> None: ...
602
+
603
+ class ProgressBar(Widget):
604
+ def __init__(self, parent: Widget | None, fraction: float = 0.0) -> None: ...
605
+
606
+ @property
607
+ def fraction(self) -> float: ...
608
+
609
+ @fraction.setter
610
+ def fraction(self, arg: float, /) -> None: ...
611
+
612
+ class Screen(Widget):
613
+ """
614
+ This is the main widget that represents the screen. It is intended to
615
+ be used as the parent for ``Window`` widgets.
616
+ """
617
+
618
+ def dispatch_events(self) -> None: ...
619
+
620
+ class SliderFlags(enum.IntFlag):
621
+ __str__ = __repr__
622
+
623
+ def __repr__(self, /):
624
+ """Return repr(self)."""
625
+
626
+ none = 0
627
+
628
+ always_clamp = 16
629
+
630
+ logarithmic = 32
631
+
632
+ no_round_to_format = 64
633
+
634
+ no_input = 128
635
+
636
+ class SliderFloat(ValuePropertyFloat):
637
+ def __init__(self, parent: Widget | None, label: str = '', value: float = 0.0, callback: Callable[[float], None] | None = None, min: float = 0.0, max: float = 0.0, format: str = '%.3f', flags: SliderFlags = 0) -> None: ...
638
+
639
+ @property
640
+ def min(self) -> float: ...
641
+
642
+ @min.setter
643
+ def min(self, arg: float, /) -> None: ...
644
+
645
+ @property
646
+ def max(self) -> float: ...
647
+
648
+ @max.setter
649
+ def max(self, arg: float, /) -> None: ...
650
+
651
+ @property
652
+ def format(self) -> str: ...
653
+
654
+ @format.setter
655
+ def format(self, arg: str, /) -> None: ...
656
+
657
+ @property
658
+ def flags(self) -> SliderFlags: ...
659
+
660
+ @flags.setter
661
+ def flags(self, arg: SliderFlags, /) -> None: ...
662
+
663
+ class SliderFloat2(ValuePropertyFloat2):
664
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.float2 = ..., callback: Callable[[sgl.math.float2], None] | None = None, min: float = 0.0, max: float = 0.0, format: str = '%.3f', flags: SliderFlags = 0) -> None: ...
665
+
666
+ @property
667
+ def min(self) -> float: ...
668
+
669
+ @min.setter
670
+ def min(self, arg: float, /) -> None: ...
671
+
672
+ @property
673
+ def max(self) -> float: ...
674
+
675
+ @max.setter
676
+ def max(self, arg: float, /) -> None: ...
677
+
678
+ @property
679
+ def format(self) -> str: ...
680
+
681
+ @format.setter
682
+ def format(self, arg: str, /) -> None: ...
683
+
684
+ @property
685
+ def flags(self) -> SliderFlags: ...
686
+
687
+ @flags.setter
688
+ def flags(self, arg: SliderFlags, /) -> None: ...
689
+
690
+ class SliderFloat3(ValuePropertyFloat3):
691
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.float3 = ..., callback: Callable[[sgl.math.float3], None] | None = None, min: float = 0.0, max: float = 0.0, format: str = '%.3f', flags: SliderFlags = 0) -> None: ...
692
+
693
+ @property
694
+ def min(self) -> float: ...
695
+
696
+ @min.setter
697
+ def min(self, arg: float, /) -> None: ...
698
+
699
+ @property
700
+ def max(self) -> float: ...
701
+
702
+ @max.setter
703
+ def max(self, arg: float, /) -> None: ...
704
+
705
+ @property
706
+ def format(self) -> str: ...
707
+
708
+ @format.setter
709
+ def format(self, arg: str, /) -> None: ...
710
+
711
+ @property
712
+ def flags(self) -> SliderFlags: ...
713
+
714
+ @flags.setter
715
+ def flags(self, arg: SliderFlags, /) -> None: ...
716
+
717
+ class SliderFloat4(ValuePropertyFloat4):
718
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.float4 = ..., callback: Callable[[sgl.math.float4], None] | None = None, min: float = 0.0, max: float = 0.0, format: str = '%.3f', flags: SliderFlags = 0) -> None: ...
719
+
720
+ @property
721
+ def min(self) -> float: ...
722
+
723
+ @min.setter
724
+ def min(self, arg: float, /) -> None: ...
725
+
726
+ @property
727
+ def max(self) -> float: ...
728
+
729
+ @max.setter
730
+ def max(self, arg: float, /) -> None: ...
731
+
732
+ @property
733
+ def format(self) -> str: ...
734
+
735
+ @format.setter
736
+ def format(self, arg: str, /) -> None: ...
737
+
738
+ @property
739
+ def flags(self) -> SliderFlags: ...
740
+
741
+ @flags.setter
742
+ def flags(self, arg: SliderFlags, /) -> None: ...
743
+
744
+ class SliderInt(ValuePropertyInt):
745
+ def __init__(self, parent: Widget | None, label: str = '', value: int = 0, callback: Callable[[int], None] | None = None, min: int = 0, max: int = 0, format: str = '%d', flags: SliderFlags = 0) -> None: ...
746
+
747
+ @property
748
+ def min(self) -> int: ...
749
+
750
+ @min.setter
751
+ def min(self, arg: int, /) -> None: ...
752
+
753
+ @property
754
+ def max(self) -> int: ...
755
+
756
+ @max.setter
757
+ def max(self, arg: int, /) -> None: ...
758
+
759
+ @property
760
+ def format(self) -> str: ...
761
+
762
+ @format.setter
763
+ def format(self, arg: str, /) -> None: ...
764
+
765
+ @property
766
+ def flags(self) -> SliderFlags: ...
767
+
768
+ @flags.setter
769
+ def flags(self, arg: SliderFlags, /) -> None: ...
770
+
771
+ class SliderInt2(ValuePropertyInt2):
772
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.int2 = ..., callback: Callable[[sgl.math.int2], None] | None = None, min: int = 0, max: int = 0, format: str = '%d', flags: SliderFlags = 0) -> None: ...
773
+
774
+ @property
775
+ def min(self) -> int: ...
776
+
777
+ @min.setter
778
+ def min(self, arg: int, /) -> None: ...
779
+
780
+ @property
781
+ def max(self) -> int: ...
782
+
783
+ @max.setter
784
+ def max(self, arg: int, /) -> None: ...
785
+
786
+ @property
787
+ def format(self) -> str: ...
788
+
789
+ @format.setter
790
+ def format(self, arg: str, /) -> None: ...
791
+
792
+ @property
793
+ def flags(self) -> SliderFlags: ...
794
+
795
+ @flags.setter
796
+ def flags(self, arg: SliderFlags, /) -> None: ...
797
+
798
+ class SliderInt3(ValuePropertyInt3):
799
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.int3 = ..., callback: Callable[[sgl.math.int3], None] | None = None, min: int = 0, max: int = 0, format: str = '%d', flags: SliderFlags = 0) -> None: ...
800
+
801
+ @property
802
+ def min(self) -> int: ...
803
+
804
+ @min.setter
805
+ def min(self, arg: int, /) -> None: ...
806
+
807
+ @property
808
+ def max(self) -> int: ...
809
+
810
+ @max.setter
811
+ def max(self, arg: int, /) -> None: ...
812
+
813
+ @property
814
+ def format(self) -> str: ...
815
+
816
+ @format.setter
817
+ def format(self, arg: str, /) -> None: ...
818
+
819
+ @property
820
+ def flags(self) -> SliderFlags: ...
821
+
822
+ @flags.setter
823
+ def flags(self, arg: SliderFlags, /) -> None: ...
824
+
825
+ class SliderInt4(ValuePropertyInt4):
826
+ def __init__(self, parent: Widget | None, label: str = '', value: sgl.math.int4 = ..., callback: Callable[[sgl.math.int4], None] | None = None, min: int = 0, max: int = 0, format: str = '%d', flags: SliderFlags = 0) -> None: ...
827
+
828
+ @property
829
+ def min(self) -> int: ...
830
+
831
+ @min.setter
832
+ def min(self, arg: int, /) -> None: ...
833
+
834
+ @property
835
+ def max(self) -> int: ...
836
+
837
+ @max.setter
838
+ def max(self, arg: int, /) -> None: ...
839
+
840
+ @property
841
+ def format(self) -> str: ...
842
+
843
+ @format.setter
844
+ def format(self, arg: str, /) -> None: ...
845
+
846
+ @property
847
+ def flags(self) -> SliderFlags: ...
848
+
849
+ @flags.setter
850
+ def flags(self, arg: SliderFlags, /) -> None: ...
851
+
852
+ class Text(Widget):
853
+ def __init__(self, parent: Widget | None, text: str = '') -> None: ...
854
+
855
+ @property
856
+ def text(self) -> str: ...
857
+
858
+ @text.setter
859
+ def text(self, arg: str, /) -> None: ...
860
+
861
+ class ValuePropertyBool(Widget):
862
+ @property
863
+ def label(self) -> str: ...
864
+
865
+ @label.setter
866
+ def label(self, arg: str, /) -> None: ...
867
+
868
+ @property
869
+ def value(self) -> bool: ...
870
+
871
+ @value.setter
872
+ def value(self, arg: bool, /) -> None: ...
873
+
874
+ @property
875
+ def callback(self) -> Callable[[bool], None]: ...
876
+
877
+ @callback.setter
878
+ def callback(self, arg: Callable[[bool], None], /) -> None: ...
879
+
880
+ class ValuePropertyFloat(Widget):
881
+ @property
882
+ def label(self) -> str: ...
883
+
884
+ @label.setter
885
+ def label(self, arg: str, /) -> None: ...
886
+
887
+ @property
888
+ def value(self) -> float: ...
889
+
890
+ @value.setter
891
+ def value(self, arg: float, /) -> None: ...
892
+
893
+ @property
894
+ def callback(self) -> Callable[[float], None]: ...
895
+
896
+ @callback.setter
897
+ def callback(self, arg: Callable[[float], None], /) -> None: ...
898
+
899
+ class ValuePropertyFloat2(Widget):
900
+ @property
901
+ def label(self) -> str: ...
902
+
903
+ @label.setter
904
+ def label(self, arg: str, /) -> None: ...
905
+
906
+ @property
907
+ def value(self) -> sgl.math.float2: ...
908
+
909
+ @value.setter
910
+ def value(self, arg: sgl.math.float2, /) -> None: ...
911
+
912
+ @property
913
+ def callback(self) -> Callable[[sgl.math.float2], None]: ...
914
+
915
+ @callback.setter
916
+ def callback(self, arg: Callable[[sgl.math.float2], None], /) -> None: ...
917
+
918
+ class ValuePropertyFloat3(Widget):
919
+ @property
920
+ def label(self) -> str: ...
921
+
922
+ @label.setter
923
+ def label(self, arg: str, /) -> None: ...
924
+
925
+ @property
926
+ def value(self) -> sgl.math.float3: ...
927
+
928
+ @value.setter
929
+ def value(self, arg: sgl.math.float3, /) -> None: ...
930
+
931
+ @property
932
+ def callback(self) -> Callable[[sgl.math.float3], None]: ...
933
+
934
+ @callback.setter
935
+ def callback(self, arg: Callable[[sgl.math.float3], None], /) -> None: ...
936
+
937
+ class ValuePropertyFloat4(Widget):
938
+ @property
939
+ def label(self) -> str: ...
940
+
941
+ @label.setter
942
+ def label(self, arg: str, /) -> None: ...
943
+
944
+ @property
945
+ def value(self) -> sgl.math.float4: ...
946
+
947
+ @value.setter
948
+ def value(self, arg: sgl.math.float4, /) -> None: ...
949
+
950
+ @property
951
+ def callback(self) -> Callable[[sgl.math.float4], None]: ...
952
+
953
+ @callback.setter
954
+ def callback(self, arg: Callable[[sgl.math.float4], None], /) -> None: ...
955
+
956
+ class ValuePropertyInt(Widget):
957
+ @property
958
+ def label(self) -> str: ...
959
+
960
+ @label.setter
961
+ def label(self, arg: str, /) -> None: ...
962
+
963
+ @property
964
+ def value(self) -> int: ...
965
+
966
+ @value.setter
967
+ def value(self, arg: int, /) -> None: ...
968
+
969
+ @property
970
+ def callback(self) -> Callable[[int], None]: ...
971
+
972
+ @callback.setter
973
+ def callback(self, arg: Callable[[int], None], /) -> None: ...
974
+
975
+ class ValuePropertyInt2(Widget):
976
+ @property
977
+ def label(self) -> str: ...
978
+
979
+ @label.setter
980
+ def label(self, arg: str, /) -> None: ...
981
+
982
+ @property
983
+ def value(self) -> sgl.math.int2: ...
984
+
985
+ @value.setter
986
+ def value(self, arg: sgl.math.int2, /) -> None: ...
987
+
988
+ @property
989
+ def callback(self) -> Callable[[sgl.math.int2], None]: ...
990
+
991
+ @callback.setter
992
+ def callback(self, arg: Callable[[sgl.math.int2], None], /) -> None: ...
993
+
994
+ class ValuePropertyInt3(Widget):
995
+ @property
996
+ def label(self) -> str: ...
997
+
998
+ @label.setter
999
+ def label(self, arg: str, /) -> None: ...
1000
+
1001
+ @property
1002
+ def value(self) -> sgl.math.int3: ...
1003
+
1004
+ @value.setter
1005
+ def value(self, arg: sgl.math.int3, /) -> None: ...
1006
+
1007
+ @property
1008
+ def callback(self) -> Callable[[sgl.math.int3], None]: ...
1009
+
1010
+ @callback.setter
1011
+ def callback(self, arg: Callable[[sgl.math.int3], None], /) -> None: ...
1012
+
1013
+ class ValuePropertyInt4(Widget):
1014
+ @property
1015
+ def label(self) -> str: ...
1016
+
1017
+ @label.setter
1018
+ def label(self, arg: str, /) -> None: ...
1019
+
1020
+ @property
1021
+ def value(self) -> sgl.math.int4: ...
1022
+
1023
+ @value.setter
1024
+ def value(self, arg: sgl.math.int4, /) -> None: ...
1025
+
1026
+ @property
1027
+ def callback(self) -> Callable[[sgl.math.int4], None]: ...
1028
+
1029
+ @callback.setter
1030
+ def callback(self, arg: Callable[[sgl.math.int4], None], /) -> None: ...
1031
+
1032
+ class ValuePropertyString(Widget):
1033
+ @property
1034
+ def label(self) -> str: ...
1035
+
1036
+ @label.setter
1037
+ def label(self, arg: str, /) -> None: ...
1038
+
1039
+ @property
1040
+ def value(self) -> str: ...
1041
+
1042
+ @value.setter
1043
+ def value(self, arg: str, /) -> None: ...
1044
+
1045
+ @property
1046
+ def callback(self) -> Callable[[str], None]: ...
1047
+
1048
+ @callback.setter
1049
+ def callback(self, arg: Callable[[str], None], /) -> None: ...
1050
+
1051
+ class Widget(sgl.Object):
1052
+ """Base class for Python UI widgets. Widgets own their children."""
1053
+
1054
+ @property
1055
+ def parent(self) -> Widget: ...
1056
+
1057
+ @parent.setter
1058
+ def parent(self, arg: Widget, /) -> None: ...
1059
+
1060
+ @property
1061
+ def children(self) -> list[Widget]: ...
1062
+
1063
+ @property
1064
+ def visible(self) -> bool: ...
1065
+
1066
+ @visible.setter
1067
+ def visible(self, arg: bool, /) -> None: ...
1068
+
1069
+ @property
1070
+ def enabled(self) -> bool: ...
1071
+
1072
+ @enabled.setter
1073
+ def enabled(self, arg: bool, /) -> None: ...
1074
+
1075
+ def child_index(self, child: Widget) -> int: ...
1076
+
1077
+ def add_child(self, child: Widget) -> None: ...
1078
+
1079
+ def add_child_at(self, child: Widget, index: int) -> None: ...
1080
+
1081
+ def remove_child(self, child: Widget) -> None: ...
1082
+
1083
+ def remove_child_at(self, index: int) -> None: ...
1084
+
1085
+ def remove_all_children(self) -> None: ...
1086
+
1087
+ def __len__(self) -> int: ...
1088
+
1089
+ def __iter__(self) -> Iterator[Widget]: ...
1090
+
1091
+ def __getitem__(self, arg: int, /) -> Widget: ...
1092
+
1093
+ def __delitem__(self, arg: int, /) -> None: ...
1094
+
1095
+ class Window(Widget):
1096
+ def __init__(self, parent: Widget | None, title: str = '', position: sgl.math.float2 = ..., size: sgl.math.float2 = ...) -> None: ...
1097
+
1098
+ def show(self) -> None: ...
1099
+
1100
+ def close(self) -> None: ...
1101
+
1102
+ @property
1103
+ def title(self) -> str: ...
1104
+
1105
+ @title.setter
1106
+ def title(self, arg: str, /) -> None: ...
1107
+
1108
+ @property
1109
+ def position(self) -> sgl.math.float2: ...
1110
+
1111
+ @position.setter
1112
+ def position(self, arg: sgl.math.float2, /) -> None: ...
1113
+
1114
+ @property
1115
+ def size(self) -> sgl.math.float2: ...
1116
+
1117
+ @size.setter
1118
+ def size(self, arg: sgl.math.float2, /) -> None: ...