py-imgui-redux 4.0.1__cp310-cp310-macosx_11_0_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,505 @@
1
+ """ImNodes Library"""
2
+ from __future__ import annotations
3
+ import imgui.imnodes
4
+ import typing
5
+ import imgui
6
+
7
+ __all__ = [
8
+ "AttributeFlags",
9
+ "BeginInputAttribute",
10
+ "BeginNode",
11
+ "BeginNodeEditor",
12
+ "BeginNodeTitleBar",
13
+ "BeginOutputAttribute",
14
+ "BeginStaticAttribute",
15
+ "ClearLinkSelection",
16
+ "ClearNodeSelection",
17
+ "Col",
18
+ "Context",
19
+ "CreateContext",
20
+ "DestroyContext",
21
+ "EditorContextCreate",
22
+ "EditorContextFree",
23
+ "EditorContextGetPanning",
24
+ "EditorContextMoveToNode",
25
+ "EditorContextResetPanning",
26
+ "EditorContextSet",
27
+ "EndInputAttribute",
28
+ "EndNode",
29
+ "EndNodeEditor",
30
+ "EndNodeTitleBar",
31
+ "EndOutputAttribute",
32
+ "EndStaticAttribute",
33
+ "GetCurrentContext",
34
+ "GetIO",
35
+ "GetNodeDimensions",
36
+ "GetNodeEditorSpacePos",
37
+ "GetNodeGridSpacePos",
38
+ "GetNodeScreenSpacePos",
39
+ "GetSelectedLinks",
40
+ "GetSelectedNodes",
41
+ "GetStyle",
42
+ "IO",
43
+ "IsAnyAttributeActive",
44
+ "IsAttributeActive",
45
+ "IsEditorHovered",
46
+ "IsLinkCreated",
47
+ "IsLinkDestroyed",
48
+ "IsLinkDropped",
49
+ "IsLinkHovered",
50
+ "IsLinkSelected",
51
+ "IsLinkStarted",
52
+ "IsNodeHovered",
53
+ "IsNodeSelected",
54
+ "IsPinHovered",
55
+ "Link",
56
+ "LoadCurrentEditorStateFromIniFile",
57
+ "LoadEditorStateFromIniFile",
58
+ "MiniMap",
59
+ "MiniMapLocation",
60
+ "NumSelectedLinks",
61
+ "NumSelectedNodes",
62
+ "PinShape",
63
+ "PopAttributeFlag",
64
+ "PopColorStyle",
65
+ "PopStyleVar",
66
+ "PushAttributeFlag",
67
+ "PushColorStyle",
68
+ "PushStyleVar",
69
+ "SaveCurrentEditorStateToIniFile",
70
+ "SaveCurrentEditorStateToIniString",
71
+ "SaveEditStateToIniString",
72
+ "SaveEditorStateToIniFile",
73
+ "SelectLink",
74
+ "SelectNode",
75
+ "SetCurrentContext",
76
+ "SetNodeDraggable",
77
+ "SetNodeEditorSpacePos",
78
+ "SetNodeGridSpacePos",
79
+ "SetNodeScreenSpacePos",
80
+ "SnapNodeToGrid",
81
+ "Style",
82
+ "StyleColorsClassic",
83
+ "StyleColorsDark",
84
+ "StyleColorsLight",
85
+ "StyleFlags",
86
+ "StyleVar"
87
+ ]
88
+
89
+
90
+ class AttributeFlags():
91
+ EnableLinkCreationOnSnap = 2
92
+ EnableLinkDetachWithDragClick = 1
93
+ None_ = 0
94
+ pass
95
+ class Col():
96
+ BoxSelector = 12
97
+ BoxSelectorOutline = 13
98
+ GridBackground = 14
99
+ GridLine = 15
100
+ GridLinePrimary = 16
101
+ Link = 7
102
+ LinkHovered = 8
103
+ LinkSelected = 9
104
+ MiniMapBackground = 17
105
+ MiniMapBackgroundHovered = 18
106
+ MiniMapCanvas = 27
107
+ MiniMapCanvasOutline = 28
108
+ MiniMapLink = 25
109
+ MiniMapLinkSelected = 26
110
+ MiniMapNodeBackground = 21
111
+ MiniMapNodeBackgroundHovered = 22
112
+ MiniMapNodeBackgroundSelected = 23
113
+ MiniMapNodeOutline = 24
114
+ MiniMapOutline = 19
115
+ MiniMapOutlineHovered = 20
116
+ NodeBackground = 0
117
+ NodeBackgroundHovered = 1
118
+ NodeBackgroundSelected = 2
119
+ NodeOutline = 3
120
+ Pin = 10
121
+ PinHovered = 11
122
+ TitleBar = 4
123
+ TitleBarHovered = 5
124
+ TitleBarSelected = 6
125
+ pass
126
+ class Context():
127
+ pass
128
+ class IO():
129
+ def SetEmulateThreeButtonMouseMod(self, key: imgui.ImKey) -> None: ...
130
+ def SetLinkDetachedWithModifierClick(self, key: imgui.ImKey) -> None: ...
131
+ def SetMultipleSelectMod(self, key: imgui.ImKey) -> None: ...
132
+ def UnsetEmulateThreeButtonMouseMod(self) -> None: ...
133
+ def UnsetLinkDetachedWithModifierClick(self) -> None: ...
134
+ def UnsetMultipleSelectMod(self) -> None: ...
135
+ def __init__(self) -> None: ...
136
+ @property
137
+ def AltMouseButton(self) -> int:
138
+ """
139
+ :type: int
140
+ """
141
+ @AltMouseButton.setter
142
+ def AltMouseButton(self, arg0: typing.SupportsInt) -> None:
143
+ pass
144
+ @property
145
+ def AutoPanningSpeed(self) -> float:
146
+ """
147
+ :type: float
148
+ """
149
+ @AutoPanningSpeed.setter
150
+ def AutoPanningSpeed(self, arg0: typing.SupportsFloat) -> None:
151
+ pass
152
+ pass
153
+ class MiniMapLocation():
154
+ BottomLeft = 0
155
+ BottomRight = 1
156
+ TopLeft = 2
157
+ TopRight = 3
158
+ pass
159
+ class PinShape():
160
+ Circle = 0
161
+ CircleFilled = 1
162
+ Quad = 4
163
+ QuadFilled = 5
164
+ Triangle = 2
165
+ TriangleFilled = 3
166
+ pass
167
+ class Style():
168
+ def __init__(self) -> None: ...
169
+ @property
170
+ def Colors(self) -> ListWrapper<unsigned int>:
171
+ """
172
+ :type: ListWrapper<unsigned int>
173
+ """
174
+ @property
175
+ def Flags(self) -> int:
176
+ """
177
+ :type: int
178
+ """
179
+ @Flags.setter
180
+ def Flags(self, arg0: typing.SupportsInt) -> None:
181
+ pass
182
+ @property
183
+ def GridSpacing(self) -> float:
184
+ """
185
+ :type: float
186
+ """
187
+ @GridSpacing.setter
188
+ def GridSpacing(self, arg0: typing.SupportsFloat) -> None:
189
+ pass
190
+ @property
191
+ def LinkHoverDistance(self) -> float:
192
+ """
193
+ :type: float
194
+ """
195
+ @LinkHoverDistance.setter
196
+ def LinkHoverDistance(self, arg0: typing.SupportsFloat) -> None:
197
+ pass
198
+ @property
199
+ def LinkLineSegmentsPerLength(self) -> float:
200
+ """
201
+ :type: float
202
+ """
203
+ @LinkLineSegmentsPerLength.setter
204
+ def LinkLineSegmentsPerLength(self, arg0: typing.SupportsFloat) -> None:
205
+ pass
206
+ @property
207
+ def LinkThickness(self) -> float:
208
+ """
209
+ :type: float
210
+ """
211
+ @LinkThickness.setter
212
+ def LinkThickness(self, arg0: typing.SupportsFloat) -> None:
213
+ pass
214
+ @property
215
+ def MiniMapOffset(self) -> imgui.Vec2:
216
+ """
217
+ :type: imgui.Vec2
218
+ """
219
+ @MiniMapOffset.setter
220
+ def MiniMapOffset(self, arg0: imgui.Vec2) -> None:
221
+ pass
222
+ @property
223
+ def MiniMapPadding(self) -> imgui.Vec2:
224
+ """
225
+ :type: imgui.Vec2
226
+ """
227
+ @MiniMapPadding.setter
228
+ def MiniMapPadding(self, arg0: imgui.Vec2) -> None:
229
+ pass
230
+ @property
231
+ def NodeBorderThickness(self) -> float:
232
+ """
233
+ :type: float
234
+ """
235
+ @NodeBorderThickness.setter
236
+ def NodeBorderThickness(self, arg0: typing.SupportsFloat) -> None:
237
+ pass
238
+ @property
239
+ def NodeCornerRounding(self) -> float:
240
+ """
241
+ :type: float
242
+ """
243
+ @NodeCornerRounding.setter
244
+ def NodeCornerRounding(self, arg0: typing.SupportsFloat) -> None:
245
+ pass
246
+ @property
247
+ def NodePadding(self) -> imgui.Vec2:
248
+ """
249
+ :type: imgui.Vec2
250
+ """
251
+ @NodePadding.setter
252
+ def NodePadding(self, arg0: imgui.Vec2) -> None:
253
+ pass
254
+ @property
255
+ def PinCircleRadius(self) -> float:
256
+ """
257
+ :type: float
258
+ """
259
+ @PinCircleRadius.setter
260
+ def PinCircleRadius(self, arg0: typing.SupportsFloat) -> None:
261
+ pass
262
+ @property
263
+ def PinHoverRadius(self) -> float:
264
+ """
265
+ :type: float
266
+ """
267
+ @PinHoverRadius.setter
268
+ def PinHoverRadius(self, arg0: typing.SupportsFloat) -> None:
269
+ pass
270
+ @property
271
+ def PinLineThickness(self) -> float:
272
+ """
273
+ :type: float
274
+ """
275
+ @PinLineThickness.setter
276
+ def PinLineThickness(self, arg0: typing.SupportsFloat) -> None:
277
+ pass
278
+ @property
279
+ def PinOffset(self) -> float:
280
+ """
281
+ :type: float
282
+ """
283
+ @PinOffset.setter
284
+ def PinOffset(self, arg0: typing.SupportsFloat) -> None:
285
+ pass
286
+ @property
287
+ def PinQuadSideLength(self) -> float:
288
+ """
289
+ :type: float
290
+ """
291
+ @PinQuadSideLength.setter
292
+ def PinQuadSideLength(self, arg0: typing.SupportsFloat) -> None:
293
+ pass
294
+ @property
295
+ def PinTriangleSideLength(self) -> float:
296
+ """
297
+ :type: float
298
+ """
299
+ @PinTriangleSideLength.setter
300
+ def PinTriangleSideLength(self, arg0: typing.SupportsFloat) -> None:
301
+ pass
302
+ pass
303
+ class StyleFlags():
304
+ GridLines = 4
305
+ GridLinesPrimary = 8
306
+ GridSnapping = 16
307
+ NodeOutline = 1
308
+ None_ = 0
309
+ pass
310
+ class StyleVar():
311
+ GridSpacing = 0
312
+ LinkHoverDistance = 6
313
+ LinkLineSegmentsPerLength = 5
314
+ LinkThickness = 4
315
+ MiniMapOffset = 14
316
+ MiniMapPadding = 13
317
+ NodeBorderThickness = 3
318
+ NodeCornerRounding = 1
319
+ NodePadding = 2
320
+ PinCircleRadius = 7
321
+ PinHoverRadius = 11
322
+ PinLineThickness = 10
323
+ PinOffset = 12
324
+ PinQuadSideLength = 8
325
+ PinTriangleSideLength = 9
326
+ pass
327
+ def BeginInputAttribute(id: typing.SupportsInt, shape: typing.SupportsInt = 1) -> None:
328
+ pass
329
+ def BeginNode(id: typing.SupportsInt) -> None:
330
+ pass
331
+ def BeginNodeEditor() -> None:
332
+ pass
333
+ def BeginNodeTitleBar() -> None:
334
+ pass
335
+ def BeginOutputAttribute(id: typing.SupportsInt, shape: typing.SupportsInt = 1) -> None:
336
+ pass
337
+ def BeginStaticAttribute(id: typing.SupportsInt) -> None:
338
+ pass
339
+ @typing.overload
340
+ def ClearLinkSelection() -> None:
341
+ pass
342
+ @typing.overload
343
+ def ClearLinkSelection(link_id: typing.SupportsInt) -> None:
344
+ pass
345
+ @typing.overload
346
+ def ClearNodeSelection() -> None:
347
+ pass
348
+ @typing.overload
349
+ def ClearNodeSelection(node_id: typing.SupportsInt) -> None:
350
+ pass
351
+ def CreateContext() -> Context:
352
+ pass
353
+ def DestroyContext(ctx: typing.Optional[Context] = None) -> None:
354
+ pass
355
+ def EditorContextCreate() -> ImNodesEditorContext:
356
+ pass
357
+ def EditorContextFree(ctx: ImNodesEditorContext) -> None:
358
+ pass
359
+ def EditorContextGetPanning() -> imgui.Vec2:
360
+ pass
361
+ def EditorContextMoveToNode(node_id: typing.SupportsInt) -> None:
362
+ pass
363
+ def EditorContextResetPanning(pos: imgui.Vec2) -> None:
364
+ pass
365
+ def EditorContextSet(ctx: ImNodesEditorContext) -> None:
366
+ pass
367
+ def EndInputAttribute() -> None:
368
+ pass
369
+ def EndNode() -> None:
370
+ pass
371
+ def EndNodeEditor() -> None:
372
+ pass
373
+ def EndNodeTitleBar() -> None:
374
+ pass
375
+ def EndOutputAttribute() -> None:
376
+ pass
377
+ def EndStaticAttribute() -> None:
378
+ pass
379
+ def GetCurrentContext() -> Context:
380
+ pass
381
+ def GetIO() -> IO:
382
+ pass
383
+ def GetNodeDimensions(id: typing.SupportsInt) -> imgui.Vec2:
384
+ pass
385
+ def GetNodeEditorSpacePos(node_id: typing.SupportsInt) -> imgui.Vec2:
386
+ pass
387
+ def GetNodeGridSpacePos(node_id: typing.SupportsInt) -> imgui.Vec2:
388
+ pass
389
+ def GetNodeScreenSpacePos(node_id: typing.SupportsInt) -> imgui.Vec2:
390
+ pass
391
+ @typing.overload
392
+ def GetSelectedLinks() -> imgui.IntList:
393
+ pass
394
+ @typing.overload
395
+ def GetSelectedLinks(link_ids: imgui.IntList) -> None:
396
+ pass
397
+ @typing.overload
398
+ def GetSelectedNodes() -> imgui.IntList:
399
+ pass
400
+ @typing.overload
401
+ def GetSelectedNodes(node_ids: imgui.IntList) -> None:
402
+ pass
403
+ def GetStyle() -> Style:
404
+ pass
405
+ def IsAnyAttributeActive(attribute_id: imgui.IntRef = None) -> bool:
406
+ """
407
+ Returns true if any attribute is active, I.E. clicked on.
408
+ If not None, sets the passed reference to the ID of the active attribute.
409
+ """
410
+ def IsAttributeActive() -> bool:
411
+ pass
412
+ def IsEditorHovered() -> bool:
413
+ pass
414
+ @typing.overload
415
+ def IsLinkCreated(started_at_attribute_id: imgui.IntRef, ended_at_attribute_id: imgui.IntRef, created_from_snap: imgui.BoolRef = None) -> bool:
416
+ pass
417
+ @typing.overload
418
+ def IsLinkCreated(started_at_node_id: imgui.IntRef, started_at_attribute_id: imgui.IntRef, ended_at_node_id: imgui.IntRef, ended_at_attribute_id: imgui.IntRef, created_from_snap: imgui.BoolRef = None) -> bool:
419
+ pass
420
+ def IsLinkDestroyed(arg0: imgui.IntRef) -> bool:
421
+ """
422
+ linkID
423
+ """
424
+ def IsLinkDropped(started_at_attribute_id: imgui.IntRef = None, including_detached_links: bool = True) -> bool:
425
+ """
426
+ Did the user drop the dragged link before attaching it to a pin?
427
+ There are two different kinds of situations to consider when handling this event:
428
+ 1) a link which is created at a pin and then dropped
429
+ 2) an existing link which is detached from a pin and then dropped
430
+ Use the including_detached_links flag to control whether this function triggers when the user
431
+ detaches a link and drops it.
432
+ """
433
+ def IsLinkHovered(link_id: imgui.IntRef) -> bool:
434
+ pass
435
+ def IsLinkSelected(link_id: typing.SupportsInt) -> bool:
436
+ pass
437
+ def IsLinkStarted(started_at_attribute_id: imgui.IntRef) -> bool:
438
+ """
439
+ Returns true if a new link has been started, but not completed.
440
+ Sets the the passed reference to the ID of the starting attribute.
441
+ """
442
+ def IsNodeHovered(node_id: imgui.IntRef) -> bool:
443
+ pass
444
+ def IsNodeSelected(node_id: typing.SupportsInt) -> bool:
445
+ pass
446
+ def IsPinHovered(attribute_id: imgui.IntRef) -> bool:
447
+ pass
448
+ def Link(id: typing.SupportsInt, start_attribute_id: typing.SupportsInt, end_attribute_id: typing.SupportsInt) -> None:
449
+ pass
450
+ def LoadCurrentEditorStateFromIniFile(file_name: str) -> None:
451
+ pass
452
+ def LoadEditorStateFromIniFile(editor: ImNodesEditorContext, file_name: str) -> None:
453
+ pass
454
+ def MiniMap(size_fraction: typing.SupportsFloat = 0.20000000298023224, location: typing.SupportsInt = 2) -> None:
455
+ pass
456
+ def NumSelectedLinks() -> int:
457
+ pass
458
+ def NumSelectedNodes() -> int:
459
+ pass
460
+ def PopAttributeFlag() -> None:
461
+ pass
462
+ def PopColorStyle() -> None:
463
+ pass
464
+ def PopStyleVar(count: typing.SupportsInt = 1) -> None:
465
+ pass
466
+ def PushAttributeFlag(flags: typing.SupportsInt) -> None:
467
+ pass
468
+ def PushColorStyle(item: typing.SupportsInt, color: typing.SupportsInt) -> None:
469
+ pass
470
+ @typing.overload
471
+ def PushStyleVar(style_item: typing.SupportsInt, value: imgui.Vec2) -> None:
472
+ pass
473
+ @typing.overload
474
+ def PushStyleVar(style_item: typing.SupportsInt, value: typing.SupportsFloat) -> None:
475
+ pass
476
+ def SaveCurrentEditorStateToIniFile(file_name: str) -> None:
477
+ pass
478
+ def SaveCurrentEditorStateToIniString() -> str:
479
+ pass
480
+ def SaveEditStateToIniString(editor: ImNodesEditorContext) -> str:
481
+ pass
482
+ def SaveEditorStateToIniFile(editor: ImNodesEditorContext, file_name: str) -> None:
483
+ pass
484
+ def SelectLink(link_id: typing.SupportsInt) -> None:
485
+ pass
486
+ def SelectNode(node_id: typing.SupportsInt) -> None:
487
+ pass
488
+ def SetCurrentContext(ctx: Context) -> None:
489
+ pass
490
+ def SetNodeDraggable(node_id: typing.SupportsInt, draggable: bool) -> None:
491
+ pass
492
+ def SetNodeEditorSpacePos(node_id: typing.SupportsInt, editor_space_pos: imgui.Vec2) -> None:
493
+ pass
494
+ def SetNodeGridSpacePos(node_id: typing.SupportsInt, grid_pos: imgui.Vec2) -> None:
495
+ pass
496
+ def SetNodeScreenSpacePos(node_id: typing.SupportsInt, scree_space_pos: imgui.Vec2) -> None:
497
+ pass
498
+ def SnapNodeToGrid(node_id: typing.SupportsInt) -> None:
499
+ pass
500
+ def StyleColorsClassic(dest: typing.Optional[Style] = None) -> None:
501
+ pass
502
+ def StyleColorsDark(dest: typing.Optional[Style] = None) -> None:
503
+ pass
504
+ def StyleColorsLight(dest: typing.Optional[Style] = None) -> None:
505
+ pass