fake-bpy-module 20240411__py3-none-any.whl → 20240418__py3-none-any.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.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- _bpy_internal/__init__.pyi +4 -0
- _bpy_internal/freedesktop/__init__.pyi +88 -0
- _bpy_internal/freedesktop/py.typed +0 -0
- _bpy_internal/py.typed +0 -0
- aud/__init__.pyi +121 -48
- bgl/__init__.pyi +2443 -1265
- bl_math/__init__.pyi +19 -3
- bl_operators/presets/__init__.pyi +7 -0
- bl_ui/node_add_menu/__init__.pyi +1 -1
- bl_ui/properties_data_lightprobe/__init__.pyi +1134 -0
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +3 -0
- bl_ui/properties_physics_fluid/__init__.pyi +3 -0
- bl_ui/space_toolsystem_toolbar/__init__.pyi +17 -0
- bl_ui/space_userpref/__init__.pyi +13 -4
- bl_ui/space_view3d/__init__.pyi +190 -0
- blf/__init__.pyi +63 -13
- bmesh/__init__.pyi +13 -0
- bmesh/geometry/__init__.pyi +5 -0
- bmesh/ops/__init__.pyi +157 -68
- bmesh/types/__init__.pyi +109 -62
- bmesh/utils/__init__.pyi +11 -2
- bpy/__init__.pyi +7 -0
- bpy/app/__init__.pyi +13 -0
- bpy/app/handlers/__init__.pyi +41 -0
- bpy/app/icons/__init__.pyi +4 -2
- bpy/app/timers/__init__.pyi +38 -2
- bpy/app/translations/__init__.pyi +59 -1
- bpy/msgbus/__init__.pyi +46 -0
- bpy/ops/__init__.pyi +151 -0
- bpy/ops/action/__init__.pyi +76 -76
- bpy/ops/anim/__init__.pyi +104 -104
- bpy/ops/armature/__init__.pyi +96 -96
- bpy/ops/asset/__init__.pyi +32 -32
- bpy/ops/boid/__init__.pyi +16 -16
- bpy/ops/brush/__init__.pyi +18 -18
- bpy/ops/buttons/__init__.pyi +12 -12
- bpy/ops/cachefile/__init__.pyi +10 -10
- bpy/ops/camera/__init__.pyi +4 -4
- bpy/ops/clip/__init__.pyi +184 -184
- bpy/ops/cloth/__init__.pyi +2 -2
- bpy/ops/collection/__init__.pyi +18 -18
- bpy/ops/console/__init__.pyi +42 -42
- bpy/ops/constraint/__init__.pyi +36 -36
- bpy/ops/curve/__init__.pyi +102 -102
- bpy/ops/curves/__init__.pyi +132 -50
- bpy/ops/cycles/__init__.pyi +6 -6
- bpy/ops/dpaint/__init__.pyi +10 -10
- bpy/ops/ed/__init__.pyi +24 -24
- bpy/ops/export_anim/__init__.pyi +2 -2
- bpy/ops/export_mesh/__init__.pyi +2 -2
- bpy/ops/export_scene/__init__.pyi +11 -8
- bpy/ops/file/__init__.pyi +80 -80
- bpy/ops/fluid/__init__.pyi +28 -28
- bpy/ops/font/__init__.pyi +46 -46
- bpy/ops/geometry/__init__.pyi +20 -20
- bpy/ops/gizmogroup/__init__.pyi +4 -4
- bpy/ops/gpencil/__init__.pyi +300 -300
- bpy/ops/graph/__init__.pyi +130 -130
- bpy/ops/grease_pencil/__init__.pyi +139 -110
- bpy/ops/image/__init__.pyi +92 -92
- bpy/ops/import_anim/__init__.pyi +2 -2
- bpy/ops/import_curve/__init__.pyi +2 -2
- bpy/ops/import_mesh/__init__.pyi +2 -2
- bpy/ops/import_scene/__init__.pyi +6 -6
- bpy/ops/info/__init__.pyi +14 -14
- bpy/ops/lattice/__init__.pyi +16 -16
- bpy/ops/marker/__init__.pyi +22 -22
- bpy/ops/mask/__init__.pyi +78 -78
- bpy/ops/material/__init__.pyi +6 -6
- bpy/ops/mball/__init__.pyi +16 -16
- bpy/ops/mesh/__init__.pyi +327 -327
- bpy/ops/nla/__init__.pyi +80 -80
- bpy/ops/node/__init__.pyi +203 -203
- bpy/ops/object/__init__.pyi +496 -508
- bpy/ops/outliner/__init__.pyi +139 -139
- bpy/ops/paint/__init__.pyi +104 -104
- bpy/ops/paintcurve/__init__.pyi +16 -16
- bpy/ops/palette/__init__.pyi +14 -14
- bpy/ops/particle/__init__.pyi +72 -72
- bpy/ops/pose/__init__.pyi +78 -78
- bpy/ops/poselib/__init__.pyi +18 -18
- bpy/ops/preferences/__init__.pyi +77 -77
- bpy/ops/ptcache/__init__.pyi +14 -14
- bpy/ops/render/__init__.pyi +24 -24
- bpy/ops/rigidbody/__init__.pyi +26 -26
- bpy/ops/scene/__init__.pyi +78 -78
- bpy/ops/screen/__init__.pyi +78 -78
- bpy/ops/script/__init__.pyi +6 -6
- bpy/ops/sculpt/__init__.pyi +68 -62
- bpy/ops/sculpt_curves/__init__.pyi +8 -8
- bpy/ops/sequencer/__init__.pyi +170 -170
- bpy/ops/sound/__init__.pyi +14 -14
- bpy/ops/spreadsheet/__init__.pyi +8 -8
- bpy/ops/surface/__init__.pyi +12 -12
- bpy/ops/text/__init__.pyi +86 -86
- bpy/ops/text_editor/__init__.pyi +2 -2
- bpy/ops/texture/__init__.pyi +8 -8
- bpy/ops/transform/__init__.pyi +54 -54
- bpy/ops/ui/__init__.pyi +64 -64
- bpy/ops/uilist/__init__.pyi +6 -6
- bpy/ops/uv/__init__.pyi +98 -98
- bpy/ops/view2d/__init__.pyi +28 -28
- bpy/ops/view3d/__init__.pyi +134 -134
- bpy/ops/wm/__init__.pyi +225 -225
- bpy/ops/workspace/__init__.pyi +14 -14
- bpy/ops/world/__init__.pyi +2 -2
- bpy/path/__init__.pyi +6 -0
- bpy/props/__init__.pyi +141 -29
- bpy/types/__init__.pyi +101773 -5222
- bpy/utils/__init__.pyi +18 -3
- bpy/utils/previews/__init__.pyi +15 -0
- bpy/utils/units/__init__.pyi +11 -3
- bpy_extras/__init__.pyi +19 -0
- bpy_extras/asset_utils/__init__.pyi +5 -0
- {fake_bpy_module-20240411.dist-info → fake_bpy_module-20240418.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240411.dist-info → fake_bpy_module-20240418.dist-info}/RECORD +145 -141
- {fake_bpy_module-20240411.dist-info → fake_bpy_module-20240418.dist-info}/top_level.txt +1 -0
- freestyle/__init__.pyi +18 -0
- freestyle/chainingiterators/__init__.pyi +20 -5
- freestyle/functions/__init__.pyi +151 -155
- freestyle/predicates/__init__.pyi +53 -46
- freestyle/shaders/__init__.pyi +91 -32
- freestyle/types/__init__.pyi +362 -120
- freestyle/utils/ContextFunctions/__init__.pyi +32 -7
- freestyle/utils/__init__.pyi +13 -1
- gpu/__init__.pyi +225 -0
- gpu/capabilities/__init__.pyi +37 -15
- gpu/matrix/__init__.pyi +7 -1
- gpu/platform/__init__.pyi +5 -0
- gpu/select/__init__.pyi +5 -0
- gpu/shader/__init__.pyi +77 -0
- gpu/state/__init__.pyi +15 -4
- gpu/texture/__init__.pyi +5 -0
- gpu/types/__init__.pyi +91 -33
- gpu_extras/__init__.pyi +15 -0
- gpu_extras/presets/__init__.pyi +16 -4
- imbuf/__init__.pyi +13 -0
- imbuf/types/__init__.pyi +20 -5
- mathutils/__init__.pyi +349 -227
- mathutils/bvhtree/__init__.pyi +21 -8
- mathutils/geometry/__init__.pyi +23 -9
- mathutils/interpolate/__init__.pyi +5 -0
- mathutils/kdtree/__init__.pyi +19 -5
- mathutils/noise/__init__.pyi +87 -41
- {fake_bpy_module-20240411.dist-info → fake_bpy_module-20240418.dist-info}/WHEEL +0 -0
|
@@ -1234,6 +1234,23 @@ class _defs_gpencil_weight:
|
|
|
1234
1234
|
"""
|
|
1235
1235
|
...
|
|
1236
1236
|
|
|
1237
|
+
class _defs_grease_pencil_sculpt:
|
|
1238
|
+
""" """
|
|
1239
|
+
|
|
1240
|
+
def generate_from_brushes(self, context):
|
|
1241
|
+
"""
|
|
1242
|
+
|
|
1243
|
+
:param context:
|
|
1244
|
+
"""
|
|
1245
|
+
...
|
|
1246
|
+
|
|
1247
|
+
def poll_select_mask(self, context):
|
|
1248
|
+
"""
|
|
1249
|
+
|
|
1250
|
+
:param context:
|
|
1251
|
+
"""
|
|
1252
|
+
...
|
|
1253
|
+
|
|
1237
1254
|
class _defs_image_generic:
|
|
1238
1255
|
""" """
|
|
1239
1256
|
|
|
@@ -777,6 +777,14 @@ class USERPREF_MT_interface_theme_presets(bpy_types._GenericUI):
|
|
|
777
777
|
""" """
|
|
778
778
|
...
|
|
779
779
|
|
|
780
|
+
def post_cb(self, context, filepath):
|
|
781
|
+
"""
|
|
782
|
+
|
|
783
|
+
:param context:
|
|
784
|
+
:param filepath:
|
|
785
|
+
"""
|
|
786
|
+
...
|
|
787
|
+
|
|
780
788
|
def prepend(self, draw_func):
|
|
781
789
|
"""
|
|
782
790
|
|
|
@@ -799,10 +807,11 @@ class USERPREF_MT_interface_theme_presets(bpy_types._GenericUI):
|
|
|
799
807
|
"""
|
|
800
808
|
...
|
|
801
809
|
|
|
802
|
-
def reset_cb(self,
|
|
810
|
+
def reset_cb(self, _context, _filepath):
|
|
803
811
|
"""
|
|
804
812
|
|
|
805
|
-
:param
|
|
813
|
+
:param _context:
|
|
814
|
+
:param _filepath:
|
|
806
815
|
"""
|
|
807
816
|
...
|
|
808
817
|
|
|
@@ -11335,10 +11344,10 @@ class USERPREF_PT_theme(bpy_types._GenericUI):
|
|
|
11335
11344
|
""" """
|
|
11336
11345
|
...
|
|
11337
11346
|
|
|
11338
|
-
def draw(self,
|
|
11347
|
+
def draw(self, context):
|
|
11339
11348
|
"""
|
|
11340
11349
|
|
|
11341
|
-
:param
|
|
11350
|
+
:param context:
|
|
11342
11351
|
"""
|
|
11343
11352
|
...
|
|
11344
11353
|
|
bl_ui/space_view3d/__init__.pyi
CHANGED
|
@@ -5327,6 +5327,187 @@ class VIEW3D_MT_edit_curves(bpy_types._GenericUI):
|
|
|
5327
5327
|
""" """
|
|
5328
5328
|
...
|
|
5329
5329
|
|
|
5330
|
+
class VIEW3D_MT_edit_curves_add(bpy_types._GenericUI):
|
|
5331
|
+
""" """
|
|
5332
|
+
|
|
5333
|
+
bl_label: typing.Any
|
|
5334
|
+
""" """
|
|
5335
|
+
|
|
5336
|
+
bl_rna: typing.Any
|
|
5337
|
+
""" """
|
|
5338
|
+
|
|
5339
|
+
id_data: typing.Any
|
|
5340
|
+
""" """
|
|
5341
|
+
|
|
5342
|
+
def append(self, draw_func):
|
|
5343
|
+
"""
|
|
5344
|
+
|
|
5345
|
+
:param draw_func:
|
|
5346
|
+
"""
|
|
5347
|
+
...
|
|
5348
|
+
|
|
5349
|
+
def as_pointer(self):
|
|
5350
|
+
""" """
|
|
5351
|
+
...
|
|
5352
|
+
|
|
5353
|
+
def bl_rna_get_subclass(self):
|
|
5354
|
+
""" """
|
|
5355
|
+
...
|
|
5356
|
+
|
|
5357
|
+
def bl_rna_get_subclass_py(self):
|
|
5358
|
+
""" """
|
|
5359
|
+
...
|
|
5360
|
+
|
|
5361
|
+
def draw(self, _context):
|
|
5362
|
+
"""
|
|
5363
|
+
|
|
5364
|
+
:param _context:
|
|
5365
|
+
"""
|
|
5366
|
+
...
|
|
5367
|
+
|
|
5368
|
+
def draw_collapsible(self, context, layout):
|
|
5369
|
+
"""
|
|
5370
|
+
|
|
5371
|
+
:param context:
|
|
5372
|
+
:param layout:
|
|
5373
|
+
"""
|
|
5374
|
+
...
|
|
5375
|
+
|
|
5376
|
+
def draw_preset(self, _context):
|
|
5377
|
+
"""
|
|
5378
|
+
|
|
5379
|
+
:param _context:
|
|
5380
|
+
"""
|
|
5381
|
+
...
|
|
5382
|
+
|
|
5383
|
+
def driver_add(self):
|
|
5384
|
+
""" """
|
|
5385
|
+
...
|
|
5386
|
+
|
|
5387
|
+
def driver_remove(self):
|
|
5388
|
+
""" """
|
|
5389
|
+
...
|
|
5390
|
+
|
|
5391
|
+
def get(self):
|
|
5392
|
+
""" """
|
|
5393
|
+
...
|
|
5394
|
+
|
|
5395
|
+
def id_properties_clear(self):
|
|
5396
|
+
""" """
|
|
5397
|
+
...
|
|
5398
|
+
|
|
5399
|
+
def id_properties_ensure(self):
|
|
5400
|
+
""" """
|
|
5401
|
+
...
|
|
5402
|
+
|
|
5403
|
+
def id_properties_ui(self):
|
|
5404
|
+
""" """
|
|
5405
|
+
...
|
|
5406
|
+
|
|
5407
|
+
def is_extended(self):
|
|
5408
|
+
""" """
|
|
5409
|
+
...
|
|
5410
|
+
|
|
5411
|
+
def is_property_hidden(self):
|
|
5412
|
+
""" """
|
|
5413
|
+
...
|
|
5414
|
+
|
|
5415
|
+
def is_property_overridable_library(self):
|
|
5416
|
+
""" """
|
|
5417
|
+
...
|
|
5418
|
+
|
|
5419
|
+
def is_property_readonly(self):
|
|
5420
|
+
""" """
|
|
5421
|
+
...
|
|
5422
|
+
|
|
5423
|
+
def is_property_set(self):
|
|
5424
|
+
""" """
|
|
5425
|
+
...
|
|
5426
|
+
|
|
5427
|
+
def items(self):
|
|
5428
|
+
""" """
|
|
5429
|
+
...
|
|
5430
|
+
|
|
5431
|
+
def keyframe_delete(self):
|
|
5432
|
+
""" """
|
|
5433
|
+
...
|
|
5434
|
+
|
|
5435
|
+
def keyframe_insert(self):
|
|
5436
|
+
""" """
|
|
5437
|
+
...
|
|
5438
|
+
|
|
5439
|
+
def keys(self):
|
|
5440
|
+
""" """
|
|
5441
|
+
...
|
|
5442
|
+
|
|
5443
|
+
def path_from_id(self):
|
|
5444
|
+
""" """
|
|
5445
|
+
...
|
|
5446
|
+
|
|
5447
|
+
def path_menu(
|
|
5448
|
+
self,
|
|
5449
|
+
searchpaths,
|
|
5450
|
+
operator,
|
|
5451
|
+
props_default,
|
|
5452
|
+
prop_filepath,
|
|
5453
|
+
filter_ext,
|
|
5454
|
+
filter_path,
|
|
5455
|
+
display_name,
|
|
5456
|
+
add_operator,
|
|
5457
|
+
add_operator_props,
|
|
5458
|
+
):
|
|
5459
|
+
"""
|
|
5460
|
+
|
|
5461
|
+
:param searchpaths:
|
|
5462
|
+
:param operator:
|
|
5463
|
+
:param props_default:
|
|
5464
|
+
:param prop_filepath:
|
|
5465
|
+
:param filter_ext:
|
|
5466
|
+
:param filter_path:
|
|
5467
|
+
:param display_name:
|
|
5468
|
+
:param add_operator:
|
|
5469
|
+
:param add_operator_props:
|
|
5470
|
+
"""
|
|
5471
|
+
...
|
|
5472
|
+
|
|
5473
|
+
def path_resolve(self):
|
|
5474
|
+
""" """
|
|
5475
|
+
...
|
|
5476
|
+
|
|
5477
|
+
def pop(self):
|
|
5478
|
+
""" """
|
|
5479
|
+
...
|
|
5480
|
+
|
|
5481
|
+
def prepend(self, draw_func):
|
|
5482
|
+
"""
|
|
5483
|
+
|
|
5484
|
+
:param draw_func:
|
|
5485
|
+
"""
|
|
5486
|
+
...
|
|
5487
|
+
|
|
5488
|
+
def property_overridable_library_set(self):
|
|
5489
|
+
""" """
|
|
5490
|
+
...
|
|
5491
|
+
|
|
5492
|
+
def property_unset(self):
|
|
5493
|
+
""" """
|
|
5494
|
+
...
|
|
5495
|
+
|
|
5496
|
+
def remove(self, draw_func):
|
|
5497
|
+
"""
|
|
5498
|
+
|
|
5499
|
+
:param draw_func:
|
|
5500
|
+
"""
|
|
5501
|
+
...
|
|
5502
|
+
|
|
5503
|
+
def type_recast(self):
|
|
5504
|
+
""" """
|
|
5505
|
+
...
|
|
5506
|
+
|
|
5507
|
+
def values(self):
|
|
5508
|
+
""" """
|
|
5509
|
+
...
|
|
5510
|
+
|
|
5330
5511
|
class VIEW3D_MT_edit_curves_control_points(bpy_types._GenericUI):
|
|
5331
5512
|
""" """
|
|
5332
5513
|
|
|
@@ -45128,6 +45309,15 @@ class _draw_tool_settings_context_mode:
|
|
|
45128
45309
|
"""
|
|
45129
45310
|
...
|
|
45130
45311
|
|
|
45312
|
+
def SCULPT_GREASE_PENCIL(self, context, layout, tool):
|
|
45313
|
+
"""
|
|
45314
|
+
|
|
45315
|
+
:param context:
|
|
45316
|
+
:param layout:
|
|
45317
|
+
:param tool:
|
|
45318
|
+
"""
|
|
45319
|
+
...
|
|
45320
|
+
|
|
45131
45321
|
def VERTEX_GPENCIL(self, context, layout, tool):
|
|
45132
45322
|
"""
|
|
45133
45323
|
|
blf/__init__.pyi
CHANGED
|
@@ -1,44 +1,70 @@
|
|
|
1
|
+
"""
|
|
2
|
+
This module provides access to Blender's text drawing functions.
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
--------------------
|
|
6
|
+
|
|
7
|
+
Example of using the blf module. For this module to work we
|
|
8
|
+
need to use the OpenGL wrapper ~bgl as well.
|
|
9
|
+
|
|
10
|
+
```../examples/blf.py```
|
|
11
|
+
|
|
12
|
+
"""
|
|
13
|
+
|
|
1
14
|
import typing
|
|
2
15
|
|
|
3
16
|
GenericType = typing.TypeVar("GenericType")
|
|
4
17
|
|
|
5
|
-
def aspect(fontid, aspect):
|
|
18
|
+
def aspect(fontid: int, aspect: float):
|
|
6
19
|
"""Set the aspect for drawing text.
|
|
7
20
|
|
|
8
21
|
:param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
|
|
22
|
+
:type fontid: int
|
|
9
23
|
:param aspect: The aspect ratio for text drawing to use.
|
|
24
|
+
:type aspect: float
|
|
10
25
|
"""
|
|
11
26
|
|
|
12
27
|
...
|
|
13
28
|
|
|
14
|
-
def clipping(fontid, xmin, ymin, xmax, ymax):
|
|
29
|
+
def clipping(fontid: int, xmin: float, ymin: float, xmax: float, ymax: float):
|
|
15
30
|
"""Set the clipping, enable/disable using CLIPPING.
|
|
16
31
|
|
|
17
32
|
:param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
|
|
33
|
+
:type fontid: int
|
|
18
34
|
:param xmin: Clip the drawing area by these bounds.
|
|
35
|
+
:type xmin: float
|
|
19
36
|
:param ymin: Clip the drawing area by these bounds.
|
|
37
|
+
:type ymin: float
|
|
20
38
|
:param xmax: Clip the drawing area by these bounds.
|
|
39
|
+
:type xmax: float
|
|
21
40
|
:param ymax: Clip the drawing area by these bounds.
|
|
41
|
+
:type ymax: float
|
|
22
42
|
"""
|
|
23
43
|
|
|
24
44
|
...
|
|
25
45
|
|
|
26
|
-
def color(fontid, r, g, b, a):
|
|
46
|
+
def color(fontid: int, r: float, g: float, b: float, a: float):
|
|
27
47
|
"""Set the color for drawing text.
|
|
28
48
|
|
|
29
49
|
:param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
|
|
50
|
+
:type fontid: int
|
|
30
51
|
:param r: red channel 0.0 - 1.0.
|
|
52
|
+
:type r: float
|
|
31
53
|
:param g: green channel 0.0 - 1.0.
|
|
54
|
+
:type g: float
|
|
32
55
|
:param b: blue channel 0.0 - 1.0.
|
|
56
|
+
:type b: float
|
|
33
57
|
:param a: alpha channel 0.0 - 1.0.
|
|
58
|
+
:type a: float
|
|
34
59
|
"""
|
|
35
60
|
|
|
36
61
|
...
|
|
37
62
|
|
|
38
|
-
def dimensions(fontid, text: str):
|
|
63
|
+
def dimensions(fontid: int, text: str):
|
|
39
64
|
"""Return the width and height of the text.
|
|
40
65
|
|
|
41
66
|
:param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
|
|
67
|
+
:type fontid: int
|
|
42
68
|
:param text: the text to draw.
|
|
43
69
|
:type text: str
|
|
44
70
|
:return: the width and height of the text.
|
|
@@ -46,30 +72,35 @@ def dimensions(fontid, text: str):
|
|
|
46
72
|
|
|
47
73
|
...
|
|
48
74
|
|
|
49
|
-
def disable(fontid, option):
|
|
75
|
+
def disable(fontid: int, option: int):
|
|
50
76
|
"""Disable option.
|
|
51
77
|
|
|
52
78
|
:param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
|
|
79
|
+
:type fontid: int
|
|
53
80
|
:param option: One of ROTATION, CLIPPING, SHADOW or KERNING_DEFAULT.
|
|
81
|
+
:type option: int
|
|
54
82
|
"""
|
|
55
83
|
|
|
56
84
|
...
|
|
57
85
|
|
|
58
|
-
def draw(fontid, text: str):
|
|
86
|
+
def draw(fontid: int, text: str):
|
|
59
87
|
"""Draw text in the current context.
|
|
60
88
|
|
|
61
89
|
:param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
|
|
90
|
+
:type fontid: int
|
|
62
91
|
:param text: the text to draw.
|
|
63
92
|
:type text: str
|
|
64
93
|
"""
|
|
65
94
|
|
|
66
95
|
...
|
|
67
96
|
|
|
68
|
-
def enable(fontid, option):
|
|
97
|
+
def enable(fontid: int, option: int):
|
|
69
98
|
"""Enable option.
|
|
70
99
|
|
|
71
100
|
:param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
|
|
101
|
+
:type fontid: int
|
|
72
102
|
:param option: One of ROTATION, CLIPPING, SHADOW or KERNING_DEFAULT.
|
|
103
|
+
:type option: int
|
|
73
104
|
"""
|
|
74
105
|
|
|
75
106
|
...
|
|
@@ -84,54 +115,71 @@ def load(filepath: typing.Union[str, bytes]):
|
|
|
84
115
|
|
|
85
116
|
...
|
|
86
117
|
|
|
87
|
-
def position(fontid, x, y, z):
|
|
118
|
+
def position(fontid: int, x: float, y: float, z: float):
|
|
88
119
|
"""Set the position for drawing text.
|
|
89
120
|
|
|
90
121
|
:param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
|
|
122
|
+
:type fontid: int
|
|
91
123
|
:param x: X axis position to draw the text.
|
|
124
|
+
:type x: float
|
|
92
125
|
:param y: Y axis position to draw the text.
|
|
126
|
+
:type y: float
|
|
93
127
|
:param z: Z axis position to draw the text.
|
|
128
|
+
:type z: float
|
|
94
129
|
"""
|
|
95
130
|
|
|
96
131
|
...
|
|
97
132
|
|
|
98
|
-
def rotation(fontid, angle):
|
|
133
|
+
def rotation(fontid: int, angle: float):
|
|
99
134
|
"""Set the text rotation angle, enable/disable using ROTATION.
|
|
100
135
|
|
|
101
136
|
:param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
|
|
137
|
+
:type fontid: int
|
|
102
138
|
:param angle: The angle for text drawing to use.
|
|
139
|
+
:type angle: float
|
|
103
140
|
"""
|
|
104
141
|
|
|
105
142
|
...
|
|
106
143
|
|
|
107
|
-
def shadow(fontid, level, r, g, b, a):
|
|
144
|
+
def shadow(fontid: int, level: int, r: float, g: float, b: float, a: float):
|
|
108
145
|
"""Shadow options, enable/disable using SHADOW .
|
|
109
146
|
|
|
110
147
|
:param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
|
|
148
|
+
:type fontid: int
|
|
111
149
|
:param level: The blur level, can be 3, 5 or 0.
|
|
150
|
+
:type level: int
|
|
112
151
|
:param r: Shadow color (red channel 0.0 - 1.0).
|
|
152
|
+
:type r: float
|
|
113
153
|
:param g: Shadow color (green channel 0.0 - 1.0).
|
|
154
|
+
:type g: float
|
|
114
155
|
:param b: Shadow color (blue channel 0.0 - 1.0).
|
|
156
|
+
:type b: float
|
|
115
157
|
:param a: Shadow color (alpha channel 0.0 - 1.0).
|
|
158
|
+
:type a: float
|
|
116
159
|
"""
|
|
117
160
|
|
|
118
161
|
...
|
|
119
162
|
|
|
120
|
-
def shadow_offset(fontid, x, y):
|
|
163
|
+
def shadow_offset(fontid: int, x: float, y: float):
|
|
121
164
|
"""Set the offset for shadow text.
|
|
122
165
|
|
|
123
166
|
:param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
|
|
167
|
+
:type fontid: int
|
|
124
168
|
:param x: Vertical shadow offset value in pixels.
|
|
169
|
+
:type x: float
|
|
125
170
|
:param y: Horizontal shadow offset value in pixels.
|
|
171
|
+
:type y: float
|
|
126
172
|
"""
|
|
127
173
|
|
|
128
174
|
...
|
|
129
175
|
|
|
130
|
-
def size(fontid, size):
|
|
176
|
+
def size(fontid: int, size: float):
|
|
131
177
|
"""Set the size for drawing text.
|
|
132
178
|
|
|
133
179
|
:param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
|
|
180
|
+
:type fontid: int
|
|
134
181
|
:param size: Point size of the font.
|
|
182
|
+
:type size: float
|
|
135
183
|
"""
|
|
136
184
|
|
|
137
185
|
...
|
|
@@ -145,11 +193,13 @@ def unload(filepath: typing.Union[str, bytes]):
|
|
|
145
193
|
|
|
146
194
|
...
|
|
147
195
|
|
|
148
|
-
def word_wrap(fontid, wrap_width):
|
|
196
|
+
def word_wrap(fontid: int, wrap_width: int):
|
|
149
197
|
"""Set the wrap width, enable/disable using WORD_WRAP.
|
|
150
198
|
|
|
151
199
|
:param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
|
|
200
|
+
:type fontid: int
|
|
152
201
|
:param wrap_width: The width (in pixels) to wrap words at.
|
|
202
|
+
:type wrap_width: int
|
|
153
203
|
"""
|
|
154
204
|
|
|
155
205
|
...
|
bmesh/__init__.pyi
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
This module provides access to blenders bmesh data structures.
|
|
3
|
+
|
|
4
|
+
bmesh.ops.rst
|
|
5
|
+
bmesh.types.rst
|
|
6
|
+
bmesh.utils.rst
|
|
7
|
+
bmesh.geometry.rst
|
|
8
|
+
|
|
9
|
+
:maxdepth: 1
|
|
10
|
+
:caption: Submodules
|
|
11
|
+
|
|
12
|
+
"""
|
|
13
|
+
|
|
1
14
|
import typing
|
|
2
15
|
import bmesh.types
|
|
3
16
|
import bpy.types
|