fake-bpy-module 20250612__py3-none-any.whl → 20260118__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.
Files changed (325) hide show
  1. {bl_console_utils → _bl_console_utils}/autocomplete/complete_calltip/__init__.pyi +0 -13
  2. {bl_console_utils → _bl_console_utils}/autocomplete/complete_import/__init__.pyi +0 -5
  3. {bl_console_utils → _bl_console_utils}/autocomplete/complete_namespace/__init__.pyi +0 -11
  4. {bl_console_utils → _bl_console_utils}/autocomplete/intellisense/__init__.pyi +0 -10
  5. {bl_i18n_utils → _bl_i18n_utils}/__init__.pyi +1 -0
  6. {bl_i18n_utils → _bl_i18n_utils}/bl_extract_messages/__init__.pyi +1 -0
  7. {bl_i18n_utils → _bl_i18n_utils}/settings/__init__.pyi +3 -1
  8. {bl_i18n_utils → _bl_i18n_utils}/utils/__init__.pyi +4 -4
  9. _bl_i18n_utils/utils_spell_check/__init__.pyi +22 -0
  10. {bl_ui_utils → _bl_ui_utils}/__init__.pyi +1 -0
  11. _blendfile_header/__init__.pyi +48 -0
  12. _bpy_internal/__init__.pyi +4 -1
  13. _bpy_internal/assets/__init__.pyi +5 -0
  14. _bpy_internal/assets/remote_library_listing/__init__.pyi +5 -0
  15. _bpy_internal/assets/remote_library_listing/blender_asset_library_openapi/__init__.pyi +13 -0
  16. _bpy_internal/disk_file_hash_service/__init__.pyi +19 -0
  17. _bpy_internal/disk_file_hash_service/backend_sqlite/__init__.pyi +48 -0
  18. _bpy_internal/disk_file_hash_service/hash_service/__init__.pyi +64 -0
  19. _bpy_internal/disk_file_hash_service/types/__init__.pyi +53 -0
  20. _bpy_internal/extensions/wheel_manager/__init__.pyi +1 -1
  21. _bpy_internal/filesystem/__init__.pyi +5 -0
  22. _bpy_internal/filesystem/locking/__init__.pyi +28 -0
  23. _bpy_internal/grease_pencil/stroke/__init__.pyi +2 -2
  24. _bpy_internal/platform/__init__.pyi +5 -0
  25. _bpy_types/__init__.pyi +1592 -0
  26. {keyingsets_utils → _keyingsets_utils}/__init__.pyi +2 -0
  27. {rna_info → _rna_info}/__init__.pyi +4 -2
  28. addon_utils/__init__.pyi +0 -13
  29. aud/__init__.pyi +122 -145
  30. bl_app_templates_system/Storyboarding/__init__.pyi +11 -0
  31. bl_app_templates_system/__init__.pyi +5 -0
  32. bl_app_templates_system/py.typed +0 -0
  33. bl_math/__init__.pyi +3 -13
  34. bl_operators/__init__.pyi +1 -0
  35. bl_operators/add_mesh_torus/__init__.pyi +2 -3
  36. bl_operators/anim/__init__.pyi +62 -38
  37. bl_operators/assets/__init__.pyi +4 -9
  38. bl_operators/bone_selection_sets/__init__.pyi +15 -42
  39. bl_operators/clip/__init__.pyi +12 -31
  40. bl_operators/connect_to_output/__init__.pyi +2 -3
  41. bl_operators/console/__init__.pyi +6 -15
  42. bl_operators/constraint/__init__.pyi +6 -13
  43. bl_operators/copy_global_transform/__init__.pyi +261 -0
  44. bl_operators/file/__init__.pyi +6 -11
  45. bl_operators/freestyle/__init__.pyi +5 -12
  46. bl_operators/geometry_nodes/__init__.pyi +5 -12
  47. bl_operators/grease_pencil/__init__.pyi +2 -3
  48. bl_operators/image/__init__.pyi +6 -15
  49. bl_operators/image_as_planes/__init__.pyi +3 -10
  50. bl_operators/mesh/__init__.pyi +3 -49
  51. bl_operators/node/__init__.pyi +294 -73
  52. bl_operators/object/__init__.pyi +17 -53
  53. bl_operators/object_align/__init__.pyi +2 -3
  54. bl_operators/object_quick_effects/__init__.pyi +5 -12
  55. bl_operators/object_randomize_transform/__init__.pyi +2 -3
  56. bl_operators/presets/__init__.pyi +27 -76
  57. bl_operators/rigidbody/__init__.pyi +4 -9
  58. bl_operators/screen_play_rendered_anim/__init__.pyi +2 -3
  59. bl_operators/sequencer/__init__.pyi +12 -27
  60. bl_operators/spreadsheet/__init__.pyi +2 -3
  61. bl_operators/userpref/__init__.pyi +26 -75
  62. bl_operators/uvcalc_follow_active/__init__.pyi +3 -4
  63. bl_operators/uvcalc_lightmap/__init__.pyi +3 -4
  64. bl_operators/uvcalc_transform/__init__.pyi +26 -16
  65. bl_operators/vertexpaint_dirt/__init__.pyi +2 -3
  66. bl_operators/view3d/__init__.pyi +9 -24
  67. bl_operators/wm/__init__.pyi +48 -139
  68. bl_operators/world/__init__.pyi +3 -4
  69. bl_ui/__init__.pyi +7 -7
  70. bl_ui/anim/__init__.pyi +2 -3
  71. bl_ui/asset_shelf/__init__.pyi +2 -3
  72. bl_ui/generic_ui_list/__init__.pyi +4 -19
  73. bl_ui/node_add_menu/__init__.pyi +263 -7
  74. bl_ui/node_add_menu_compositor/__init__.pyi +96 -79
  75. bl_ui/node_add_menu_geometry/__init__.pyi +309 -270
  76. bl_ui/node_add_menu_shader/__init__.pyi +49 -49
  77. bl_ui/node_add_menu_texture/__init__.pyi +17 -62
  78. bl_ui/properties_collection/__init__.pyi +9 -22
  79. bl_ui/properties_constraint/__init__.pyi +129 -282
  80. bl_ui/properties_data_armature/__init__.pyi +22 -57
  81. bl_ui/properties_data_bone/__init__.pyi +12 -31
  82. bl_ui/properties_data_camera/__init__.pyi +18 -47
  83. bl_ui/properties_data_curve/__init__.pyi +18 -47
  84. bl_ui/properties_data_curves/__init__.pyi +11 -26
  85. bl_ui/properties_data_empty/__init__.pyi +3 -6
  86. bl_ui/properties_data_grease_pencil/__init__.pyi +23 -62
  87. bl_ui/properties_data_lattice/__init__.pyi +7 -14
  88. bl_ui/properties_data_light/__init__.pyi +13 -32
  89. bl_ui/properties_data_lightprobe/__init__.pyi +16 -43
  90. bl_ui/properties_data_mesh/__init__.pyi +47 -62
  91. bl_ui/properties_data_metaball/__init__.pyi +9 -20
  92. bl_ui/properties_data_modifier/__init__.pyi +22 -28
  93. bl_ui/properties_data_pointcloud/__init__.pyi +8 -19
  94. bl_ui/properties_data_shaderfx/__init__.pyi +2 -3
  95. bl_ui/properties_data_speaker/__init__.pyi +9 -20
  96. bl_ui/properties_data_volume/__init__.pyi +12 -29
  97. bl_ui/properties_freestyle/__init__.pyi +27 -76
  98. bl_ui/properties_grease_pencil_common/__init__.pyi +10 -168
  99. bl_ui/properties_mask_common/__init__.pyi +8 -21
  100. bl_ui/properties_material/__init__.pyi +26 -86
  101. bl_ui/properties_material_gpencil/__init__.pyi +36 -57
  102. bl_ui/properties_object/__init__.pyi +59 -65
  103. bl_ui/properties_output/__init__.pyi +21 -60
  104. bl_ui/properties_paint_common/__init__.pyi +30 -22
  105. bl_ui/properties_particle/__init__.pyi +58 -161
  106. bl_ui/properties_physics_cloth/__init__.pyi +15 -42
  107. bl_ui/properties_physics_common/__init__.pyi +2 -3
  108. bl_ui/properties_physics_dynamicpaint/__init__.pyi +23 -66
  109. bl_ui/properties_physics_field/__init__.pyi +11 -30
  110. bl_ui/properties_physics_fluid/__init__.pyi +29 -84
  111. bl_ui/properties_physics_geometry_nodes/__init__.pyi +2 -3
  112. bl_ui/properties_physics_rigidbody/__init__.pyi +9 -24
  113. bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +14 -39
  114. bl_ui/properties_physics_softbody/__init__.pyi +16 -45
  115. bl_ui/properties_render/__init__.pyi +139 -197
  116. bl_ui/properties_scene/__init__.pyi +46 -50
  117. bl_ui/properties_strip/__init__.pyi +744 -0
  118. bl_ui/properties_strip_modifier/__init__.pyi +45 -0
  119. bl_ui/properties_texture/__init__.pyi +30 -83
  120. bl_ui/properties_view_layer/__init__.pyi +84 -39
  121. bl_ui/properties_workspace/__init__.pyi +6 -13
  122. bl_ui/properties_world/__init__.pyi +14 -35
  123. bl_ui/space_clip/__init__.pyi +150 -231
  124. bl_ui/space_console/__init__.pyi +7 -18
  125. bl_ui/space_dopesheet/__init__.pyi +143 -100
  126. bl_ui/space_filebrowser/__init__.pyi +33 -90
  127. bl_ui/space_graph/__init__.pyi +48 -85
  128. bl_ui/space_image/__init__.pyi +111 -229
  129. bl_ui/space_info/__init__.pyi +7 -18
  130. bl_ui/space_nla/__init__.pyi +44 -73
  131. bl_ui/space_node/__init__.pyi +161 -123
  132. bl_ui/space_outliner/__init__.pyi +16 -45
  133. bl_ui/space_properties/__init__.pyi +34 -10
  134. bl_ui/space_sequencer/__init__.pyi +164 -901
  135. bl_ui/space_spreadsheet/__init__.pyi +4 -9
  136. bl_ui/space_statusbar/__init__.pyi +2 -3
  137. bl_ui/space_text/__init__.pyi +17 -48
  138. bl_ui/space_time/__init__.pyi +25 -71
  139. bl_ui/space_toolsystem_common/__init__.pyi +2 -2
  140. bl_ui/space_toolsystem_toolbar/__init__.pyi +30 -7
  141. bl_ui/space_topbar/__init__.pyi +35 -79
  142. bl_ui/space_userpref/__init__.pyi +185 -321
  143. bl_ui/space_view3d/__init__.pyi +337 -817
  144. bl_ui/space_view3d_sidebar/__init__.pyi +127 -0
  145. bl_ui/space_view3d_toolbar/__init__.pyi +110 -880
  146. bl_ui/utils/__init__.pyi +0 -17
  147. blend_render_info/__init__.pyi +1 -0
  148. blf/__init__.pyi +8 -54
  149. bmesh/__init__.pyi +2 -9
  150. bmesh/geometry/__init__.pyi +1 -4
  151. bmesh/ops/__init__.pyi +125 -508
  152. bmesh/types/__init__.pyi +318 -664
  153. bmesh/utils/__init__.pyi +17 -43
  154. bpy/__init__.pyi +1 -1
  155. bpy/app/__init__.pyi +93 -88
  156. bpy/app/handlers/__init__.pyi +19 -19
  157. bpy/app/icons/__init__.pyi +0 -6
  158. bpy/app/timers/__init__.pyi +2 -7
  159. bpy/app/translations/__init__.pyi +8 -23
  160. bpy/msgbus/__init__.pyi +4 -6
  161. bpy/ops/action/__init__.pyi +68 -199
  162. bpy/ops/anim/__init__.pyi +142 -299
  163. bpy/ops/armature/__init__.pyi +78 -209
  164. bpy/ops/asset/__init__.pyi +46 -108
  165. bpy/ops/boid/__init__.pyi +28 -45
  166. bpy/ops/brush/__init__.pyi +13 -108
  167. bpy/ops/buttons/__init__.pyi +16 -75
  168. bpy/ops/cachefile/__init__.pyi +8 -65
  169. bpy/ops/camera/__init__.pyi +0 -11
  170. bpy/ops/clip/__init__.pyi +173 -471
  171. bpy/ops/cloth/__init__.pyi +0 -5
  172. bpy/ops/collection/__init__.pyi +23 -36
  173. bpy/ops/console/__init__.pyi +40 -98
  174. bpy/ops/constraint/__init__.pyi +14 -85
  175. bpy/ops/curve/__init__.pyi +94 -277
  176. bpy/ops/curves/__init__.pyi +119 -166
  177. bpy/ops/cycles/__init__.pyi +4 -15
  178. bpy/ops/dpaint/__init__.pyi +14 -24
  179. bpy/ops/ed/__init__.pyi +44 -92
  180. bpy/ops/export_anim/__init__.pyi +2 -10
  181. bpy/ops/export_scene/__init__.pyi +16 -170
  182. bpy/ops/extensions/__init__.pyi +60 -165
  183. bpy/ops/file/__init__.pyi +110 -246
  184. bpy/ops/fluid/__init__.pyi +52 -83
  185. bpy/ops/font/__init__.pyi +40 -144
  186. bpy/ops/geometry/__init__.pyi +12 -127
  187. bpy/ops/gizmogroup/__init__.pyi +4 -13
  188. bpy/ops/gpencil/__init__.pyi +22 -54
  189. bpy/ops/graph/__init__.pyi +92 -343
  190. bpy/ops/grease_pencil/__init__.pyi +218 -550
  191. bpy/ops/image/__init__.pyi +85 -435
  192. bpy/ops/import_anim/__init__.pyi +3 -17
  193. bpy/ops/import_curve/__init__.pyi +2 -5
  194. bpy/ops/import_scene/__init__.pyi +15 -49
  195. bpy/ops/info/__init__.pyi +16 -39
  196. bpy/ops/lattice/__init__.pyi +12 -36
  197. bpy/ops/marker/__init__.pyi +12 -51
  198. bpy/ops/mask/__init__.pyi +68 -193
  199. bpy/ops/material/__init__.pyi +18 -18
  200. bpy/ops/mball/__init__.pyi +4 -31
  201. bpy/ops/mesh/__init__.pyi +140 -967
  202. bpy/ops/nla/__init__.pyi +87 -206
  203. bpy/ops/node/__init__.pyi +714 -744
  204. bpy/ops/object/__init__.pyi +461 -1341
  205. bpy/ops/outliner/__init__.pyi +192 -376
  206. bpy/ops/paint/__init__.pyi +94 -319
  207. bpy/ops/paintcurve/__init__.pyi +20 -40
  208. bpy/ops/palette/__init__.pyi +14 -30
  209. bpy/ops/particle/__init__.pyi +86 -184
  210. bpy/ops/pointcloud/__init__.pyi +12 -38
  211. bpy/ops/pose/__init__.pyi +108 -261
  212. bpy/ops/poselib/__init__.pyi +32 -67
  213. bpy/ops/preferences/__init__.pyi +37 -187
  214. bpy/ops/ptcache/__init__.pyi +22 -36
  215. bpy/ops/render/__init__.pyi +20 -72
  216. bpy/ops/rigidbody/__init__.pyi +25 -63
  217. bpy/ops/scene/__init__.pyi +122 -181
  218. bpy/ops/screen/__init__.pyi +93 -221
  219. bpy/ops/script/__init__.pyi +4 -13
  220. bpy/ops/sculpt/__init__.pyi +69 -324
  221. bpy/ops/sculpt_curves/__init__.pyi +10 -23
  222. bpy/ops/sequencer/__init__.pyi +410 -730
  223. bpy/ops/sound/__init__.pyi +16 -114
  224. bpy/ops/spreadsheet/__init__.pyi +20 -37
  225. bpy/ops/surface/__init__.pyi +0 -48
  226. bpy/ops/text/__init__.pyi +112 -250
  227. bpy/ops/text_editor/__init__.pyi +0 -5
  228. bpy/ops/texture/__init__.pyi +14 -21
  229. bpy/ops/transform/__init__.pyi +18 -386
  230. bpy/ops/ui/__init__.pyi +117 -188
  231. bpy/ops/uilist/__init__.pyi +0 -13
  232. bpy/ops/uv/__init__.pyi +238 -305
  233. bpy/ops/view2d/__init__.pyi +16 -76
  234. bpy/ops/view3d/__init__.pyi +153 -377
  235. bpy/ops/wm/__init__.pyi +277 -1397
  236. bpy/ops/workspace/__init__.pyi +32 -39
  237. bpy/ops/world/__init__.pyi +10 -12
  238. bpy/path/__init__.pyi +1 -35
  239. bpy/props/__init__.pyi +347 -218
  240. bpy/stub_internal/rna_enums/__init__.pyi +142 -108
  241. bpy/types/__init__.pyi +77367 -101305
  242. bpy/utils/__init__.pyi +11 -82
  243. bpy/utils/previews/__init__.pyi +2 -11
  244. bpy/utils/units/__init__.pyi +5 -15
  245. bpy_extras/anim_utils/__init__.pyi +24 -16
  246. bpy_extras/bmesh_utils/__init__.pyi +0 -1
  247. bpy_extras/id_map_utils/__init__.pyi +14 -6
  248. bpy_extras/image_utils/__init__.pyi +2 -11
  249. bpy_extras/io_utils/__init__.pyi +8 -27
  250. bpy_extras/keyconfig_utils/__init__.pyi +1 -1
  251. bpy_extras/mesh_utils/__init__.pyi +0 -12
  252. bpy_extras/node_shader_utils/__init__.pyi +1 -9
  253. bpy_extras/object_utils/__init__.pyi +1 -15
  254. bpy_extras/view3d_utils/__init__.pyi +0 -18
  255. bpy_extras/wm_utils/progress_report/__init__.pyi +1 -1
  256. {fake_bpy_module-20250612.dist-info → fake_bpy_module-20260118.dist-info}/METADATA +4 -1
  257. fake_bpy_module-20260118.dist-info/RECORD +385 -0
  258. {fake_bpy_module-20250612.dist-info → fake_bpy_module-20260118.dist-info}/top_level.txt +17 -16
  259. freestyle/chainingiterators/__init__.pyi +5 -27
  260. freestyle/functions/__init__.pyi +0 -139
  261. freestyle/predicates/__init__.pyi +2 -53
  262. freestyle/shaders/__init__.pyi +15 -81
  263. freestyle/types/__init__.pyi +159 -799
  264. freestyle/utils/ContextFunctions/__init__.pyi +0 -23
  265. freestyle/utils/__init__.pyi +5 -11
  266. gpu/capabilities/__init__.pyi +0 -21
  267. gpu/matrix/__init__.pyi +1 -10
  268. gpu/platform/__init__.pyi +2 -7
  269. gpu/shader/__init__.pyi +26 -9
  270. gpu/state/__init__.pyi +60 -39
  271. gpu/texture/__init__.pyi +3 -5
  272. gpu/types/__init__.pyi +116 -184
  273. gpu_extras/batch/__init__.pyi +1 -5
  274. gpu_extras/presets/__init__.pyi +6 -8
  275. idprop/types/__init__.pyi +6 -6
  276. imbuf/__init__.pyi +3 -10
  277. imbuf/types/__init__.pyi +7 -21
  278. keyingsets_builtins/__init__.pyi +24 -67
  279. mathutils/__init__.pyi +241 -2207
  280. mathutils/bvhtree/__init__.pyi +18 -26
  281. mathutils/geometry/__init__.pyi +82 -132
  282. mathutils/interpolate/__init__.pyi +6 -5
  283. mathutils/kdtree/__init__.pyi +1 -11
  284. mathutils/noise/__init__.pyi +61 -106
  285. rna_prop_ui/__init__.pyi +1 -1
  286. bgl/__init__.pyi +0 -4256
  287. bpy_types/__init__.pyi +0 -30
  288. fake_bpy_module-20250612.dist-info/RECORD +0 -367
  289. {animsys_refactor → _animsys_refactor}/__init__.pyi +0 -0
  290. {animsys_refactor → _animsys_refactor}/py.typed +0 -0
  291. {bl_console_utils → _bl_console_utils}/__init__.pyi +0 -0
  292. {bl_console_utils → _bl_console_utils}/autocomplete/__init__.pyi +0 -0
  293. {bgl → _bl_console_utils}/py.typed +0 -0
  294. {bl_i18n_utils → _bl_i18n_utils}/merge_po/__init__.pyi +0 -0
  295. {bl_console_utils → _bl_i18n_utils}/py.typed +0 -0
  296. {bl_i18n_utils → _bl_i18n_utils}/utils_cli/__init__.pyi +0 -0
  297. {bl_i18n_utils → _bl_i18n_utils}/utils_languages_menu/__init__.pyi +0 -0
  298. {bl_i18n_utils → _bl_i18n_utils}/utils_rtl/__init__.pyi +0 -0
  299. {bl_previews_utils → _bl_previews_utils}/__init__.pyi +0 -0
  300. {bl_previews_utils → _bl_previews_utils}/bl_previews_render/__init__.pyi +0 -0
  301. {bl_i18n_utils → _bl_previews_utils}/py.typed +0 -0
  302. {bl_rna_utils → _bl_rna_utils}/__init__.pyi +0 -0
  303. {bl_rna_utils → _bl_rna_utils}/data_path/__init__.pyi +0 -0
  304. {bl_previews_utils → _bl_rna_utils}/py.typed +0 -0
  305. {bl_text_utils → _bl_text_utils}/__init__.pyi +0 -0
  306. {bl_text_utils → _bl_text_utils}/external_editor/__init__.pyi +0 -0
  307. {bl_rna_utils → _bl_text_utils}/py.typed +0 -0
  308. {bl_ui_utils → _bl_ui_utils}/layout/__init__.pyi +0 -0
  309. {bl_text_utils → _bl_ui_utils}/py.typed +0 -0
  310. {bl_ui_utils → _blendfile_header}/py.typed +0 -0
  311. /_bpy_internal/{freedesktop → platform/freedesktop}/__init__.pyi +0 -0
  312. {bpy_restrict_state → _bpy_restrict_state}/__init__.pyi +0 -0
  313. {bpy_restrict_state → _bpy_restrict_state}/py.typed +0 -0
  314. {bpy_types → _bpy_types}/py.typed +0 -0
  315. {console_python → _console_python}/__init__.pyi +0 -0
  316. {console_python → _console_python}/py.typed +0 -0
  317. {console_shell → _console_shell}/__init__.pyi +0 -0
  318. {console_shell → _console_shell}/py.typed +0 -0
  319. {graphviz_export → _graphviz_export}/__init__.pyi +0 -0
  320. {graphviz_export → _graphviz_export}/py.typed +0 -0
  321. {keyingsets_utils → _keyingsets_utils}/py.typed +0 -0
  322. {rna_info → _rna_info}/py.typed +0 -0
  323. {rna_xml → _rna_xml}/__init__.pyi +0 -0
  324. {rna_xml → _rna_xml}/py.typed +0 -0
  325. {fake_bpy_module-20250612.dist-info → fake_bpy_module-20260118.dist-info}/WHEEL +0 -0
bl_ui/utils/__init__.pyi CHANGED
@@ -3,23 +3,6 @@ import collections.abc
3
3
  import typing_extensions
4
4
  import numpy.typing as npt
5
5
 
6
- class PlayheadSnappingPanel:
7
- bl_label: typing.Any
8
- bl_region_type: typing.Any
9
-
10
- def draw(self, context) -> None:
11
- """
12
-
13
- :param context:
14
- """
15
-
16
- @classmethod
17
- def poll(cls, context) -> None:
18
- """
19
-
20
- :param context:
21
- """
22
-
23
6
  class PresetPanel:
24
7
  bl_label: typing.Any
25
8
  bl_region_type: typing.Any
@@ -6,5 +6,6 @@ import numpy.typing as npt
6
6
  class RawBlendFileReader:
7
7
  """Return a file handle to the raw blend file data (abstracting compressed formats)."""
8
8
 
9
+ def get_render_info_structure(endian_str, size) -> None: ...
9
10
  def main() -> None: ...
10
11
  def read_blend_rend_chunk(filepath) -> None: ...
blf/__init__.pyi CHANGED
@@ -23,23 +23,20 @@ import typing
23
23
  import collections.abc
24
24
  import typing_extensions
25
25
  import numpy.typing as npt
26
+ import imbuf.types
26
27
 
27
28
  def aspect(fontid: int, aspect: float) -> None:
28
29
  """Set the aspect for drawing text.
29
30
 
30
31
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
31
- :type fontid: int
32
32
  :param aspect: The aspect ratio for text drawing to use.
33
- :type aspect: float
34
33
  """
35
34
 
36
- def bind_imbuf(fontid: int, image, display_name: None | str | None = None) -> None:
37
- """Context manager to draw text into an image buffer instead of the GPU's context.
35
+ def bind_imbuf(fontid: int, imbuf: imbuf.types.ImBuf) -> None:
36
+ """Context manager to draw text into an image buffer instead of the GPUs context.
38
37
 
39
38
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
40
- :type fontid: int
41
- :param display_name: The color management display name to use or None.
42
- :type display_name: None | str | None
39
+ :param imbuf: The image to draw into.
43
40
  :return: The BLF ImBuf context manager.
44
41
  """
45
42
 
@@ -47,161 +44,118 @@ def clipping(fontid: int, xmin: float, ymin: float, xmax: float, ymax: float) ->
47
44
  """Set the clipping, enable/disable using CLIPPING.
48
45
 
49
46
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
50
- :type fontid: int
51
47
  :param xmin: Clip the drawing area by these bounds.
52
- :type xmin: float
53
48
  :param ymin: Clip the drawing area by these bounds.
54
- :type ymin: float
55
49
  :param xmax: Clip the drawing area by these bounds.
56
- :type xmax: float
57
50
  :param ymax: Clip the drawing area by these bounds.
58
- :type ymax: float
59
51
  """
60
52
 
61
53
  def color(fontid: int, r: float, g: float, b: float, a: float) -> None:
62
54
  """Set the color for drawing text.
63
55
 
64
56
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
65
- :type fontid: int
66
57
  :param r: red channel 0.0 - 1.0.
67
- :type r: float
68
58
  :param g: green channel 0.0 - 1.0.
69
- :type g: float
70
59
  :param b: blue channel 0.0 - 1.0.
71
- :type b: float
72
60
  :param a: alpha channel 0.0 - 1.0.
73
- :type a: float
74
61
  """
75
62
 
76
63
  def dimensions(fontid: int, text: str) -> tuple[float, float]:
77
64
  """Return the width and height of the text.
78
65
 
79
66
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
80
- :type fontid: int
81
67
  :param text: the text to draw.
82
- :type text: str
83
68
  :return: the width and height of the text.
84
- :rtype: tuple[float, float]
85
69
  """
86
70
 
87
71
  def disable(fontid: int, option: int) -> None:
88
72
  """Disable option.
89
73
 
90
74
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
91
- :type fontid: int
92
75
  :param option: One of ROTATION, CLIPPING, SHADOW or KERNING_DEFAULT.
93
- :type option: int
94
76
  """
95
77
 
96
78
  def draw(fontid: int, text: str) -> None:
97
79
  """Draw text in the current context.
98
80
 
99
81
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
100
- :type fontid: int
101
82
  :param text: the text to draw.
102
- :type text: str
103
83
  """
104
84
 
105
85
  def draw_buffer(fontid: int, text: str) -> None:
106
86
  """Draw text into the buffer bound to the fontid.
107
87
 
108
88
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
109
- :type fontid: int
110
89
  :param text: the text to draw.
111
- :type text: str
112
90
  """
113
91
 
114
92
  def enable(fontid: int, option: int) -> None:
115
93
  """Enable option.
116
94
 
117
95
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
118
- :type fontid: int
119
96
  :param option: One of ROTATION, CLIPPING, SHADOW or KERNING_DEFAULT.
120
- :type option: int
121
97
  """
122
98
 
123
99
  def load(filepath: bytes | str) -> int:
124
100
  """Load a new font.
125
101
 
126
102
  :param filepath: the filepath of the font.
127
- :type filepath: bytes | str
128
- :return: the new font's fontid or -1 if there was an error.
129
- :rtype: int
103
+ :return: the new fonts fontid or -1 if there was an error.
130
104
  """
131
105
 
132
106
  def position(fontid: int, x: float, y: float, z: float) -> None:
133
107
  """Set the position for drawing text.
134
108
 
135
109
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
136
- :type fontid: int
137
110
  :param x: X axis position to draw the text.
138
- :type x: float
139
111
  :param y: Y axis position to draw the text.
140
- :type y: float
141
112
  :param z: Z axis position to draw the text.
142
- :type z: float
143
113
  """
144
114
 
145
115
  def rotation(fontid: int, angle: float) -> None:
146
116
  """Set the text rotation angle, enable/disable using ROTATION.
147
117
 
148
118
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
149
- :type fontid: int
150
119
  :param angle: The angle for text drawing to use.
151
- :type angle: float
152
120
  """
153
121
 
154
122
  def shadow(fontid: int, level: int, r: float, g: float, b: float, a: float) -> None:
155
123
  """Shadow options, enable/disable using SHADOW .
156
124
 
157
125
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
158
- :type fontid: int
159
126
  :param level: The blur level (0, 3, 5) or outline (6).
160
- :type level: int
161
127
  :param r: Shadow color (red channel 0.0 - 1.0).
162
- :type r: float
163
128
  :param g: Shadow color (green channel 0.0 - 1.0).
164
- :type g: float
165
129
  :param b: Shadow color (blue channel 0.0 - 1.0).
166
- :type b: float
167
130
  :param a: Shadow color (alpha channel 0.0 - 1.0).
168
- :type a: float
169
131
  """
170
132
 
171
- def shadow_offset(fontid: int, x: float, y: float) -> None:
133
+ def shadow_offset(fontid: int, x: int, y: int) -> None:
172
134
  """Set the offset for shadow text.
173
135
 
174
136
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
175
- :type fontid: int
176
- :param x: Vertical shadow offset value in pixels.
177
- :type x: float
178
- :param y: Horizontal shadow offset value in pixels.
179
- :type y: float
137
+ :param x: Horizontal shadow offset value in pixels.
138
+ :param y: Vertical shadow offset value in pixels.
180
139
  """
181
140
 
182
141
  def size(fontid: int, size: float) -> None:
183
142
  """Set the size for drawing text.
184
143
 
185
144
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
186
- :type fontid: int
187
145
  :param size: Point size of the font.
188
- :type size: float
189
146
  """
190
147
 
191
148
  def unload(filepath: bytes | str) -> None:
192
149
  """Unload an existing font.
193
150
 
194
151
  :param filepath: the filepath of the font.
195
- :type filepath: bytes | str
196
152
  """
197
153
 
198
154
  def word_wrap(fontid: int, wrap_width: int) -> None:
199
155
  """Set the wrap width, enable/disable using WORD_WRAP.
200
156
 
201
157
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
202
- :type fontid: int
203
158
  :param wrap_width: The width (in pixels) to wrap words at.
204
- :type wrap_width: int
205
159
  """
206
160
 
207
161
  CLIPPING: typing.Any
bmesh/__init__.pyi CHANGED
@@ -27,30 +27,23 @@ def from_edit_mesh(mesh: bpy.types.Mesh) -> bmesh.types.BMesh:
27
27
  """Return a BMesh from this mesh, currently the mesh must already be in editmode.
28
28
 
29
29
  :param mesh: The editmode mesh.
30
- :type mesh: bpy.types.Mesh
31
30
  :return: the BMesh associated with this mesh.
32
- :rtype: bmesh.types.BMesh
33
31
  """
34
32
 
35
- def new(use_operators: bool = True) -> bmesh.types.BMesh:
33
+ def new(*, use_operators: bool = True) -> bmesh.types.BMesh:
36
34
  """
37
35
 
38
36
  :param use_operators: Support calling operators in `bmesh.ops` (uses some extra memory per vert/edge/face).
39
- :type use_operators: bool
40
37
  :return: Return a new, empty BMesh.
41
- :rtype: bmesh.types.BMesh
42
38
  """
43
39
 
44
40
  def update_edit_mesh(
45
- mesh: bpy.types.Mesh, loop_triangles: bool = True, destructive: bool = True
41
+ mesh: bpy.types.Mesh, *, loop_triangles: bool = True, destructive: bool = True
46
42
  ) -> None:
47
43
  """Update the mesh after changes to the BMesh in editmode,
48
44
  optionally recalculating n-gon tessellation.
49
45
 
50
46
  :param mesh: The editmode mesh.
51
- :type mesh: bpy.types.Mesh
52
47
  :param loop_triangles: Option to recalculate n-gon tessellation.
53
- :type loop_triangles: bool
54
48
  :param destructive: Use when geometry has been added or removed.
55
- :type destructive: bool
56
49
  """
@@ -13,12 +13,9 @@ import mathutils
13
13
  def intersect_face_point(
14
14
  face: bmesh.types.BMFace, point: collections.abc.Sequence[float] | mathutils.Vector
15
15
  ) -> bool:
16
- """Tests if the projection of a point is inside a face (using the face's normal).
16
+ """Tests if the projection of a point is inside a face (using the faces normal).
17
17
 
18
18
  :param face: The face to test.
19
- :type face: bmesh.types.BMFace
20
19
  :param point: The point to test.
21
- :type point: collections.abc.Sequence[float] | mathutils.Vector
22
20
  :return: True when the projection of the point is in the face.
23
- :rtype: bool
24
21
  """