├── .gitignore
├── LICENSE
├── README.md
├── build-rhino-stubs.ps1
├── builder
├── PyStubbler
│ ├── .editorconfig
│ ├── App.config
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── PyStubbler.csproj
│ ├── icon.ico
│ └── packages.config
├── PyStubblerLib
│ ├── .editorconfig
│ ├── BuildConfig.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── PyStubblerLib.csproj
│ └── StubBuilder.cs
├── PyStubblerNET.sln
└── PythonStubsBuilder.cs
├── static
├── gh-stub-vscode.gif
└── rhino-stub-vscode.gif
└── stubs
├── Eto
├── Eto-stubs
│ ├── Drawing
│ │ └── __init__.pyi
│ ├── Forms
│ │ ├── ThemedControls
│ │ │ └── __init__.pyi
│ │ └── __init__.pyi
│ ├── IO
│ │ └── __init__.pyi
│ ├── Threading
│ │ └── __init__.pyi
│ └── __init__.pyi
├── LICENSE
├── MANIFEST.in
├── README.md
└── setup.py
├── GH_IO
├── GH_IO-stubs
│ ├── Serialization
│ │ └── __init__.pyi
│ ├── Types
│ │ └── __init__.pyi
│ ├── UserInterface
│ │ └── __init__.pyi
│ └── __init__.pyi
├── LICENSE
├── MANIFEST.in
├── README.md
└── setup.py
├── GH_Util
├── GH_Util-stubs
│ ├── MetaBall
│ │ └── __init__.pyi
│ └── __init__.pyi
├── LICENSE
├── MANIFEST.in
├── README.md
└── setup.py
├── Grasshopper
├── Grasshopper-stubs
│ ├── Documentation
│ │ └── __init__.pyi
│ ├── GUI
│ │ ├── Alignment
│ │ │ └── __init__.pyi
│ │ ├── Base
│ │ │ └── __init__.pyi
│ │ ├── Canvas
│ │ │ ├── Interaction
│ │ │ │ └── __init__.pyi
│ │ │ ├── TagArtists
│ │ │ │ └── __init__.pyi
│ │ │ └── __init__.pyi
│ │ ├── Colours
│ │ │ └── __init__.pyi
│ │ ├── Equations
│ │ │ └── __init__.pyi
│ │ ├── Gradient
│ │ │ └── __init__.pyi
│ │ ├── HTML
│ │ │ └── __init__.pyi
│ │ ├── IconEditor
│ │ │ └── __init__.pyi
│ │ ├── Layout
│ │ │ └── __init__.pyi
│ │ ├── MRU
│ │ │ └── __init__.pyi
│ │ ├── RemotePanel
│ │ │ └── __init__.pyi
│ │ ├── Ribbon
│ │ │ └── __init__.pyi
│ │ ├── Script
│ │ │ └── __init__.pyi
│ │ ├── SettingsControls
│ │ │ └── __init__.pyi
│ │ ├── Stacks
│ │ │ └── __init__.pyi
│ │ ├── StringDisplay
│ │ │ └── __init__.pyi
│ │ ├── Theme
│ │ │ └── __init__.pyi
│ │ ├── Widgets
│ │ │ └── __init__.pyi
│ │ └── __init__.pyi
│ ├── Getters
│ │ └── __init__.pyi
│ ├── Kernel
│ │ ├── Attributes
│ │ │ └── __init__.pyi
│ │ ├── Components
│ │ │ └── __init__.pyi
│ │ ├── Data
│ │ │ └── __init__.pyi
│ │ ├── Expressions
│ │ │ └── __init__.pyi
│ │ ├── Geometry
│ │ │ ├── ConvexHull
│ │ │ │ └── __init__.pyi
│ │ │ ├── Delaunay
│ │ │ │ └── __init__.pyi
│ │ │ ├── SpatialTrees
│ │ │ │ └── __init__.pyi
│ │ │ ├── Voronoi
│ │ │ │ └── __init__.pyi
│ │ │ └── __init__.pyi
│ │ ├── Graphs
│ │ │ └── __init__.pyi
│ │ ├── Parameters
│ │ │ ├── Hints
│ │ │ │ └── __init__.pyi
│ │ │ └── __init__.pyi
│ │ ├── Sorting
│ │ │ └── __init__.pyi
│ │ ├── Special
│ │ │ ├── SketchElements
│ │ │ │ └── __init__.pyi
│ │ │ └── __init__.pyi
│ │ ├── Types
│ │ │ ├── Transforms
│ │ │ │ └── __init__.pyi
│ │ │ └── __init__.pyi
│ │ ├── Undo
│ │ │ ├── Actions
│ │ │ │ └── __init__.pyi
│ │ │ └── __init__.pyi
│ │ ├── Utility
│ │ │ └── __init__.pyi
│ │ └── __init__.pyi
│ ├── Plugin
│ │ └── __init__.pyi
│ └── __init__.pyi
├── LICENSE
├── MANIFEST.in
├── README.md
└── setup.py
└── Rhino
├── LICENSE
├── MANIFEST.in
├── README.md
├── Rhino-stubs
├── ApplicationSettings
│ └── __init__.pyi
├── Collections
│ └── __init__.pyi
├── Commands
│ └── __init__.pyi
├── Display
│ └── __init__.pyi
├── DocObjects
│ ├── Custom
│ │ └── __init__.pyi
│ ├── SnapShots
│ │ └── __init__.pyi
│ ├── Tables
│ │ └── __init__.pyi
│ └── __init__.pyi
├── FileIO
│ └── __init__.pyi
├── Geometry
│ ├── Collections
│ │ └── __init__.pyi
│ ├── Intersect
│ │ └── __init__.pyi
│ ├── MeshRefinements
│ │ └── __init__.pyi
│ ├── Morphs
│ │ └── __init__.pyi
│ └── __init__.pyi
├── Input
│ ├── Custom
│ │ └── __init__.pyi
│ └── __init__.pyi
├── NodeInCode
│ └── __init__.pyi
├── PlugIns
│ └── __init__.pyi
├── Render
│ ├── ChangeQueue
│ │ └── __init__.pyi
│ ├── ChildSlotNames
│ │ └── __init__.pyi
│ ├── DataSources
│ │ └── __init__.pyi
│ ├── Fields
│ │ └── __init__.pyi
│ ├── ParameterNames
│ │ └── __init__.pyi
│ ├── PostEffects
│ │ └── __init__.pyi
│ ├── UI
│ │ └── __init__.pyi
│ └── __init__.pyi
├── Runtime
│ ├── InProcess
│ │ └── __init__.pyi
│ ├── InteropWrappers
│ │ └── __init__.pyi
│ ├── Notifications
│ │ └── __init__.pyi
│ ├── RhinoAccounts
│ │ └── __init__.pyi
│ └── __init__.pyi
├── UI
│ ├── Controls
│ │ ├── DataSource
│ │ │ └── __init__.pyi
│ │ ├── ThumbnailUI
│ │ │ └── __init__.pyi
│ │ └── __init__.pyi
│ ├── Gumball
│ │ └── __init__.pyi
│ └── __init__.pyi
└── __init__.pyi
├── requirements.txt
└── setup.py
/.gitignore:
--------------------------------------------------------------------------------
1 | # Byte-compiled / optimized / DLL files
2 | __pycache__/
3 | *.py[cod]
4 | *$py.class
5 |
6 | # C extensions
7 | *.so
8 |
9 | # Distribution / packaging
10 | .Python
11 | build/
12 | develop-eggs/
13 | dist/
14 | downloads/
15 | eggs/
16 | .eggs/
17 | lib/
18 | lib64/
19 | parts/
20 | sdist/
21 | var/
22 | wheels/
23 | *.egg-info/
24 | .installed.cfg
25 | *.egg
26 | MANIFEST
27 |
28 | # PyInstaller
29 | # Usually these files are written by a python script from a template
30 | # before PyInstaller builds the exe, so as to inject date/other infos into it.
31 | *.manifest
32 | *.spec
33 |
34 | # Installer logs
35 | pip-log.txt
36 | pip-delete-this-directory.txt
37 |
38 | # Unit test / coverage reports
39 | htmlcov/
40 | .tox/
41 | .coverage
42 | .coverage.*
43 | .cache
44 | nosetests.xml
45 | coverage.xml
46 | *.cover
47 | .hypothesis/
48 | .pytest_cache/
49 |
50 | # Translations
51 | *.mo
52 | *.pot
53 |
54 | # Django stuff:
55 | *.log
56 | local_settings.py
57 | db.sqlite3
58 |
59 | # Flask stuff:
60 | instance/
61 | .webassets-cache
62 |
63 | # Scrapy stuff:
64 | .scrapy
65 |
66 | # Sphinx documentation
67 | docs/_build/
68 |
69 | # PyBuilder
70 | target/
71 |
72 | # Jupyter Notebook
73 | .ipynb_checkpoints
74 |
75 | # pyenv
76 | .python-version
77 |
78 | # celery beat schedule file
79 | celerybeat-schedule
80 |
81 | # SageMath parsed files
82 | *.sage.py
83 |
84 | # Environments
85 | .env
86 | .venv
87 | env/
88 | venv/
89 | ENV/
90 | env.bak/
91 | venv.bak/
92 |
93 | # Spyder project settings
94 | .spyderproject
95 | .spyproject
96 |
97 | # Rope project settings
98 | .ropeproject
99 |
100 | # mkdocs documentation
101 | /site
102 |
103 | # mypy
104 | .mypy_cache/
105 | **/.vs
106 | **/obj
107 | **/bin
108 | /builder/pystubsbuilder/*.user
109 | /builder/packages
110 | /builder/PyStubbler/PyStubbler.csproj.user
111 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Robert McNeel & Associates
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # McNeel python stubs
2 |
3 | [](https://pypi.org/project/Rhino-stubs)
4 |
5 | Python stubs for .NET assemblies that ship with Rhino. Specifically
6 | - RhinoCommon (https://pypi.org/project/Rhino-stubs/)
7 | - Eto (https://pypi.org/project/Eto-stubs/)
8 | - Grasshopper (https://pypi.org/project/Grasshopper-stubs/)
9 | - GH_IO (https://pypi.org/project/GH-IO-stubs/)
10 | - GH_Util (https://pypi.org/project/GH-Util-stubs/)
11 |
12 | See the following posts for details about the purpose of these packages:
13 |
14 | - [Autocomplete while editing python scripts outside of Rhino](https://discourse.mcneel.com/t/autocomplete-while-editing-python-scripts-outside-of-rhino/79329) on Rhino forums
15 | - [Autocomplete and Type Hints with Python Scripts for Rhino/Grasshopper](
16 | https://stevebaer.wordpress.com/2019/02/25/autocomplete-and-type-hints-with-python-scripts-for-rhino-grasshopper) on Steve Baer's Notes
17 |
18 |
19 | ## Using with [VSCode](https://code.visualstudio.com/)
20 |
21 | - Open your project in VSCode
22 | - Open a terminal
23 | - Depending on the python package manager that you are using, install the stub python packages into your project environment. Examples below use the `pipenv` package manager.
24 |
25 | `$ pipenv install Rhino-stubs `
26 |
27 | `$ pipenv install Grasshopper-stubs `
28 |
29 | - Now you can import `Rhino` or `Grasshopper` and use the autocomplete
30 |
31 | 
32 |
33 | 
--------------------------------------------------------------------------------
/build-rhino-stubs.ps1:
--------------------------------------------------------------------------------
1 | # configs
2 | $mypath = (Get-Item -Path ".\").FullName
3 | $stubsdest = "$mypath\stubs"
4 | $rhinobase = "C:\Program Files\Rhino 7"
5 | $rhinoplugins = "$rhinobase\Plug-ins"
6 | $rhinosystem = "$rhinobase\System"
7 |
8 | cd "builder\bin"
9 |
10 | ./PyStubbler.exe --dest="$stubsdest\Eto" --search=$rhinosystem --postfix="-stubs" "$rhinosystem\Eto.dll"
11 | ./PyStubbler.exe --dest="$stubsdest\Rhino" --search=$rhinosystem --postfix="-stubs" "$rhinosystem\RhinoCommon.dll"
12 | ./PyStubbler.exe --dest="$stubsdest\Grasshopper" --search=$rhinosystem --postfix="-stubs" "$rhinoplugins\Grasshopper\Grasshopper.dll"
13 | ./PyStubbler.exe --dest="$stubsdest\GH_IO" --search=$rhinosystem --postfix="-stubs" "$rhinoplugins\Grasshopper\GH_IO.dll"
14 | ./PyStubbler.exe --dest="$stubsdest\GH_Util" --search=$rhinosystem --postfix="-stubs" "$rhinoplugins\Grasshopper\GH_Util.dll"
15 |
16 | # back to where started
17 | cd $mypath
--------------------------------------------------------------------------------
/builder/PyStubbler/.editorconfig:
--------------------------------------------------------------------------------
1 | # editorconfig.org
2 |
3 | # top-most EditorConfig file
4 | root = true
5 |
6 | # Default settings:
7 | # A newline ending every file
8 | # Use 4 spaces as indentation
9 | [*]
10 | insert_final_newline = true
11 | indent_style = space
12 | indent_size = 4
13 |
14 | [project.json]
15 | indent_size = 2
16 |
17 | # C# files
18 | [*.cs]
19 | # New line preferences
20 | csharp_new_line_before_open_brace = all
21 | csharp_new_line_before_else = true
22 | csharp_new_line_before_catch = true
23 | csharp_new_line_before_finally = true
24 | csharp_new_line_before_members_in_object_initializers = true
25 | csharp_new_line_before_members_in_anonymous_types = true
26 | csharp_new_line_within_query_expression_clauses = true
27 |
28 | # Indentation preferences
29 | csharp_indent_block_contents = true
30 | csharp_indent_braces = false
31 | csharp_indent_case_contents = true
32 | csharp_indent_switch_labels = true
33 | csharp_indent_labels = flush_left
34 |
35 | # avoid this. unless absolutely necessary
36 | dotnet_style_qualification_for_field = false:suggestion
37 | dotnet_style_qualification_for_property = false:suggestion
38 | dotnet_style_qualification_for_method = false:suggestion
39 | dotnet_style_qualification_for_event = false:suggestion
40 |
41 | # only use var when it's obvious what the variable type is
42 | csharp_style_var_for_built_in_types = false:none
43 | csharp_style_var_when_type_is_apparent = false:none
44 | csharp_style_var_elsewhere = false:suggestion
45 |
46 | # use language keywords instead of BCL types
47 | dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
48 | dotnet_style_predefined_type_for_member_access = true:suggestion
49 |
50 | # name all constant fields using PascalCase
51 | dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
52 | dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
53 | dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
54 |
55 | dotnet_naming_symbols.constant_fields.applicable_kinds = field
56 | dotnet_naming_symbols.constant_fields.required_modifiers = const
57 |
58 | dotnet_naming_style.pascal_case_style.capitalization = pascal_case
59 |
60 | # static fields should have s_ prefix
61 | dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion
62 | dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields
63 | dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
64 |
65 | dotnet_naming_symbols.static_fields.applicable_kinds = field
66 | dotnet_naming_symbols.static_fields.required_modifiers = static
67 |
68 | dotnet_naming_style.static_prefix_style.required_prefix = s_
69 | dotnet_naming_style.static_prefix_style.capitalization = camel_case
70 |
71 | # internal and private fields should be _camelCase
72 | dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
73 | dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
74 | dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
75 |
76 | dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
77 | dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
78 |
79 | dotnet_naming_style.camel_case_underscore_style.required_prefix = _
80 | dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
81 |
82 | # Code style defaults
83 | dotnet_sort_system_directives_first = true
84 | csharp_preserve_single_line_blocks = true
85 | csharp_preserve_single_line_statements = false
86 |
87 | # Expression-level preferences
88 | dotnet_style_object_initializer = true:suggestion
89 | dotnet_style_collection_initializer = true:suggestion
90 | dotnet_style_explicit_tuple_names = true:suggestion
91 | dotnet_style_coalesce_expression = true:suggestion
92 | dotnet_style_null_propagation = true:suggestion
93 |
94 | # Expression-bodied members
95 | csharp_style_expression_bodied_methods = false:none
96 | csharp_style_expression_bodied_constructors = false:none
97 | csharp_style_expression_bodied_operators = false:none
98 | csharp_style_expression_bodied_properties = true:none
99 | csharp_style_expression_bodied_indexers = true:none
100 | csharp_style_expression_bodied_accessors = true:none
101 |
102 | # Pattern matching
103 | csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
104 | csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
105 | csharp_style_inlined_variable_declaration = true:suggestion
106 |
107 | # Null checking preferences
108 | csharp_style_throw_expression = true:suggestion
109 | csharp_style_conditional_delegate_call = true:suggestion
110 |
111 | # Space preferences
112 | csharp_space_after_cast = false
113 | csharp_space_after_colon_in_inheritance_clause = true
114 | csharp_space_after_comma = true
115 | csharp_space_after_dot = false
116 | csharp_space_after_keywords_in_control_flow_statements = true
117 | csharp_space_after_semicolon_in_for_statement = true
118 | csharp_space_around_binary_operators = before_and_after
119 | csharp_space_around_declaration_statements = do_not_ignore
120 | csharp_space_before_colon_in_inheritance_clause = true
121 | csharp_space_before_comma = false
122 | csharp_space_before_dot = false
123 | csharp_space_before_open_square_brackets = false
124 | csharp_space_before_semicolon_in_for_statement = false
125 | csharp_space_between_empty_square_brackets = false
126 | csharp_space_between_method_call_empty_parameter_list_parentheses = false
127 | csharp_space_between_method_call_name_and_opening_parenthesis = false
128 | csharp_space_between_method_call_parameter_list_parentheses = false
129 | csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
130 | csharp_space_between_method_declaration_name_and_open_parenthesis = false
131 | csharp_space_between_method_declaration_parameter_list_parentheses = false
132 | csharp_space_between_parentheses = false
133 | csharp_space_between_square_brackets = false
134 |
135 | # C++ Files
136 | [*.{cpp,h,in}]
137 | curly_bracket_next_line = true
138 | indent_brace_style = Allman
139 |
140 | # Xml project files
141 | [*.{csproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
142 | indent_size = 2
143 |
144 | # Xml build files
145 | [*.builds]
146 | indent_size = 2
147 |
148 | # Xml files
149 | [*.{xml,stylecop,resx,ruleset}]
150 | indent_size = 2
151 |
152 | # Xml config files
153 | [*.{props,targets,config,nuspec}]
154 | indent_size = 2
155 |
156 | # Shell scripts
157 | [*.sh]
158 | end_of_line = lf
159 | [*.{cmd, bat}]
160 | end_of_line = crlf
161 |
--------------------------------------------------------------------------------
/builder/PyStubbler/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/builder/PyStubbler/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using System.Collections.Generic;
4 | using System.Reflection;
5 | using System.IO;
6 |
7 | using DocoptNet;
8 | using PyStubblerLib;
9 |
10 | namespace PyStubbler
11 | {
12 | class Program
13 | {
14 | private const string UsagePatterns = @"
15 | Usage:
16 | pystubsbuilder (-h | --help)
17 | pystubsbuilder (-V | --version)
18 | pystubsbuilder [--dest=] [--search=...] [--prefix=] [--postfix=] [--dest-is-root] ...
19 |
20 | Options:
21 | -h --help Show this help
22 | -V --version Show version
23 | --dest= Path to save the subs to
24 | --search= Path to search for referenced assemblies
25 | --prefix= Root namespace directory prefix
26 | --postfix= Root namespace directory postfix
27 | --dest-is-root Use destination path for root namespace
28 | ";
29 |
30 | static void Main(string[] args)
31 | {
32 | var arguments = new Docopt().Apply(UsagePatterns, args, version: Assembly.GetExecutingAssembly().GetName().Version, exit: true);
33 |
34 | if (arguments.ContainsKey(""))
35 | foreach (ValueObject targetDll in (ArrayList)arguments[""].Value)
36 | {
37 | string assmPath = (string)targetDll.Value;
38 | if (File.Exists(assmPath))
39 | {
40 | // grab dest path if provided
41 | string destPath = null;
42 | if (arguments["--dest"] != null && arguments["--dest"].IsString)
43 | destPath = (string)arguments["--dest"].Value;
44 | Console.WriteLine($"target path is {destPath}");
45 |
46 | // grab search paths if provided
47 | string[] searchPaths = null;
48 | if (arguments["--search"] != null && arguments["--search"].IsList)
49 | {
50 | List lookupPaths = new List();
51 | foreach (ValueObject searchPath in arguments["--search"].AsList.ToArray())
52 | {
53 | Console.WriteLine($"search path {searchPath}");
54 | lookupPaths.Add((string)searchPath.Value);
55 | }
56 | searchPaths = lookupPaths.ToArray();
57 | }
58 |
59 | // prepare generator configs
60 | // grab pre and postfixes for root namespace dir names
61 | var genCfg = new BuildConfig
62 | {
63 | Prefix = arguments["--prefix"] != null ? (string)arguments["--prefix"].Value : string.Empty,
64 | Postfix = arguments["--postfix"] != null ? (string)arguments["--postfix"].Value : string.Empty,
65 | DestPathIsRoot = arguments["--dest-is-root"] != null ? (bool)arguments["--dest-is-root"].Value : false,
66 | };
67 |
68 | Console.WriteLine($"building stubs for {assmPath}");
69 | try
70 | {
71 | var dest = StubBuilder.BuildAssemblyStubs(
72 | assmPath,
73 | destPath: destPath,
74 | searchPaths: searchPaths,
75 | cfgs: genCfg
76 | );
77 | Console.WriteLine($"stubs saved to {dest}");
78 | }
79 | catch (Exception sgEx)
80 | {
81 | Console.WriteLine($"error: failed generating stubs | {sgEx.Message}");
82 | }
83 | }
84 | else
85 | {
86 | Console.WriteLine($"error: can not find {assmPath}");
87 | }
88 | }
89 | }
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/builder/PyStubbler/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("PyStubbler")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("PyStubbler")]
13 | [assembly: AssemblyCopyright("Copyright © 2019")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("31381ec9-a531-4802-b6a5-3341d85890ce")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/builder/PyStubbler/PyStubbler.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {31381EC9-A531-4802-B6A5-3341D85890CE}
8 | Exe
9 | PyStubbler
10 | PyStubbler
11 | v4.7.1
12 | 512
13 | true
14 | true
15 |
16 |
17 | true
18 | ..\bin\
19 | DEBUG;TRACE
20 | full
21 | x64
22 | prompt
23 | MinimumRecommendedRules.ruleset
24 | true
25 | --dest=".\Rhino" --search="C:\\Program Files\\Rhino 7\\System" "C:\\Program Files\\Rhino 7\\System\\RhinoCommon.dll"
26 |
27 |
28 | ..\bin\
29 | TRACE
30 | true
31 | pdbonly
32 | x64
33 | prompt
34 | MinimumRecommendedRules.ruleset
35 | true
36 |
37 |
38 | icon.ico
39 |
40 |
41 |
42 | ..\packages\docopt.net.0.6.1.10\lib\net40\DocoptNet.dll
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 | {cff04832-fc00-4589-afd1-3e077a94c9b7}
70 | PyStubblerLib
71 |
72 |
73 |
74 |
--------------------------------------------------------------------------------
/builder/PyStubbler/icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mcneel/pythonstubs/98299771c9ff68157d657596020ed0019f2f3d94/builder/PyStubbler/icon.ico
--------------------------------------------------------------------------------
/builder/PyStubbler/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/builder/PyStubblerLib/.editorconfig:
--------------------------------------------------------------------------------
1 | # editorconfig.org
2 |
3 | # top-most EditorConfig file
4 | root = true
5 |
6 | # Default settings:
7 | # A newline ending every file
8 | # Use 4 spaces as indentation
9 | [*]
10 | insert_final_newline = true
11 | indent_style = space
12 | indent_size = 4
13 |
14 | [project.json]
15 | indent_size = 2
16 |
17 | # C# files
18 | [*.cs]
19 | # New line preferences
20 | csharp_new_line_before_open_brace = all
21 | csharp_new_line_before_else = true
22 | csharp_new_line_before_catch = true
23 | csharp_new_line_before_finally = true
24 | csharp_new_line_before_members_in_object_initializers = true
25 | csharp_new_line_before_members_in_anonymous_types = true
26 | csharp_new_line_within_query_expression_clauses = true
27 |
28 | # Indentation preferences
29 | csharp_indent_block_contents = true
30 | csharp_indent_braces = false
31 | csharp_indent_case_contents = true
32 | csharp_indent_switch_labels = true
33 | csharp_indent_labels = flush_left
34 |
35 | # avoid this. unless absolutely necessary
36 | dotnet_style_qualification_for_field = false:suggestion
37 | dotnet_style_qualification_for_property = false:suggestion
38 | dotnet_style_qualification_for_method = false:suggestion
39 | dotnet_style_qualification_for_event = false:suggestion
40 |
41 | # only use var when it's obvious what the variable type is
42 | csharp_style_var_for_built_in_types = false:none
43 | csharp_style_var_when_type_is_apparent = false:none
44 | csharp_style_var_elsewhere = false:suggestion
45 |
46 | # use language keywords instead of BCL types
47 | dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
48 | dotnet_style_predefined_type_for_member_access = true:suggestion
49 |
50 | # name all constant fields using PascalCase
51 | dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
52 | dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
53 | dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
54 |
55 | dotnet_naming_symbols.constant_fields.applicable_kinds = field
56 | dotnet_naming_symbols.constant_fields.required_modifiers = const
57 |
58 | dotnet_naming_style.pascal_case_style.capitalization = pascal_case
59 |
60 | # static fields should have s_ prefix
61 | dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion
62 | dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields
63 | dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
64 |
65 | dotnet_naming_symbols.static_fields.applicable_kinds = field
66 | dotnet_naming_symbols.static_fields.required_modifiers = static
67 |
68 | dotnet_naming_style.static_prefix_style.required_prefix = s_
69 | dotnet_naming_style.static_prefix_style.capitalization = camel_case
70 |
71 | # internal and private fields should be _camelCase
72 | dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
73 | dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
74 | dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
75 |
76 | dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
77 | dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
78 |
79 | dotnet_naming_style.camel_case_underscore_style.required_prefix = _
80 | dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
81 |
82 | # Code style defaults
83 | dotnet_sort_system_directives_first = true
84 | csharp_preserve_single_line_blocks = true
85 | csharp_preserve_single_line_statements = false
86 |
87 | # Expression-level preferences
88 | dotnet_style_object_initializer = true:suggestion
89 | dotnet_style_collection_initializer = true:suggestion
90 | dotnet_style_explicit_tuple_names = true:suggestion
91 | dotnet_style_coalesce_expression = true:suggestion
92 | dotnet_style_null_propagation = true:suggestion
93 |
94 | # Expression-bodied members
95 | csharp_style_expression_bodied_methods = false:none
96 | csharp_style_expression_bodied_constructors = false:none
97 | csharp_style_expression_bodied_operators = false:none
98 | csharp_style_expression_bodied_properties = true:none
99 | csharp_style_expression_bodied_indexers = true:none
100 | csharp_style_expression_bodied_accessors = true:none
101 |
102 | # Pattern matching
103 | csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
104 | csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
105 | csharp_style_inlined_variable_declaration = true:suggestion
106 |
107 | # Null checking preferences
108 | csharp_style_throw_expression = true:suggestion
109 | csharp_style_conditional_delegate_call = true:suggestion
110 |
111 | # Space preferences
112 | csharp_space_after_cast = false
113 | csharp_space_after_colon_in_inheritance_clause = true
114 | csharp_space_after_comma = true
115 | csharp_space_after_dot = false
116 | csharp_space_after_keywords_in_control_flow_statements = true
117 | csharp_space_after_semicolon_in_for_statement = true
118 | csharp_space_around_binary_operators = before_and_after
119 | csharp_space_around_declaration_statements = do_not_ignore
120 | csharp_space_before_colon_in_inheritance_clause = true
121 | csharp_space_before_comma = false
122 | csharp_space_before_dot = false
123 | csharp_space_before_open_square_brackets = false
124 | csharp_space_before_semicolon_in_for_statement = false
125 | csharp_space_between_empty_square_brackets = false
126 | csharp_space_between_method_call_empty_parameter_list_parentheses = false
127 | csharp_space_between_method_call_name_and_opening_parenthesis = false
128 | csharp_space_between_method_call_parameter_list_parentheses = false
129 | csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
130 | csharp_space_between_method_declaration_name_and_open_parenthesis = false
131 | csharp_space_between_method_declaration_parameter_list_parentheses = false
132 | csharp_space_between_parentheses = false
133 | csharp_space_between_square_brackets = false
134 |
135 | # C++ Files
136 | [*.{cpp,h,in}]
137 | curly_bracket_next_line = true
138 | indent_brace_style = Allman
139 |
140 | # Xml project files
141 | [*.{csproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
142 | indent_size = 2
143 |
144 | # Xml build files
145 | [*.builds]
146 | indent_size = 2
147 |
148 | # Xml files
149 | [*.{xml,stylecop,resx,ruleset}]
150 | indent_size = 2
151 |
152 | # Xml config files
153 | [*.{props,targets,config,nuspec}]
154 | indent_size = 2
155 |
156 | # Shell scripts
157 | [*.sh]
158 | end_of_line = lf
159 | [*.{cmd, bat}]
160 | end_of_line = crlf
161 |
--------------------------------------------------------------------------------
/builder/PyStubblerLib/BuildConfig.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace PyStubblerLib
4 | {
5 | public class BuildConfig
6 | {
7 | public string Prefix { get; set; } = string.Empty;
8 | public string Postfix { get; set; } = string.Empty;
9 | public bool DestPathIsRoot { get; set; } = false;
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/builder/PyStubblerLib/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("PyStubblerLib")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("PyStubblerLib")]
13 | [assembly: AssemblyCopyright("Copyright © 2019")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("cff04832-fc00-4589-afd1-3e077a94c9b7")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/builder/PyStubblerLib/PyStubblerLib.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {CFF04832-FC00-4589-AFD1-3E077A94C9B7}
8 | Library
9 | Properties
10 | PyStubblerLib
11 | PyStubblerLib
12 | v4.7.1
13 | 512
14 | true
15 |
16 |
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/builder/PyStubblerNET.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28307.271
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PyStubbler", "PyStubbler\PyStubbler.csproj", "{31381EC9-A531-4802-B6A5-3341D85890CE}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PyStubblerLib", "PyStubblerLib\PyStubblerLib.csproj", "{CFF04832-FC00-4589-AFD1-3E077A94C9B7}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Any CPU = Debug|Any CPU
13 | Debug|x64 = Debug|x64
14 | Release|Any CPU = Release|Any CPU
15 | Release|x64 = Release|x64
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {31381EC9-A531-4802-B6A5-3341D85890CE}.Debug|Any CPU.ActiveCfg = Debug|x64
19 | {31381EC9-A531-4802-B6A5-3341D85890CE}.Debug|x64.ActiveCfg = Debug|x64
20 | {31381EC9-A531-4802-B6A5-3341D85890CE}.Debug|x64.Build.0 = Debug|x64
21 | {31381EC9-A531-4802-B6A5-3341D85890CE}.Release|Any CPU.ActiveCfg = Release|x64
22 | {31381EC9-A531-4802-B6A5-3341D85890CE}.Release|x64.ActiveCfg = Release|x64
23 | {31381EC9-A531-4802-B6A5-3341D85890CE}.Release|x64.Build.0 = Release|x64
24 | {CFF04832-FC00-4589-AFD1-3E077A94C9B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25 | {CFF04832-FC00-4589-AFD1-3E077A94C9B7}.Debug|Any CPU.Build.0 = Debug|Any CPU
26 | {CFF04832-FC00-4589-AFD1-3E077A94C9B7}.Debug|x64.ActiveCfg = Debug|Any CPU
27 | {CFF04832-FC00-4589-AFD1-3E077A94C9B7}.Debug|x64.Build.0 = Debug|Any CPU
28 | {CFF04832-FC00-4589-AFD1-3E077A94C9B7}.Release|Any CPU.ActiveCfg = Release|Any CPU
29 | {CFF04832-FC00-4589-AFD1-3E077A94C9B7}.Release|Any CPU.Build.0 = Release|Any CPU
30 | {CFF04832-FC00-4589-AFD1-3E077A94C9B7}.Release|x64.ActiveCfg = Release|Any CPU
31 | {CFF04832-FC00-4589-AFD1-3E077A94C9B7}.Release|x64.Build.0 = Release|Any CPU
32 | EndGlobalSection
33 | GlobalSection(SolutionProperties) = preSolution
34 | HideSolutionNode = FALSE
35 | EndGlobalSection
36 | GlobalSection(ExtensibilityGlobals) = postSolution
37 | SolutionGuid = {68A85ADF-3F9B-47EF-950B-2D2BCEE63FD9}
38 | EndGlobalSection
39 | EndGlobal
40 |
--------------------------------------------------------------------------------
/static/gh-stub-vscode.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mcneel/pythonstubs/98299771c9ff68157d657596020ed0019f2f3d94/static/gh-stub-vscode.gif
--------------------------------------------------------------------------------
/static/rhino-stub-vscode.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mcneel/pythonstubs/98299771c9ff68157d657596020ed0019f2f3d94/static/rhino-stub-vscode.gif
--------------------------------------------------------------------------------
/stubs/Eto/Eto-stubs/IO/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class IconSize:
5 | Large = 0
6 | Small = 1
7 |
8 |
9 | class IHandler:
10 | def GetFileIcon(self, fileName: str, size: IconSize) -> Icon: ...
11 | def GetStaticIcon(self, type: StaticIconType, size: IconSize) -> Icon: ...
12 |
13 |
14 | class StaticIconType:
15 | OpenDirectory = 0
16 | CloseDirectory = 1
17 |
18 |
19 | class SystemIcons:
20 | def GetFileIcon(fileName: str, size: IconSize) -> Icon: ...
21 | def GetStaticIcon(type: StaticIconType, size: IconSize) -> Icon: ...
22 |
--------------------------------------------------------------------------------
/stubs/Eto/Eto-stubs/Threading/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class ICallback:
5 | def OnExecuted(self, widget: Thread) -> None: ...
6 |
7 |
8 | class IHandler:
9 | def Abort(self) -> None: ...
10 | def Create(self) -> None: ...
11 | def CreateCurrent(self) -> None: ...
12 | def CreateMain(self) -> None: ...
13 | @property
14 | def IsAlive(self) -> bool: ...
15 | @property
16 | def IsMain(self) -> bool: ...
17 | def Start(self) -> None: ...
18 |
19 |
20 | class Thread(Widget):
21 | def __init__(self, action: Action): ...
22 | def Abort(self) -> None: ...
23 | @property
24 | def CurrentThread() -> Thread: ...
25 | @property
26 | def IsAlive(self) -> bool: ...
27 | @property
28 | def IsMain(self) -> bool: ...
29 | @property
30 | def IsMainThread() -> bool: ...
31 | @property
32 | def MainThread() -> Thread: ...
33 | def Start(self) -> None: ...
34 |
--------------------------------------------------------------------------------
/stubs/Eto/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Robert McNeel & Associates
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/stubs/Eto/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include Eto-stubs/*.pyi
2 |
3 |
--------------------------------------------------------------------------------
/stubs/Eto/README.md:
--------------------------------------------------------------------------------
1 | # Eto-stubs
2 | stubs package for Eto
--------------------------------------------------------------------------------
/stubs/Eto/setup.py:
--------------------------------------------------------------------------------
1 | import os
2 | import setuptools
3 |
4 | long_description = '''
5 | # Eto-stubs
6 | Stubs for Eto
7 | '''
8 |
9 |
10 | def find_stubs(package):
11 | stubs = []
12 | for root, dirs, files in os.walk(package):
13 | for f in files:
14 | stubs.append(os.path.relpath(os.path.join(root, f), package))
15 | return {package: stubs}
16 |
17 |
18 | setuptools.setup(
19 | name="Eto-stubs",
20 | version="2.5.0",
21 | package_data=find_stubs("Eto-stubs"),
22 | packages=['Eto-stubs'],
23 | author="Robert McNeel & Associates",
24 | author_email="steve@mcneel.com",
25 | description="Stubs for Eto",
26 | long_description=long_description,
27 | long_description_content_type="text/markdown",
28 | url="https://github.com/mcneel/pythonstubs",
29 | classifiers=[
30 | "Development Status :: 5 - Production/Stable",
31 | "Intended Audience :: Developers",
32 | "License :: OSI Approved :: MIT License",
33 | "Programming Language :: Python"
34 | ],
35 | )
36 |
--------------------------------------------------------------------------------
/stubs/GH_IO/GH_IO-stubs/UserInterface/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_ArchiveMessageViewer:
5 | def __init__(self): ...
6 | def SetArchive(self, nArchive: GH_Archive) -> None: ...
7 |
8 |
9 | class GH_DeveloperDetails:
10 | @property
11 | def DefaultDeveloperContact() -> str: ...
12 | @property
13 | def DeveloperContact() -> str: ...
14 | @DeveloperContact.setter
15 | def DeveloperContact(value: str) -> None: ...
16 |
--------------------------------------------------------------------------------
/stubs/GH_IO/GH_IO-stubs/__init__.pyi:
--------------------------------------------------------------------------------
1 | __all__ = ['Serialization','Types','UserInterface']
2 | from typing import Tuple, Set, Iterable, List, overload
3 |
4 |
5 | class Branch:
6 | Unset = 0
7 | Developer = 1
8 | Trunk = 2
9 | ReleaseCandidate = 3
10 | Release = 4
11 |
12 |
13 | class GH_ISerializable:
14 | def Read(self, reader: GH_IReader) -> bool: ...
15 | def Write(self, writer: GH_IWriter) -> bool: ...
16 |
17 |
18 | class VersionNumber:
19 | @overload
20 | def __init__(self, version: Version): ...
21 | @overload
22 | def __init__(self, majorVersionNumber: int, minorVersionNumber: int, versionQuartetYyddd: int, versionQuartetHhmmb: int): ...
23 | @overload
24 | def __init__(self, major: int, minor: int, time: DateTime, buildBranch: Branch): ...
25 | @overload
26 | def CompareTo(self, value: VersionNumber) -> int: ...
27 | @overload
28 | def CompareTo(self, value: Object) -> int: ...
29 | @property
30 | def BuildBranch(self) -> Branch: ...
31 | @property
32 | def IsValid(self) -> bool: ...
33 | @property
34 | def Major(self) -> int: ...
35 | @property
36 | def MaxMajorVersionNumber() -> int: ...
37 | @property
38 | def MaxMinorVersionNumber() -> int: ...
39 | @property
40 | def MaxValid() -> VersionNumber: ...
41 | @property
42 | def MaxValidBuildBranch() -> Branch: ...
43 | @property
44 | def MaxValidTime() -> DateTime: ...
45 | @property
46 | def MinMajorVersionNumber() -> int: ...
47 | @property
48 | def MinMinorVersionNumber() -> int: ...
49 | @property
50 | def Minor(self) -> int: ...
51 | @property
52 | def MinValid() -> VersionNumber: ...
53 | @property
54 | def MinValidBuildBranch() -> Branch: ...
55 | @property
56 | def MinValidTime() -> DateTime: ...
57 | @property
58 | def Time(self) -> DateTime: ...
59 | @property
60 | def Unset() -> VersionNumber: ...
61 | @property
62 | def UnsetBuildBranch() -> Branch: ...
63 | @property
64 | def UnsetTime() -> DateTime: ...
65 | def ToString(self) -> str: ...
66 | def ToVersion(self) -> Version: ...
67 | @overload
68 | def TryParse(s: str) -> Tuple[bool, VersionNumber]: ...
69 | @overload
70 | def TryParse(v: Version) -> Tuple[bool, VersionNumber]: ...
71 |
--------------------------------------------------------------------------------
/stubs/GH_IO/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Robert McNeel & Associates
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/stubs/GH_IO/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include GH_IO-stubs/*.pyi
2 |
3 |
--------------------------------------------------------------------------------
/stubs/GH_IO/README.md:
--------------------------------------------------------------------------------
1 | # GH_IO-stubs
2 | stubs package for GH_IO
--------------------------------------------------------------------------------
/stubs/GH_IO/setup.py:
--------------------------------------------------------------------------------
1 | import setuptools
2 | import os
3 |
4 | long_description = '''
5 | # GH_IO-stubs
6 | Stubs for GH_IO
7 | '''
8 |
9 |
10 | def find_stubs(package):
11 | stubs = []
12 | for root, dirs, files in os.walk(package):
13 | for f in files:
14 | stubs.append(os.path.relpath(os.path.join(root, f), package))
15 | return {package: stubs}
16 |
17 |
18 | setuptools.setup(
19 | name="GH_IO-stubs",
20 | version="7.7.21140",
21 | package_data=find_stubs("GH_IO-stubs"),
22 | packages=['GH_IO-stubs'],
23 | author="Robert McNeel & Associates",
24 | author_email="steve@mcneel.com",
25 | description="Stubs for GH_IO",
26 | long_description=long_description,
27 | long_description_content_type="text/markdown",
28 | url="https://github.com/mcneel/pythonstubs",
29 | classifiers=[
30 | "Development Status :: 5 - Production/Stable",
31 | "Intended Audience :: Developers",
32 | "License :: OSI Approved :: MIT License",
33 | "Programming Language :: Python"
34 | ],
35 | )
36 |
--------------------------------------------------------------------------------
/stubs/GH_Util/GH_Util-stubs/MetaBall/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class FieldSolver:
5 | def __init__(self, object: Object, method: IntPtr): ...
6 | def BeginInvoke(self, context: GH_Context, x: float, y: float, callback: AsyncCallback, object: Object) -> IAsyncResult: ...
7 | def EndInvoke(self, result: IAsyncResult) -> float: ...
8 | def Invoke(self, context: GH_Context, x: float, y: float) -> float: ...
9 |
10 |
11 | class GH_CellInfo:
12 | @overload
13 | def __init__(self): ...
14 | @overload
15 | def __init__(self, nX: int, nY: int): ...
16 | @overload
17 | def __init__(self, nX: int, nY: int, na: float, nb: float, nc: float, nd: float): ...
18 | def DetermineMask(self, threshold: float) -> None: ...
19 | def DetermineRealBox(self, accuracy: float) -> None: ...
20 |
21 |
22 | class GH_Context:
23 | def __init__(self): ...
24 | @overload
25 | def AddParticle(self, particle_x: float, particle_y: float) -> None: ...
26 | @overload
27 | def AddParticle(self, particle_x: float, particle_y: float, particle_charge: float, particle_radius: float) -> None: ...
28 | @overload
29 | def AddParticle(self, particle_x: float, particle_y: float, particle_z: float, particle_charge: float, particle_radius: float) -> None: ...
30 | @overload
31 | def ClosestParticle(self, sample_x: float, sample_y: float) -> Tuple[int, float]: ...
32 | @overload
33 | def ClosestParticle(self, sample_x: float, sample_y: float, sample_z: float) -> Tuple[int, float]: ...
34 | @property
35 | def Accuracy(self) -> float: ...
36 | @property
37 | def Affinity(self) -> float: ...
38 | @property
39 | def ParticleCount(self) -> int: ...
40 | @property
41 | def SolverDelegate(self) -> FieldSolver: ...
42 | def InverseSquareSolver(context: GH_Context, x: float, y: float) -> float: ...
43 | def Particle(self, index: int) -> GH_Particle: ...
44 | def Potential(self, x: float, y: float) -> float: ...
45 | def RemoveParticle(self, index: int) -> None: ...
46 | @Accuracy.setter
47 | def Accuracy(self, value: float) -> None: ...
48 | @Affinity.setter
49 | def Affinity(self, value: float) -> None: ...
50 | @SolverDelegate.setter
51 | def SolverDelegate(self, value: FieldSolver) -> None: ...
52 | def SineFallOffSolver(context: GH_Context, x: float, y: float) -> float: ...
53 | @overload
54 | def SolveIsoSurfaces(self, threshold: float) -> List: ...
55 | @overload
56 | def SolveIsoSurfaces(self, threshold: float) -> Tuple[List, GH_2DSparseArray]: ...
57 |
58 |
59 | class GH_Direction:
60 | invalid = 0
61 | left = 1
62 | right = 2
63 | down = 3
64 | up = 4
65 |
66 |
67 | class GH_IsoSurface:
68 | @overload
69 | def __init__(self): ...
70 | @overload
71 | def __init__(self, initial_capacity: int): ...
72 | @property
73 | def IsClosed(self) -> bool: ...
74 | def Smooth(self) -> None: ...
75 |
76 |
77 | class GH_Mask:
78 | _0000 = 0
79 | _0001 = 1
80 | _0010 = 2
81 | _0011 = 3
82 | _0100 = 4
83 | _0101 = 5
84 | _0110 = 6
85 | _0111 = 7
86 | _1000 = 8
87 | _1001 = 9
88 | _1010 = 10
89 | _1011 = 11
90 | _1100 = 12
91 | _1101 = 13
92 | _1110 = 14
93 | _1111 = 15
94 |
95 |
96 | class GH_Particle:
97 | @overload
98 | def __init__(self): ...
99 | @overload
100 | def __init__(self, nx: float, ny: float, nz: float, nc: float, nr: float): ...
101 |
102 |
103 | class GH_Vertex:
104 | @overload
105 | def __init__(self): ...
106 | @overload
107 | def __init__(self, pt: PointF): ...
108 | @overload
109 | def __init__(self, other: GH_Vertex): ...
110 | @overload
111 | def __init__(self, vx: float, vy: float): ...
112 | def Equals(self, obj: Object) -> bool: ...
113 | def GetHashCode(self) -> int: ...
114 | def op_Equality(A: GH_Vertex, B: GH_Vertex) -> bool: ...
115 | def op_Inequality(A: GH_Vertex, B: GH_Vertex) -> bool: ...
116 |
--------------------------------------------------------------------------------
/stubs/GH_Util/GH_Util-stubs/__init__.pyi:
--------------------------------------------------------------------------------
1 | __all__ = ['MetaBall']
2 | from typing import Tuple, Set, Iterable, List, overload
3 |
4 |
5 | class BezierF:
6 | @overload
7 | def __init__(self, p0: PointF, p1: PointF, p2: PointF, p3: PointF): ...
8 | @overload
9 | def __init__(self, x0: Single, y0: Single, x1: Single, y1: Single, x2: Single, y2: Single, x3: Single, y3: Single): ...
10 | def Distance(self, point: PointF) -> Single: ...
11 | def Extremes(self) -> Tuple[Set(Single), Set(Single)]: ...
12 | @property
13 | def Bounds(self) -> RectangleF: ...
14 | @property
15 | def IsClosed(self) -> bool: ...
16 | @property
17 | def IsEmpty(self) -> bool: ...
18 | @property
19 | def P0(self) -> PointF: ...
20 | @property
21 | def P1(self) -> PointF: ...
22 | @property
23 | def P2(self) -> PointF: ...
24 | @property
25 | def P3(self) -> PointF: ...
26 | @property
27 | def T0(self) -> SizeF: ...
28 | @property
29 | def T3(self) -> SizeF: ...
30 | def PointAt(self, t: Single) -> PointF: ...
31 | def Project(self, point: PointF) -> Single: ...
32 | def Reverse(self) -> BezierF: ...
33 | def TangentAt(self, t: Single) -> SizeF: ...
34 |
35 |
36 | class BezierShape:
37 | Unknown = 0
38 | Arch = 1
39 | SingleInflection = 2
40 | DoubleInflection = 3
41 | Cusp = 4
42 | Closed = 5
43 | LoopAtStart = 6
44 | LoopAtEnd = 7
45 | LoopOnInterior = 8
46 |
47 |
48 | class GH_2DIndex:
49 | @overload
50 | def __init__(self, other: GH_2DIndex): ...
51 | @overload
52 | def __init__(self, new_i: int, new_j: int): ...
53 | def Set(self, new_i: int, new_j: int) -> None: ...
54 | def Shift(self, offset_i: int, offset_j: int) -> None: ...
55 |
56 |
57 |
58 |
59 | class GH_3DIndex:
60 | @overload
61 | def __init__(self, other: GH_3DIndex): ...
62 | @overload
63 | def __init__(self, new_i: int, new_j: int, new_k: int): ...
64 | def Set(self, new_i: int, new_j: int, new_k: int) -> None: ...
65 | def Shift(self, offset_i: int, offset_j: int, offset_k: int) -> None: ...
66 |
67 |
68 | class GH_NaturalComparer:
69 | def __init__(self): ...
70 |
71 |
72 | class GH_NaturalStringComparer:
73 | def __init__(self): ...
74 | def Compare(s1: str, s2: str) -> int: ...
75 |
76 |
77 |
--------------------------------------------------------------------------------
/stubs/GH_Util/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Robert McNeel & Associates
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/stubs/GH_Util/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include GH_Util-stubs/*.pyi
2 |
3 |
--------------------------------------------------------------------------------
/stubs/GH_Util/README.md:
--------------------------------------------------------------------------------
1 | # GH_Util-stubs
2 | stubs package for GH_Util
--------------------------------------------------------------------------------
/stubs/GH_Util/setup.py:
--------------------------------------------------------------------------------
1 | import setuptools
2 | import os
3 |
4 | long_description = '''
5 | # GH_Util-stubs
6 | Stubs for GH_Util
7 | '''
8 |
9 |
10 | def find_stubs(package):
11 | stubs = []
12 | for root, dirs, files in os.walk(package):
13 | for f in files:
14 | stubs.append(os.path.relpath(os.path.join(root, f), package))
15 | return {package: stubs}
16 |
17 |
18 | setuptools.setup(
19 | name="GH_Util-stubs",
20 | version="7.7.21140",
21 | package_data=find_stubs("GH_Util-stubs"),
22 | packages=['GH_Util-stubs'],
23 | author="Robert McNeel & Associates",
24 | author_email="steve@mcneel.com",
25 | description="Stubs for GH_Util",
26 | long_description=long_description,
27 | long_description_content_type="text/markdown",
28 | url="https://github.com/mcneel/pythonstubs",
29 | classifiers=[
30 | "Development Status :: 5 - Production/Stable",
31 | "Intended Audience :: Developers",
32 | "License :: OSI Approved :: MIT License",
33 | "Programming Language :: Python"
34 | ],
35 | )
36 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/Documentation/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_Audience:
5 | Beginner = 0
6 | Intermediate = 1
7 | Expert = 2
8 |
9 |
10 | class GH_ContentCollection:
11 | def __init__(self): ...
12 | @property
13 | def Content(self) -> List: ...
14 | @property
15 | def Count(self) -> int: ...
16 | @property
17 | def Item(self, index: int) -> IGH_Content: ...
18 | def ToString(self) -> str: ...
19 |
20 |
21 | class GH_Format:
22 | @overload
23 | def Create(content: str, style: GH_Style) -> GH_Format: ...
24 | @overload
25 | def Create(content: IGH_Content, style: GH_Style) -> GH_Format: ...
26 | @property
27 | def Content(self) -> IGH_Content: ...
28 | @property
29 | def Style(self) -> GH_Style: ...
30 | def ToString(self) -> str: ...
31 |
32 |
33 | class GH_GlossaryItem:
34 | @property
35 | def Author(self) -> IGH_Content: ...
36 | @property
37 | def Contact(self) -> IGH_Content: ...
38 | @property
39 | def Descriptions(self) -> List: ...
40 | @property
41 | def Path(self) -> str: ...
42 | @property
43 | def Pronunciation(self) -> IGH_Content: ...
44 | @property
45 | def Synonyms(self) -> ReadOnlyCollection: ...
46 | @property
47 | def Word(self) -> str: ...
48 | def ParseFile(path: str) -> GH_GlossaryItem: ...
49 |
50 |
51 | class GH_Link:
52 | @overload
53 | def CreateExternalLink(text: str, url: str) -> GH_Link: ...
54 | @overload
55 | def CreateExternalLink(text: str, url: str, tooltip: str) -> GH_Link: ...
56 | @overload
57 | def CreateGlossaryLink(text: str) -> GH_Link: ...
58 | @overload
59 | def CreateGlossaryLink(text: str, glossaryEntry: str) -> GH_Link: ...
60 | @overload
61 | def CreateSharedLink(linkId: str, target: str) -> GH_Link: ...
62 | @overload
63 | def CreateSharedLink(linkId: str, target: str, tooltip: str) -> GH_Link: ...
64 | @overload
65 | def CreateTopicLink(text: str, topicName: str) -> GH_Link: ...
66 | @overload
67 | def CreateTopicLink(text: str, topicName: str, tooltip: str) -> GH_Link: ...
68 | @property
69 | def Destination(self) -> str: ...
70 | @property
71 | def IsSharedLink(self) -> bool: ...
72 | @property
73 | def LinkId(self) -> str: ...
74 | @property
75 | def Target(self) -> GH_Target: ...
76 | @property
77 | def Text(self) -> IGH_Content: ...
78 | @property
79 | def Tooltip(self) -> str: ...
80 | def ToString(self) -> str: ...
81 |
82 |
83 | class GH_List:
84 | @overload
85 | def Create(ordered: bool) -> GH_List: ...
86 | @overload
87 | def Create(ordered: bool, items: Iterable[IGH_Content]) -> GH_List: ...
88 | @property
89 | def Items(self) -> List: ...
90 | @property
91 | def Ordered(self) -> bool: ...
92 | def ToString(self) -> str: ...
93 |
94 |
95 | class GH_Paragraph:
96 | @overload
97 | def Create(content: str) -> GH_Paragraph: ...
98 | @overload
99 | def Create(content: Set(str)) -> GH_Paragraph: ...
100 | @property
101 | def Content(self) -> IGH_Content: ...
102 | def ToString(self) -> str: ...
103 |
104 |
105 | class GH_Parser:
106 | @property
107 | def Whitespace() -> Set(Char): ...
108 | def IsChapterHeaderLine(line: str) -> bool: ...
109 | def IsCommentLine(line: str) -> bool: ...
110 | @overload
111 | def IsLinkLine(line: str) -> bool: ...
112 | @overload
113 | def IsLinkLine(line: str) -> Tuple[bool, str, str, str]: ...
114 | def IsListLine(line: str) -> bool: ...
115 | def IsParagraphHeaderLine(line: str) -> bool: ...
116 | def IsQuoteLine(line: str) -> bool: ...
117 | def StringToFragment(text: str) -> IGH_Content: ...
118 |
119 |
120 | class GH_RuntimeFile:
121 | def ContainsKey(self, key: str) -> bool: ...
122 | @property
123 | def Content(self, key: str) -> List: ...
124 | @property
125 | def Keys(self) -> List: ...
126 | @property
127 | def Path(self) -> str: ...
128 | @property
129 | def Tags() -> Iterable[str]: ...
130 | def IsTag(text: str) -> bool: ...
131 | def IsTagLine(line: str) -> Tuple[bool, str, str]: ...
132 | def ParseFile(path: str) -> GH_RuntimeFile: ...
133 |
134 |
135 | class GH_Style:
136 | #None = 0
137 | WeakEmphasis = 1
138 | StrongEmphasis = 2
139 | Monospaced = 3
140 | Boxed = 4
141 | ChapterHeader = 5
142 | ParagraphHeader = 6
143 |
144 |
145 | class GH_Target:
146 | Glossary = 0
147 | Topic = 1
148 | External = 2
149 |
150 |
151 | class GH_Text:
152 | def Create(text: str) -> GH_Text: ...
153 | @property
154 | def Text(self) -> str: ...
155 | def ToString(self) -> str: ...
156 |
157 |
158 | class GH_Topic:
159 | @property
160 | def Description(self, level: GH_Audience) -> GH_ContentCollection: ...
161 | @property
162 | def SafeDescription(self, level: GH_Audience) -> GH_ContentCollection: ...
163 | def ParseFile(path: str) -> GH_Topic: ...
164 |
165 |
166 | class IGH_Content:
167 | pass
168 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/GUI/Alignment/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_Align:
5 | #None = 0
6 | Left = 1
7 | Right = 2
8 | Top = 3
9 | Bottom = 4
10 | Vertical = 5
11 | Horizontal = 6
12 |
13 |
14 | class GH_Distribute:
15 | #None = 0
16 | Vertical = 1
17 | Horizontal = 2
18 |
19 |
20 | class GH_Solver:
21 | @overload
22 | def __init__(self): ...
23 | @overload
24 | def __init__(self, boxes: Iterable[RectangleF]): ...
25 | def AddBox(self, box: RectangleF) -> None: ...
26 | def Align_Bottom(region: RectangleF, boxes: List) -> List: ...
27 | def Align_Horizontal(region: RectangleF, boxes: List) -> List: ...
28 | def Align_Left(region: RectangleF, boxes: List) -> List: ...
29 | def Align_Right(region: RectangleF, boxes: List) -> List: ...
30 | def Align_Top(region: RectangleF, boxes: List) -> List: ...
31 | def Align_Vertical(region: RectangleF, boxes: List) -> List: ...
32 | def CreateAutoRegion(self) -> None: ...
33 | def Distribute_Horizontal(region: RectangleF, boxes: List) -> List: ...
34 | def Distribute_Vertical(region: RectangleF, boxes: List) -> List: ...
35 | @property
36 | def Region(self) -> RectangleF: ...
37 | def Inflate(self, x: Single, y: Single) -> None: ...
38 | @Region.setter
39 | def Region(self, Value: RectangleF) -> None: ...
40 | def Solve(self, align: GH_Align, distribute: GH_Distribute) -> List: ...
41 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/GUI/Canvas/TagArtists/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_TagArtist:
5 | @property
6 | def ID(self) -> Guid: ...
7 | def Paint(self, canvas: GH_Canvas, channel: GH_CanvasChannel) -> None: ...
8 |
9 |
10 | class GH_TagArtist_WirePainter(GH_TagArtist):
11 | def __init__(self, source: IGH_Param, target: IGH_Param, colour: Color, width: int): ...
12 | @property
13 | def WirePainter_ID() -> Guid: ...
14 | def Paint(self, canvas: GH_Canvas, channel: GH_CanvasChannel) -> None: ...
15 |
16 |
17 | class IGH_TagArtist:
18 | @property
19 | def ID(self) -> Guid: ...
20 | def Paint(self, canvas: GH_Canvas, channel: GH_CanvasChannel) -> None: ...
21 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/GUI/Colours/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_ColourBucket:
5 | def __init__(self): ...
6 | def Draw(self, g: Graphics) -> None: ...
7 | @property
8 | def Bucket(self) -> Rectangle: ...
9 | @property
10 | def Colour(self) -> Color: ...
11 | @property
12 | def State(self) -> GH_ColourBucketState: ...
13 | @Bucket.setter
14 | def Bucket(self, Value: Rectangle) -> None: ...
15 | @Colour.setter
16 | def Colour(self, Value: Color) -> None: ...
17 | @State.setter
18 | def State(self, Value: GH_ColourBucketState) -> None: ...
19 |
20 |
21 | class GH_ColourBucketState:
22 | Blank = 0
23 | Selected = 1
24 | Active = 2
25 |
26 |
27 | class GH_MultiColourPalette:
28 | def __init__(self): ...
29 | def ActiveBuckets(self) -> List: ...
30 | def add_SelectionChanged(self, obj: SelectionChangedEventHandler) -> None: ...
31 | def AddColour(self, nColour: Color) -> GH_ColourBucket: ...
32 | def AnyActiveBuckets(self) -> bool: ...
33 | def BlankAllBuckets(self) -> None: ...
34 | def ClearBuckets(self) -> None: ...
35 | def DesiredHeight(self) -> int: ...
36 | @property
37 | def BucketCount(self) -> int: ...
38 | @property
39 | def Buckets(self) -> List: ...
40 | @property
41 | def Colours(self) -> List: ...
42 | def LayoutBuckets(self) -> None: ...
43 | def OnSelectionChanged(self) -> None: ...
44 | def remove_SelectionChanged(self, obj: SelectionChangedEventHandler) -> None: ...
45 | def RemoveColour(self, at: int) -> None: ...
46 | def RemoveSelected(self) -> None: ...
47 |
48 |
49 | class GH_MultiColourPaletteEventArgs:
50 | def __init__(self, nBuckets: List): ...
51 | @property
52 | def ActiveBuckets(self) -> List: ...
53 | @property
54 | def BlankBuckets(self) -> List: ...
55 | @property
56 | def SelectedBuckets(self) -> List: ...
57 |
58 |
59 | class GH_MultiColourPicker:
60 | def __init__(self): ...
61 | def GetColours(self) -> List: ...
62 | def RegisterColours(self, c_list: List) -> None: ...
63 |
64 |
65 | class SelectionChangedEventHandler:
66 | def __init__(self, TargetObject: Object, TargetMethod: IntPtr): ...
67 | def BeginInvoke(self, sender: GH_MultiColourPalette, e: GH_MultiColourPaletteEventArgs, DelegateCallback: AsyncCallback, DelegateAsyncState: Object) -> IAsyncResult: ...
68 | def EndInvoke(self, DelegateAsyncResult: IAsyncResult) -> None: ...
69 | def Invoke(self, sender: GH_MultiColourPalette, e: GH_MultiColourPaletteEventArgs) -> None: ...
70 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/GUI/Equations/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_EquationFragment:
5 | @property
6 | def Bounds(self) -> RectangleF: ...
7 | @property
8 | def Description(self) -> str: ...
9 | @property
10 | def Icon(self) -> Bitmap: ...
11 | @property
12 | def Name(self) -> str: ...
13 | @property
14 | def Pivot(self) -> PointF: ...
15 | @property
16 | def Size(self) -> SizeF: ...
17 | def Layout(self, font: Font) -> bool: ...
18 | def Position(self, location: PointF) -> bool: ...
19 | def Render(self, graphics: Graphics, font: Font, colour: Color) -> None: ...
20 | @Pivot.setter
21 | def Pivot(self, Value: PointF) -> None: ...
22 | def ToExpression(self) -> str: ...
23 |
24 |
25 | class GH_SequenceFragment(GH_EquationFragment):
26 | def __init__(self): ...
27 | @property
28 | def Description(self) -> str: ...
29 | @property
30 | def Fragments(self) -> List: ...
31 | @property
32 | def Name(self) -> str: ...
33 | def Layout(self, font: Font) -> bool: ...
34 | def Position(self, location: PointF) -> bool: ...
35 | def Render(self, graphics: Graphics, font: Font, colour: Color) -> None: ...
36 | def ToExpression(self) -> str: ...
37 |
38 |
39 | class GH_TextFragment(GH_EquationFragment):
40 | def __init__(self): ...
41 | @property
42 | def Description(self) -> str: ...
43 | @property
44 | def Name(self) -> str: ...
45 | @property
46 | def Text(self) -> str: ...
47 | def Layout(self, font: Font) -> bool: ...
48 | def Position(self, location: PointF) -> bool: ...
49 | def Render(self, graphics: Graphics, font: Font, colour: Color) -> None: ...
50 | @Text.setter
51 | def Text(self, Value: str) -> None: ...
52 | def ToExpression(self) -> str: ...
53 |
54 |
55 | class IGH_EquationFragment:
56 | @property
57 | def Bounds(self) -> RectangleF: ...
58 | @property
59 | def Description(self) -> str: ...
60 | @property
61 | def Icon(self) -> Bitmap: ...
62 | @property
63 | def Name(self) -> str: ...
64 | @property
65 | def Pivot(self) -> PointF: ...
66 | @property
67 | def Size(self) -> SizeF: ...
68 | def Layout(self, font: Font) -> bool: ...
69 | def Position(self, location: PointF) -> bool: ...
70 | def Render(self, graphics: Graphics, font: Font, colour: Color) -> None: ...
71 | @Pivot.setter
72 | def Pivot(self, Value: PointF) -> None: ...
73 | def ToExpression(self) -> str: ...
74 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/GUI/Gradient/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_Gradient:
5 | @overload
6 | def __init__(self): ...
7 | @overload
8 | def __init__(self, other: GH_Gradient): ...
9 | @overload
10 | def __init__(self, parameters: Iterable[float], colours: Iterable[Color]): ...
11 | def add_GradientChanged(self, obj: GradientChangedEventHandler) -> None: ...
12 | def add_SelectionChanged(self, obj: SelectionChangedEventHandler) -> None: ...
13 | @overload
14 | def AddGrip(self, grip: GH_Grip) -> None: ...
15 | @overload
16 | def AddGrip(self, t: float) -> GH_Grip: ...
17 | @overload
18 | def AddGrip(self, t: float, c: Color) -> GH_Grip: ...
19 | @overload
20 | def AddGrip(self, t: float, c0: Color, c1: Color) -> GH_Grip: ...
21 | def ColourAt(self, t: float) -> Color: ...
22 | def DeleteGripRegion(destination: RectangleF) -> RectangleF: ...
23 | def DisplayGradientEditor(self) -> None: ...
24 | def DisplayGripColourPicker(self, grip: GH_Grip) -> None: ...
25 | def EarthlyBrown() -> GH_Gradient: ...
26 | def Forest() -> GH_Gradient: ...
27 | @property
28 | def Grip(self, index: int) -> GH_Grip: ...
29 | @property
30 | def GripCount(self) -> int: ...
31 | @property
32 | def Linear(self) -> bool: ...
33 | @property
34 | def Locked(self) -> bool: ...
35 | @property
36 | def SelectedGrip(self) -> GH_Grip: ...
37 | def GreyScale() -> GH_Gradient: ...
38 | def Heat() -> GH_Gradient: ...
39 | def MouseDown(self, dest: RectangleF, pt: PointF) -> bool: ...
40 | def MouseDragAbort(self) -> bool: ...
41 | def MouseMove(self, dest: RectangleF, pt: PointF) -> bool: ...
42 | def MouseUp(self, dest: RectangleF, pt: PointF, deselect: bool) -> bool: ...
43 | @overload
44 | def NearestGrip(self, t: float) -> int: ...
45 | @overload
46 | def NearestGrip(self, t: float, side: GH_GripSide) -> int: ...
47 | @overload
48 | def NearestGrip(self, dest: RectangleF, pt: PointF, maxRadius: float) -> int: ...
49 | def NewGripRegion(destination: RectangleF) -> RectangleF: ...
50 | def NormalizeGrips(self) -> None: ...
51 | def OnGradientChanged(self) -> None: ...
52 | def OnGradientChangedIntermediate(self) -> None: ...
53 | def OnSelectionChanged(self) -> None: ...
54 | def Read(self, reader: GH_IReader) -> bool: ...
55 | def remove_GradientChanged(self, obj: GradientChangedEventHandler) -> None: ...
56 | def remove_SelectionChanged(self, obj: SelectionChangedEventHandler) -> None: ...
57 | @overload
58 | def RemoveGrip(self, index: int) -> None: ...
59 | @overload
60 | def RemoveGrip(self, grip: GH_Grip) -> None: ...
61 | def Render_Background(self, g: Graphics, dest: RectangleF) -> None: ...
62 | def Render_Gradient(self, g: Graphics, dest: RectangleF) -> None: ...
63 | def Render_Grips(self, g: Graphics, dest: RectangleF) -> None: ...
64 | @Grip.setter
65 | def Grip(self, index: int, Value: GH_Grip) -> None: ...
66 | @Linear.setter
67 | def Linear(self, Value: bool) -> None: ...
68 | @Locked.setter
69 | def Locked(self, Value: bool) -> None: ...
70 | @SelectedGrip.setter
71 | def SelectedGrip(self, Value: GH_Grip) -> None: ...
72 | def SoGay() -> GH_Gradient: ...
73 | def Spectrum() -> GH_Gradient: ...
74 | def Traffic() -> GH_Gradient: ...
75 | def Write(self, writer: GH_IWriter) -> bool: ...
76 | def Zebra() -> GH_Gradient: ...
77 |
78 |
79 | class GH_GradientChangedEventArgs:
80 | def __init__(self, gradient: GH_Gradient, intermediate: bool): ...
81 | @property
82 | def Gradient(self) -> GH_Gradient: ...
83 | @property
84 | def Intermediate(self) -> bool: ...
85 |
86 |
87 | class GH_Grip:
88 | @overload
89 | def __init__(self): ...
90 | @overload
91 | def __init__(self, other: GH_Grip): ...
92 | @overload
93 | def __init__(self, parameter: float, colour: Color): ...
94 | @overload
95 | def __init__(self, parameter: float, colourLeft: Color, colourRight: Color): ...
96 | def Blend(A: Color, B: Color, t: float) -> Color: ...
97 | def CompareTo(self, other: GH_Grip) -> int: ...
98 | @property
99 | def ColourLeft(self) -> Color: ...
100 | @property
101 | def ColourRight(self) -> Color: ...
102 | @property
103 | def GripId(self) -> Guid: ...
104 | @property
105 | def IsValid(self) -> bool: ...
106 | @property
107 | def Parameter(self) -> float: ...
108 | @property
109 | def Selected(self) -> bool: ...
110 | @property
111 | def Type(self) -> GH_GripType: ...
112 | def MutateId(self) -> None: ...
113 | def Read(self, reader: GH_IReader) -> bool: ...
114 | @ColourLeft.setter
115 | def ColourLeft(self, Value: Color) -> None: ...
116 | @ColourRight.setter
117 | def ColourRight(self, Value: Color) -> None: ...
118 | @Parameter.setter
119 | def Parameter(self, Value: float) -> None: ...
120 | @Selected.setter
121 | def Selected(self, Value: bool) -> None: ...
122 | def Write(self, writer: GH_IWriter) -> bool: ...
123 |
124 |
125 | class GH_GripSide:
126 | Both = 0
127 | Left = 1
128 | Right = 2
129 |
130 |
131 | class GH_GripType:
132 | Continuous = 0
133 | Discontinuous = 1
134 |
135 |
136 | class GradientChangedEventHandler:
137 | def __init__(self, TargetObject: Object, TargetMethod: IntPtr): ...
138 | def BeginInvoke(self, sender: Object, e: GH_GradientChangedEventArgs, DelegateCallback: AsyncCallback, DelegateAsyncState: Object) -> IAsyncResult: ...
139 | def EndInvoke(self, DelegateAsyncResult: IAsyncResult) -> None: ...
140 | def Invoke(self, sender: Object, e: GH_GradientChangedEventArgs) -> None: ...
141 |
142 |
143 | class SelectionChangedEventHandler:
144 | def __init__(self, TargetObject: Object, TargetMethod: IntPtr): ...
145 | def BeginInvoke(self, sender: Object, e: GH_GradientChangedEventArgs, DelegateCallback: AsyncCallback, DelegateAsyncState: Object) -> IAsyncResult: ...
146 | def EndInvoke(self, DelegateAsyncResult: IAsyncResult) -> None: ...
147 | def Invoke(self, sender: Object, e: GH_GradientChangedEventArgs) -> None: ...
148 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/GUI/IconEditor/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_IconObject:
5 | def Contains(self, pt: PointF) -> bool: ...
6 | @property
7 | def Image(self) -> Bitmap: ...
8 | @property
9 | def ObjectID(self) -> Guid: ...
10 | @property
11 | def Pivot(self) -> Point: ...
12 | @property
13 | def Size(self) -> Size: ...
14 | def Grips(self) -> List: ...
15 | def Read(self, reader: GH_IReader) -> bool: ...
16 | def RenderObject(self, G: Graphics) -> None: ...
17 | def Resize(self, newSize: Size) -> None: ...
18 | @Pivot.setter
19 | def Pivot(self, Value: Point) -> None: ...
20 | @Size.setter
21 | def Size(self, Value: Size) -> None: ...
22 | def Write(self, writer: GH_IWriter) -> bool: ...
23 |
24 |
25 | class GH_IconObject_Rectangle(GH_IconObject):
26 | def __init__(self): ...
27 | def Contains(self, pt: PointF) -> bool: ...
28 | @property
29 | def ObjectID(self) -> Guid: ...
30 | @property
31 | def Rectangle(self) -> Rectangle: ...
32 | def Read(self, reader: GH_IReader) -> bool: ...
33 | def RenderObject(self, G: Graphics) -> None: ...
34 | def Write(self, writer: GH_IWriter) -> bool: ...
35 |
36 |
37 | class IGH_IconObject:
38 | def Contains(self, pt: PointF) -> bool: ...
39 | @property
40 | def Image(self) -> Bitmap: ...
41 | @property
42 | def ObjectID(self) -> Guid: ...
43 | @property
44 | def Pivot(self) -> Point: ...
45 | @property
46 | def Size(self) -> Size: ...
47 | def Grips(self) -> List: ...
48 | def RenderObject(self, G: Graphics) -> None: ...
49 | def Resize(self, newSize: Size) -> None: ...
50 | @Pivot.setter
51 | def Pivot(self, Value: Point) -> None: ...
52 | @Size.setter
53 | def Size(self, Value: Size) -> None: ...
54 |
55 |
56 | class IGH_IconObjectGrip:
57 | @property
58 | def Index(self) -> int: ...
59 | @property
60 | def Owner(self) -> IGH_IconObject: ...
61 | @property
62 | def Position(self) -> PointF: ...
63 | @property
64 | def Selected(self) -> bool: ...
65 | @property
66 | def Tag(self) -> Object: ...
67 | def RenderGrip(self, G: Graphics) -> None: ...
68 | @Position.setter
69 | def Position(self, Value: PointF) -> None: ...
70 | @Selected.setter
71 | def Selected(self, Value: bool) -> None: ...
72 | @Tag.setter
73 | def Tag(self, Value: Object) -> None: ...
74 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/GUI/Layout/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_GenericLayout:
5 | def Horizontal_ByIndex(area: Rectangle, stack: List, expand: bool) -> List: ...
6 | @overload
7 | def Horizontal_ByPosition(area: Rectangle, stack: List, expand: bool) -> List: ...
8 | @overload
9 | def Horizontal_ByPosition(area: Rectangle, stack: List, expand: bool, radical: int) -> List: ...
10 | def Vertical_ByIndex(area: Rectangle, stack: List, expand: bool) -> List: ...
11 | @overload
12 | def Vertical_ByPosition(area: Rectangle, stack: List, expand: bool) -> List: ...
13 | @overload
14 | def Vertical_ByPosition(area: Rectangle, stack: List, expand: bool, radical: int) -> List: ...
15 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/GUI/MRU/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class FileSelectedEventHandler:
5 | def __init__(self, TargetObject: Object, TargetMethod: IntPtr): ...
6 | def BeginInvoke(self, sender: GH_TimeLine, path: str, DelegateCallback: AsyncCallback, DelegateAsyncState: Object) -> IAsyncResult: ...
7 | def EndInvoke(self, DelegateAsyncResult: IAsyncResult) -> None: ...
8 | def Invoke(self, sender: GH_TimeLine, path: str) -> None: ...
9 |
10 |
11 | class GH_FileEntry:
12 | def __init__(self, owner: GH_TimeLine, path: str, date: DateTime, name: str): ...
13 | def CompareTo(self, other: GH_FileEntry) -> int: ...
14 | @property
15 | def Bounds(self) -> Rectangle: ...
16 | @property
17 | def FileDate(self) -> DateTime: ...
18 | @property
19 | def FileName(self) -> str: ...
20 | @property
21 | def FilePath(self) -> str: ...
22 | @property
23 | def Icon(self) -> Bitmap: ...
24 | @property
25 | def ResolvedState(self) -> GH_FileResolveState: ...
26 | def LayoutWidth(self, width: int) -> None: ...
27 | def PaintEntry(self, graphics: Graphics) -> None: ...
28 | def ResolveFileState(self) -> None: ...
29 | @Bounds.setter
30 | def Bounds(self, Value: Rectangle) -> None: ...
31 |
32 |
33 | class GH_FileResolveState:
34 | Unresolved = 0
35 | Invalid = 1
36 | Valid = 2
37 |
38 |
39 | class GH_MRU_Entry:
40 | def __init__(self, new_date: DateTime, new_path: str): ...
41 | def CompareTo(self, other: GH_MRU_Entry) -> int: ...
42 | @property
43 | def FileDate(self) -> DateTime: ...
44 | @property
45 | def FileName(self) -> str: ...
46 | @property
47 | def FilePath(self) -> str: ...
48 | @FileDate.setter
49 | def FileDate(self, Value: DateTime) -> None: ...
50 | @FileName.setter
51 | def FileName(self, Value: str) -> None: ...
52 | @FilePath.setter
53 | def FilePath(self, Value: str) -> None: ...
54 |
55 |
56 | class GH_MRU_Server:
57 | def __init__(self): ...
58 | def add_MRURecordCountChanged(obj: MRURecordCountChangedEventHandler) -> None: ...
59 | def add_VisibleRecordCountChanged(obj: VisibleRecordCountChangedEventHandler) -> None: ...
60 | def AppendRecentFileRecord(self, new_date: DateTime, new_path: str) -> None: ...
61 | def Clear(self) -> None: ...
62 | def ClearMissingRecords(self) -> None: ...
63 | @property
64 | def RecordCount(self) -> int: ...
65 | @property
66 | def Records(self) -> List: ...
67 | @property
68 | def VisibleRecords() -> int: ...
69 | def ReadList(self) -> None: ...
70 | def remove_MRURecordCountChanged(obj: MRURecordCountChangedEventHandler) -> None: ...
71 | def remove_VisibleRecordCountChanged(obj: VisibleRecordCountChangedEventHandler) -> None: ...
72 | @VisibleRecords.setter
73 | def VisibleRecords(Value: int) -> None: ...
74 | def WriteList(self) -> None: ...
75 |
76 |
77 | class GH_TimeLine(GH_DoubleBufferedPanel):
78 | def __init__(self): ...
79 | def add_FileSelected(self, obj: FileSelectedEventHandler) -> None: ...
80 | @property
81 | def ActiveEntry(self) -> GH_FileEntry: ...
82 | @property
83 | def Offset(self) -> int: ...
84 | def remove_FileSelected(self, obj: FileSelectedEventHandler) -> None: ...
85 | @ActiveEntry.setter
86 | def ActiveEntry(self, Value: GH_FileEntry) -> None: ...
87 | @overload
88 | def SetupTimeline(self) -> None: ...
89 | @overload
90 | def SetupTimeline(self, entries: Iterable[GH_MRU_Entry]) -> None: ...
91 |
92 |
93 | class GH_TimeSpan:
94 | def __init__(self, owner: GH_TimeLine): ...
95 | def ContainsDate(self, d: DateTime) -> bool: ...
96 | @property
97 | def Bounds(self) -> Rectangle: ...
98 | @property
99 | def Entries(self) -> List: ...
100 | @property
101 | def SpanEnd(self) -> DateTime: ...
102 | @property
103 | def SpanStart(self) -> DateTime: ...
104 | @property
105 | def SpanText(self) -> str: ...
106 | def Layout(self, y: int, width: int) -> None: ...
107 | def LayoutWidth(self, width: int) -> None: ...
108 | def PaintSpan(self, graphics: Graphics) -> None: ...
109 | @Bounds.setter
110 | def Bounds(self, Value: Rectangle) -> None: ...
111 | @SpanEnd.setter
112 | def SpanEnd(self, Value: DateTime) -> None: ...
113 | @SpanStart.setter
114 | def SpanStart(self, Value: DateTime) -> None: ...
115 | @SpanText.setter
116 | def SpanText(self, Value: str) -> None: ...
117 |
118 |
119 | class MRURecordCountChangedEventHandler:
120 | def __init__(self, TargetObject: Object, TargetMethod: IntPtr): ...
121 | def BeginInvoke(self, server: GH_MRU_Server, count: int, DelegateCallback: AsyncCallback, DelegateAsyncState: Object) -> IAsyncResult: ...
122 | def EndInvoke(self, DelegateAsyncResult: IAsyncResult) -> None: ...
123 | def Invoke(self, server: GH_MRU_Server, count: int) -> None: ...
124 |
125 |
126 | class VisibleRecordCountChangedEventHandler:
127 | def __init__(self, TargetObject: Object, TargetMethod: IntPtr): ...
128 | def BeginInvoke(self, newCount: int, DelegateCallback: AsyncCallback, DelegateAsyncState: Object) -> IAsyncResult: ...
129 | def EndInvoke(self, DelegateAsyncResult: IAsyncResult) -> None: ...
130 | def Invoke(self, newCount: int) -> None: ...
131 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/GUI/Script/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class CompileCodeRequestEventHandler:
5 | def __init__(self, TargetObject: Object, TargetMethod: IntPtr): ...
6 | def BeginInvoke(self, sender: GH_ScriptEditor, DelegateCallback: AsyncCallback, DelegateAsyncState: Object) -> IAsyncResult: ...
7 | def EndInvoke(self, DelegateAsyncResult: IAsyncResult) -> None: ...
8 | def Invoke(self, sender: GH_ScriptEditor) -> None: ...
9 |
10 |
11 | class GH_AssemblyBrowser:
12 | def __init__(self): ...
13 | def AddAssemblies(self, paths: Iterable[str]) -> None: ...
14 | def AddAssembly(self, path: str) -> None: ...
15 | def AssignExtraAssemblies(self, tabName: str, assemblies: Iterable[str]) -> None: ...
16 | @property
17 | def Assemblies(self) -> ReadOnlyCollection: ...
18 | @property
19 | def AssembliesChanged(self) -> bool: ...
20 | def UpdateUI(self) -> None: ...
21 |
22 |
23 | class GH_BeforeAfterSolveInstanceSnippetButton(GH_ScriptEditorButton):
24 | def __init__(self): ...
25 | def FormHandleCreated(self, window: GH_ScriptEditor) -> None: ...
26 | def FormHandleDestroyed(self, window: GH_ScriptEditor) -> None: ...
27 | @property
28 | def Icon(self) -> Bitmap: ...
29 | def PopulateTooltip(self, sender: Object, e: GH_TooltipDisplayEventArgs) -> None: ...
30 | def RespondToMouseDown(self, window: GH_ScriptEditor, e: MouseEventArgs) -> None: ...
31 |
32 |
33 | class GH_CodeBlock:
34 | @overload
35 | def __init__(self): ...
36 | @overload
37 | def __init__(self, line: str, readonly: bool): ...
38 | @overload
39 | def __init__(self, lines: Iterable[str], readonly: bool): ...
40 | def AddLine(self, line: str) -> None: ...
41 | def AddLines(self, lines: Iterable[str]) -> None: ...
42 | @property
43 | def Lines(self) -> Iterable[str]: ...
44 | @property
45 | def ReadOnly(self) -> bool: ...
46 | @ReadOnly.setter
47 | def ReadOnly(self, AutoPropertyValue: bool) -> None: ...
48 | def ToString(self) -> str: ...
49 |
50 |
51 | class GH_CodeBlocks:
52 | def __init__(self): ...
53 | @overload
54 | def Add(self, line: str, readonly: bool) -> None: ...
55 | @overload
56 | def Add(self, lines: Iterable[str], readonly: bool) -> None: ...
57 | def GetAllLines(self, lines: Set(str), readonly: Set(bool)) -> Tuple[Set(str), Set(bool)]: ...
58 | def GetMutableCodeBlock(self, index: int) -> GH_CodeBlock: ...
59 | def MergeConsecutiveBlocks(self) -> int: ...
60 | def StringSplit(delim: str, stream: str) -> List: ...
61 |
62 |
63 | class GH_CustomReference:
64 | @overload
65 | def __init__(self): ...
66 | @overload
67 | def __init__(self, path: str, assembly: Assembly): ...
68 | @property
69 | def Assembly(self) -> Assembly: ...
70 | @property
71 | def Path(self) -> str: ...
72 | @Assembly.setter
73 | def Assembly(self, Value: Assembly) -> None: ...
74 | @Path.setter
75 | def Path(self, Value: str) -> None: ...
76 |
77 |
78 | class GH_FontPickButton(GH_ScriptEditorButton):
79 | def __init__(self): ...
80 | def FormHandleCreated(self, window: GH_ScriptEditor) -> None: ...
81 | def FormHandleDestroyed(self, window: GH_ScriptEditor) -> None: ...
82 | @property
83 | def Icon(self) -> Bitmap: ...
84 | def PopulateTooltip(self, sender: Object, e: GH_TooltipDisplayEventArgs) -> None: ...
85 | def RespondToMouseDown(self, window: GH_ScriptEditor, e: MouseEventArgs) -> None: ...
86 |
87 |
88 | class GH_HistoricAssembly:
89 | def __init__(self): ...
90 | def CompareTo(self, other: GH_HistoricAssembly) -> int: ...
91 |
92 |
93 | class GH_PreviewSnippetButton(GH_ScriptEditorButton):
94 | def __init__(self): ...
95 | def FormHandleCreated(self, window: GH_ScriptEditor) -> None: ...
96 | def FormHandleDestroyed(self, window: GH_ScriptEditor) -> None: ...
97 | @property
98 | def Icon(self) -> Bitmap: ...
99 | def PopulateTooltip(self, sender: Object, e: GH_TooltipDisplayEventArgs) -> None: ...
100 | def RespondToMouseDown(self, window: GH_ScriptEditor, e: MouseEventArgs) -> None: ...
101 |
102 |
103 | class GH_ScriptEditor:
104 | @overload
105 | def __init__(self, language: GH_ScriptLanguage): ...
106 | @overload
107 | def __init__(self, language: GH_ScriptLanguage, owner: IGH_DocumentObject): ...
108 | def add_CompileCodeRequest(self, obj: CompileCodeRequestEventHandler) -> None: ...
109 | def add_SourceCodeChanged(self, obj: SourceCodeChangedEventHandler) -> None: ...
110 | def AddButton(self, button: GH_ScriptEditorButton) -> None: ...
111 | def CacheCurrentScript(self) -> bool: ...
112 | def CodeEditor_TextChanged(self) -> None: ...
113 | def CompileTimerTick(self, sender: Object, args: EventArgs) -> None: ...
114 | def DefaultAssemblies() -> List: ...
115 | def DefaultAssemblyLocations() -> List: ...
116 | def FindScriptEditor(owner: IGH_DocumentObject) -> GH_ScriptEditor: ...
117 | def FocusOnSource(self) -> None: ...
118 | @property
119 | def AutoSolveEnabled() -> bool: ...
120 | @property
121 | def Cache_AppDataDirectory() -> str: ...
122 | @property
123 | def CurrentPosition(self) -> Point: ...
124 | @property
125 | def Document(self) -> ITextSource: ...
126 | @property
127 | def Language(self) -> GH_ScriptLanguage: ...
128 | def GetAllCacheFiles() -> List: ...
129 | def GetSourceCode(self) -> GH_CodeBlocks: ...
130 | def RegisterAssemblies(self, customReferences: List) -> None: ...
131 | def remove_CompileCodeRequest(self, obj: CompileCodeRequestEventHandler) -> None: ...
132 | def remove_SourceCodeChanged(self, obj: SourceCodeChangedEventHandler) -> None: ...
133 | @AutoSolveEnabled.setter
134 | def AutoSolveEnabled(AutoPropertyValue: bool) -> None: ...
135 | def SetCurrentPosition(self, position: Point) -> None: ...
136 | def SetSourceCode(self, code: GH_CodeBlocks) -> None: ...
137 |
138 |
139 | class GH_ScriptEditorButton:
140 | def FormHandleCreated(self, window: GH_ScriptEditor) -> None: ...
141 | def FormHandleDestroyed(self, window: GH_ScriptEditor) -> None: ...
142 | @property
143 | def Bounds(self) -> Rectangle: ...
144 | @property
145 | def Highlight(self) -> bool: ...
146 | @property
147 | def HighlightOnHover(self) -> bool: ...
148 | @property
149 | def Icon(self) -> Bitmap: ...
150 | def PopulateTooltip(self, sender: Object, e: GH_TooltipDisplayEventArgs) -> None: ...
151 | def RespondToMouseDown(self, window: GH_ScriptEditor, e: MouseEventArgs) -> None: ...
152 | @Bounds.setter
153 | def Bounds(self, AutoPropertyValue: Rectangle) -> None: ...
154 |
155 |
156 | class GH_ScriptLanguage:
157 | #None = 0
158 | VB = 1
159 | CS = 2
160 |
161 |
162 | class GH_ShrinkEditorButton(GH_ScriptEditorButton):
163 | def __init__(self): ...
164 | def FormHandleCreated(self, window: GH_ScriptEditor) -> None: ...
165 | def FormHandleDestroyed(self, window: GH_ScriptEditor) -> None: ...
166 | @property
167 | def Frame(self) -> Rectangle: ...
168 | @property
169 | def Highlight(self) -> bool: ...
170 | @property
171 | def HighlightOnHover(self) -> bool: ...
172 | @property
173 | def Icon(self) -> Bitmap: ...
174 | @property
175 | def Shrink(self) -> bool: ...
176 | @property
177 | def Shrunk(self) -> bool: ...
178 | def PopulateTooltip(self, sender: Object, e: GH_TooltipDisplayEventArgs) -> None: ...
179 | def RespondToMouseDown(self, window: GH_ScriptEditor, e: MouseEventArgs) -> None: ...
180 | @Frame.setter
181 | def Frame(self, AutoPropertyValue: Rectangle) -> None: ...
182 | @Shrink.setter
183 | def Shrink(self, AutoPropertyValue: bool) -> None: ...
184 | @Shrunk.setter
185 | def Shrunk(self, AutoPropertyValue: bool) -> None: ...
186 |
187 |
188 | class SourceCodeChangedEventHandler:
189 | def __init__(self, TargetObject: Object, TargetMethod: IntPtr): ...
190 | def BeginInvoke(self, sender: GH_ScriptEditor, DelegateCallback: AsyncCallback, DelegateAsyncState: Object) -> IAsyncResult: ...
191 | def EndInvoke(self, DelegateAsyncResult: IAsyncResult) -> None: ...
192 | def Invoke(self, sender: GH_ScriptEditor) -> None: ...
193 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/GUI/SettingsControls/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_AlignWidgetFrontEnd:
5 | def __init__(self): ...
6 |
7 |
8 | class GH_AuthorSettings_FrontEnd:
9 | def __init__(self): ...
10 |
11 |
12 | class GH_AutoSaveSettingsFrontEnd:
13 | def __init__(self): ...
14 |
15 |
16 | class GH_CanvasOverlaySettingsFrontEnd:
17 | def __init__(self): ...
18 |
19 |
20 | class GH_CanvasSettings_FrontEnd:
21 | def __init__(self): ...
22 |
23 |
24 | class GH_CompassWidgetFrontEnd:
25 | def __init__(self): ...
26 |
27 |
28 | class GH_DefaultPreviewColourSettingsFrontEnd:
29 | def __init__(self): ...
30 |
31 |
32 | class GH_DocumentPreviewColourSettingsFrontEnd:
33 | def __init__(self): ...
34 |
35 |
36 | class GH_FontFamilySettingsFrontEnd:
37 | def __init__(self): ...
38 | def RepresentsConsoleFamily(self) -> None: ...
39 | def RepresentsScriptFamily(self) -> None: ...
40 | def RepresentsStandardFamily(self) -> None: ...
41 |
42 |
43 | class GH_GenericCapsulePaletteSettings:
44 | def __init__(self): ...
45 | @property
46 | def Palette(self) -> GH_PaletteStyle: ...
47 | @Palette.setter
48 | def Palette(self, Value: GH_PaletteStyle) -> None: ...
49 |
50 |
51 | class GH_GHALoadingOptionsFrontEnd(GH_DoubleBufferedPanel):
52 | def __init__(self): ...
53 |
54 |
55 | class GH_MarkovWidgetSettingFrontEnd:
56 | def __init__(self): ...
57 |
58 |
59 | class GH_MenuShortcutFrontEnd:
60 | def __init__(self): ...
61 |
62 |
63 | class GH_MessageWidgetFrontEnd:
64 | def __init__(self): ...
65 |
66 |
67 | class GH_NumberFormattingSettingsFrontEnd:
68 | def __init__(self): ...
69 |
70 |
71 | class GH_ObjectMenuSettingsFrontEnd:
72 | def __init__(self): ...
73 |
74 |
75 | class GH_PreviewSettingsFrontEnd:
76 | def __init__(self): ...
77 |
78 |
79 | class GH_ProfilerWidgetFrontEnd:
80 | def __init__(self): ...
81 |
82 |
83 | class GH_PruderySettingsFrontEnd:
84 | def __init__(self): ...
85 |
86 |
87 | class GH_RecentFilesSettingsFrontEnd:
88 | def __init__(self): ...
89 |
90 |
91 | class GH_RibbonSettingsFrontEnd:
92 | def __init__(self): ...
93 |
94 |
95 | class GH_SolverSettings_FrontEnd:
96 | def __init__(self): ...
97 |
98 |
99 | class GH_TemplateFileSettings:
100 | def __init__(self): ...
101 |
102 |
103 | class GH_TooltipSettings_FrontEnd:
104 | def __init__(self): ...
105 |
106 |
107 | class GH_ZuiZoomFrontEnd:
108 | def __init__(self): ...
109 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/GUI/Stacks/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_Interpolation:
5 | linear = 1
6 | cubic = 2
7 |
8 |
9 | class GH_Motion:
10 | @overload
11 | def __init__(self, rec_0: Rectangle, rec_1: Rectangle, duration: int): ...
12 | @overload
13 | def __init__(self, rec_0: Rectangle, rec_1: Rectangle, time_0: Int64, time_1: Int64): ...
14 | @property
15 | def CurrentBox(self) -> Rectangle: ...
16 | @property
17 | def FinalBox(self) -> Rectangle: ...
18 | @property
19 | def InitialBox(self) -> Rectangle: ...
20 | @property
21 | def InMotion(self) -> bool: ...
22 | @property
23 | def Interpolation(self) -> GH_Interpolation: ...
24 | @property
25 | def Parameter(self) -> float: ...
26 | @property
27 | def t0(self) -> Int64: ...
28 | @property
29 | def t1(self) -> Int64: ...
30 | def ResizeContainer(self, region: Rectangle, fit_horizontal: bool, fit_vertical: bool) -> None: ...
31 | @Interpolation.setter
32 | def Interpolation(self, Value: GH_Interpolation) -> None: ...
33 |
34 |
35 | class GH_Stack:
36 | @overload
37 | def __init__(self): ...
38 | @overload
39 | def __init__(self, update_interval: int): ...
40 | @overload
41 | def __init__(self, update_interval: int, animation_length: int): ...
42 | @overload
43 | def __init__(self, update_interval: int, animation_length: int, animation_interpolation: GH_Interpolation): ...
44 | @overload
45 | def AddElement(self, rec: Rectangle) -> None: ...
46 | @overload
47 | def AddElement(self, rec_0: Rectangle, rec_1: Rectangle) -> None: ...
48 | @overload
49 | def AddElement(self, rec_0: Rectangle, rec_1: Rectangle, duration_override: int) -> None: ...
50 | def Clear(self) -> None: ...
51 | def Destroy(self) -> None: ...
52 | @property
53 | def Count(self) -> int: ...
54 | @property
55 | def Duration(self) -> int: ...
56 | @property
57 | def Element_Final(self, index: int) -> Rectangle: ...
58 | @property
59 | def Element_Initial(self, index: int) -> Rectangle: ...
60 | @property
61 | def Element_Intermediate(self, index: int) -> Rectangle: ...
62 | @property
63 | def InMotion(self) -> bool: ...
64 | @property
65 | def InMotion(self, index: int) -> bool: ...
66 | @property
67 | def Interpolation(self) -> GH_Interpolation: ...
68 | @property
69 | def UpdateInterval(self) -> int: ...
70 | @overload
71 | def InsertElement(self, index: int, rec: Rectangle) -> None: ...
72 | @overload
73 | def InsertElement(self, index: int, rec_0: Rectangle, rec_1: Rectangle) -> None: ...
74 | @overload
75 | def InsertElement(self, index: int, rec_0: Rectangle, rec_1: Rectangle, duration_override: int) -> None: ...
76 | def RemoveElement(self, index: int) -> None: ...
77 | def ResizeContainer(self, region: Rectangle, fit_horizontal: bool, fit_vertical: bool) -> None: ...
78 | @Duration.setter
79 | def Duration(self, Value: int) -> None: ...
80 | @Interpolation.setter
81 | def Interpolation(self, Value: GH_Interpolation) -> None: ...
82 | @UpdateInterval.setter
83 | def UpdateInterval(self, Value: int) -> None: ...
84 | @overload
85 | def SetNewTarget(self, index: int, element: Rectangle) -> None: ...
86 | @overload
87 | def SetNewTarget(self, index: int, element: Rectangle, bAnimate: bool) -> None: ...
88 | @overload
89 | def SetOwner(self, ui_thread_owner: Control, ui_thread_update: GH_StackEventDelegate) -> None: ...
90 | @overload
91 | def SetOwner(self, ui_thread_owner: Control, ui_thread_update: GH_StackEventDelegate, ui_thread_complete: GH_StackEventDelegate) -> None: ...
92 |
93 |
94 | class GH_StackEventDelegate:
95 | def __init__(self, TargetObject: Object, TargetMethod: IntPtr): ...
96 | def BeginInvoke(self, sender: GH_Stack, DelegateCallback: AsyncCallback, DelegateAsyncState: Object) -> IAsyncResult: ...
97 | def EndInvoke(self, DelegateAsyncResult: IAsyncResult) -> None: ...
98 | def Invoke(self, sender: GH_Stack) -> None: ...
99 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/GUI/StringDisplay/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_FormattedListItem(GH_SimpleListItem):
5 | def __init__(self): ...
6 | def ComputeSize(self, layoutWidth: int) -> Size: ...
7 | @property
8 | def Font(self) -> Font: ...
9 | @property
10 | def Type(self) -> int: ...
11 | @property
12 | def Wrap(self) -> bool: ...
13 | def RenderItem(self, G: Graphics, destination: Rectangle) -> None: ...
14 | @Font.setter
15 | def Font(self, Value: Font) -> None: ...
16 | @Type.setter
17 | def Type(self, Value: int) -> None: ...
18 | @Wrap.setter
19 | def Wrap(self, Value: bool) -> None: ...
20 |
21 |
22 | class GH_SimpleListItem:
23 | def __init__(self): ...
24 | def ComputeSize(self, layoutWidth: int) -> Size: ...
25 | @property
26 | def Alignment(self) -> StringAlignment: ...
27 | @property
28 | def BoundingBox(self) -> Rectangle: ...
29 | @property
30 | def Colour(self) -> Color: ...
31 | @property
32 | def Text(self) -> str: ...
33 | def RenderItem(self, G: Graphics, destination: Rectangle) -> None: ...
34 | @Alignment.setter
35 | def Alignment(self, Value: StringAlignment) -> None: ...
36 | @BoundingBox.setter
37 | def BoundingBox(self, Value: Rectangle) -> None: ...
38 | @Colour.setter
39 | def Colour(self, Value: Color) -> None: ...
40 | @Text.setter
41 | def Text(self, Value: str) -> None: ...
42 |
43 |
44 |
45 |
46 | class IGH_ListItem:
47 | def ComputeSize(self, layoutWidth: int) -> Size: ...
48 | @property
49 | def BoundingBox(self) -> Rectangle: ...
50 | def RenderItem(self, G: Graphics, destination: Rectangle) -> None: ...
51 | @BoundingBox.setter
52 | def BoundingBox(self, Value: Rectangle) -> None: ...
53 |
54 |
55 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/GUI/Theme/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_BackgroundSettings:
5 | @property
6 | def Colour1(self) -> Color: ...
7 | @property
8 | def Colour2(self) -> Color: ...
9 | @property
10 | def Hatch(self) -> HatchStyle: ...
11 | @property
12 | def Style(self) -> GH_BackgroundStyle: ...
13 | @Colour1.setter
14 | def Colour1(self, AutoPropertyValue: Color) -> None: ...
15 | @Colour2.setter
16 | def Colour2(self, AutoPropertyValue: Color) -> None: ...
17 | @Hatch.setter
18 | def Hatch(self, AutoPropertyValue: HatchStyle) -> None: ...
19 | @Style.setter
20 | def Style(self, AutoPropertyValue: GH_BackgroundStyle) -> None: ...
21 |
22 |
23 | class GH_BackgroundStyle:
24 | Solid = 0
25 | Hatch = 1
26 | GradientLeftRight = 10
27 | GradientTopBottom = 11
28 |
29 |
30 | class GH_ObjectSettings:
31 | @property
32 | def GroupColour(self) -> Color: ...
33 | @property
34 | def PanelColour(self) -> Color: ...
35 | @property
36 | def ZuiEdgeColour(self) -> Color: ...
37 | @property
38 | def ZuiFillColour(self) -> Color: ...
39 | @GroupColour.setter
40 | def GroupColour(self, AutoPropertyValue: Color) -> None: ...
41 | @PanelColour.setter
42 | def PanelColour(self, AutoPropertyValue: Color) -> None: ...
43 | @ZuiEdgeColour.setter
44 | def ZuiEdgeColour(self, AutoPropertyValue: Color) -> None: ...
45 | @ZuiFillColour.setter
46 | def ZuiFillColour(self, AutoPropertyValue: Color) -> None: ...
47 |
48 |
49 | class GH_PageSettings:
50 | @property
51 | def DrawGrid(self) -> bool: ...
52 | @property
53 | def DrawPage(self) -> bool: ...
54 | @property
55 | def DrawShadow(self) -> bool: ...
56 | @property
57 | def EdgeColour(self) -> Color: ...
58 | @property
59 | def FillColour(self) -> Color: ...
60 | @property
61 | def GridColour(self) -> Color: ...
62 | @property
63 | def GridHeight(self) -> int: ...
64 | @property
65 | def GridPattern(self) -> Set(Single): ...
66 | @property
67 | def GridWidth(self) -> int: ...
68 | @property
69 | def ShadowColour(self) -> Color: ...
70 | @property
71 | def ShadowSize(self) -> int: ...
72 | @DrawGrid.setter
73 | def DrawGrid(self, AutoPropertyValue: bool) -> None: ...
74 | @DrawPage.setter
75 | def DrawPage(self, AutoPropertyValue: bool) -> None: ...
76 | @DrawShadow.setter
77 | def DrawShadow(self, AutoPropertyValue: bool) -> None: ...
78 | @EdgeColour.setter
79 | def EdgeColour(self, AutoPropertyValue: Color) -> None: ...
80 | @FillColour.setter
81 | def FillColour(self, AutoPropertyValue: Color) -> None: ...
82 | @GridColour.setter
83 | def GridColour(self, AutoPropertyValue: Color) -> None: ...
84 | @GridHeight.setter
85 | def GridHeight(self, AutoPropertyValue: int) -> None: ...
86 | @GridPattern.setter
87 | def GridPattern(self, AutoPropertyValue: Set(Single)) -> None: ...
88 | @GridWidth.setter
89 | def GridWidth(self, AutoPropertyValue: int) -> None: ...
90 | @ShadowColour.setter
91 | def ShadowColour(self, AutoPropertyValue: Color) -> None: ...
92 | @ShadowSize.setter
93 | def ShadowSize(self, AutoPropertyValue: int) -> None: ...
94 |
95 |
96 | class GH_PaletteSettings:
97 | @property
98 | def ErrorSelected(self) -> GH_PaletteStyle: ...
99 | @property
100 | def ErrorStandard(self) -> GH_PaletteStyle: ...
101 | @property
102 | def HiddenSelected(self) -> GH_PaletteStyle: ...
103 | @property
104 | def HiddenStandard(self) -> GH_PaletteStyle: ...
105 | @property
106 | def LockedSelected(self) -> GH_PaletteStyle: ...
107 | @property
108 | def LockedStandard(self) -> GH_PaletteStyle: ...
109 | @property
110 | def NormalSelected(self) -> GH_PaletteStyle: ...
111 | @property
112 | def NormalStandard(self) -> GH_PaletteStyle: ...
113 | @property
114 | def WarningSelected(self) -> GH_PaletteStyle: ...
115 | @property
116 | def WarningStandard(self) -> GH_PaletteStyle: ...
117 | @ErrorSelected.setter
118 | def ErrorSelected(self, AutoPropertyValue: GH_PaletteStyle) -> None: ...
119 | @ErrorStandard.setter
120 | def ErrorStandard(self, AutoPropertyValue: GH_PaletteStyle) -> None: ...
121 | @HiddenSelected.setter
122 | def HiddenSelected(self, AutoPropertyValue: GH_PaletteStyle) -> None: ...
123 | @HiddenStandard.setter
124 | def HiddenStandard(self, AutoPropertyValue: GH_PaletteStyle) -> None: ...
125 | @LockedSelected.setter
126 | def LockedSelected(self, AutoPropertyValue: GH_PaletteStyle) -> None: ...
127 | @LockedStandard.setter
128 | def LockedStandard(self, AutoPropertyValue: GH_PaletteStyle) -> None: ...
129 | @NormalSelected.setter
130 | def NormalSelected(self, AutoPropertyValue: GH_PaletteStyle) -> None: ...
131 | @NormalStandard.setter
132 | def NormalStandard(self, AutoPropertyValue: GH_PaletteStyle) -> None: ...
133 | @WarningSelected.setter
134 | def WarningSelected(self, AutoPropertyValue: GH_PaletteStyle) -> None: ...
135 | @WarningStandard.setter
136 | def WarningStandard(self, AutoPropertyValue: GH_PaletteStyle) -> None: ...
137 |
138 |
139 | class GH_Theme:
140 | @overload
141 | def __init__(self): ...
142 | @overload
143 | def __init__(self, other: GH_Theme): ...
144 | @property
145 | def BackGround(self) -> GH_BackgroundSettings: ...
146 | @property
147 | def DefaultTheme() -> GH_Theme: ...
148 | @property
149 | def Objects(self) -> GH_ObjectSettings: ...
150 | @property
151 | def Page(self) -> GH_PageSettings: ...
152 | @property
153 | def Palettes(self) -> GH_PaletteSettings: ...
154 | @property
155 | def Wires(self) -> GH_WireSettings: ...
156 | def LoadTheme(self) -> None: ...
157 | def Read(self, reader: GH_IReader) -> bool: ...
158 | def SaveTheme(self) -> None: ...
159 | def Write(self, writer: GH_IWriter) -> bool: ...
160 |
161 |
162 | class GH_WireSettings:
163 | @property
164 | def DefaultColour(self) -> Color: ...
165 | @property
166 | def EmptyColour(self) -> Color: ...
167 | @property
168 | def SelectedColour0(self) -> Color: ...
169 | @property
170 | def SelectedColour1(self) -> Color: ...
171 | @DefaultColour.setter
172 | def DefaultColour(self, AutoPropertyValue: Color) -> None: ...
173 | @EmptyColour.setter
174 | def EmptyColour(self, AutoPropertyValue: Color) -> None: ...
175 | @SelectedColour0.setter
176 | def SelectedColour0(self, AutoPropertyValue: Color) -> None: ...
177 | @SelectedColour1.setter
178 | def SelectedColour1(self, AutoPropertyValue: Color) -> None: ...
179 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/Getters/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_ArcGetter:
5 | def GetArc() -> GH_Arc: ...
6 | def GetArcs() -> List: ...
7 |
8 |
9 | class GH_BoxGetter:
10 | def GetBox() -> GH_Box: ...
11 | def GetBoxes() -> List: ...
12 |
13 |
14 | class GH_BrepGetter:
15 | def GetBrep() -> GH_Brep: ...
16 | def GetBreps() -> List: ...
17 |
18 |
19 | class GH_CircleGetter:
20 | def GetCircle() -> GH_Circle: ...
21 | def GetCircles() -> List: ...
22 |
23 |
24 | class GH_CurveGetter:
25 | def GetCurve() -> GH_Curve: ...
26 | def GetCurves() -> List: ...
27 |
28 |
29 | class GH_GeometryGetter:
30 | def GetGeometries() -> List: ...
31 | def GetGeometry() -> IGH_GeometricGoo: ...
32 |
33 |
34 | class GH_LineGetter:
35 | def GetLine() -> GH_Line: ...
36 | def GetLines() -> List: ...
37 |
38 |
39 | class GH_MeshGetter:
40 | def GetMesh() -> GH_Mesh: ...
41 | def GetMeshes() -> List: ...
42 |
43 |
44 | class GH_PlaneGetter:
45 | def GetPlane() -> GH_Plane: ...
46 | def GetPlanes() -> List: ...
47 |
48 |
49 | class GH_PointGetter:
50 | def __init__(self): ...
51 | def DefaultRefType(self) -> GH_PointRefType: ...
52 | @property
53 | def AcceptPreselected(self) -> bool: ...
54 | @property
55 | def PointRefType(self) -> GH_PointRefType: ...
56 | @overload
57 | def GetPoint(self) -> GH_Point: ...
58 | @overload
59 | def GetPoint(self, base: Point3d) -> GH_Point: ...
60 | @overload
61 | def GetPoint(prompt: str, basePoint: Point3d, outPoint: Point3d) -> Tuple[GH_GetterResult, Point3d]: ...
62 | def GetPoints(self) -> List: ...
63 | def RecreateSetup(self, pt: GH_Point) -> None: ...
64 | @AcceptPreselected.setter
65 | def AcceptPreselected(self, AutoPropertyValue: bool) -> None: ...
66 | @PointRefType.setter
67 | def PointRefType(self, AutoPropertyValue: GH_PointRefType) -> None: ...
68 |
69 |
70 | class GH_RectangleGetter:
71 | def GetRectangle() -> GH_Rectangle: ...
72 | def GetRectangles() -> List: ...
73 |
74 |
75 | class GH_SubDGetter:
76 | def GetSubD() -> GH_SubD: ...
77 | def GetSubDs() -> List: ...
78 |
79 |
80 | class GH_SurfaceGetter:
81 | def GetSurface() -> GH_Surface: ...
82 | def GetSurfaces() -> List: ...
83 |
84 |
85 | class GH_TransformGetter:
86 | pass
87 |
88 |
89 | class GH_VectorGetter:
90 | def GetVector() -> GH_Vector: ...
91 | def GetVectors() -> List: ...
92 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/Kernel/Attributes/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_ComponentAttributes:
5 | def __init__(self, component: IGH_Component): ...
6 | def AppendToAttributeTree(self, attributes: List) -> None: ...
7 | def ExpireLayout(self) -> None: ...
8 | @property
9 | def ContentBox(self) -> RectangleF: ...
10 | @property
11 | def HasInputGrip(self) -> bool: ...
12 | @property
13 | def HasOutputGrip(self) -> bool: ...
14 | @property
15 | def PathName(self) -> str: ...
16 | def InvalidateCanvas(self, canvas: GH_Canvas, e: GH_CanvasMouseEvent) -> bool: ...
17 | @overload
18 | def IsPickRegion(self, point: PointF) -> bool: ...
19 | def LayoutBounds(owner: IGH_Component, bounds: RectangleF) -> RectangleF: ...
20 | def LayoutComponentBox(owner: IGH_Component) -> RectangleF: ...
21 | def LayoutInputParams(owner: IGH_Component, componentBox: RectangleF) -> None: ...
22 | def LayoutOutputParams(owner: IGH_Component, componentBox: RectangleF) -> None: ...
23 | def RenderComponentParameters(canvas: GH_Canvas, graphics: Graphics, owner: IGH_Component, style: GH_PaletteStyle) -> None: ...
24 | def RespondToMouseDown(self, sender: GH_Canvas, e: GH_CanvasMouseEvent) -> GH_ObjectResponse: ...
25 | def SetupTooltip(self, canvasPoint: PointF, e: GH_TooltipDisplayEventArgs) -> None: ...
26 |
27 |
28 | class GH_FloatingParamAttributes:
29 | def __init__(self, param: IGH_Param): ...
30 | def RespondToMouseDoubleClick(self, sender: GH_Canvas, e: GH_CanvasMouseEvent) -> GH_ObjectResponse: ...
31 | def SetupTooltip(self, point: PointF, e: GH_TooltipDisplayEventArgs) -> None: ...
32 |
33 |
34 | class GH_LinkedParamAttributes:
35 | def __init__(self, param: IGH_Param, parent: IGH_Attributes): ...
36 | @property
37 | def HasInputGrip(self) -> bool: ...
38 | @property
39 | def HasOutputGrip(self) -> bool: ...
40 | def SetupTooltip(self, point: PointF, e: GH_TooltipDisplayEventArgs) -> None: ...
41 |
42 |
43 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/Kernel/Geometry/ConvexHull/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class Solver:
5 | def Compute(nodes: Node2List, hull: List) -> bool: ...
6 | @overload
7 | def ComputeHull(GH_pts: Iterable[GH_Point]) -> Polyline: ...
8 | @overload
9 | def ComputeHull(pts: Node2List) -> Polyline: ...
10 | @overload
11 | def ComputeHull(GH_pts: Iterable[GH_Point], plane: Plane) -> Tuple[Polyline, Plane]: ...
12 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/Kernel/Geometry/Delaunay/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class Connectivity:
5 | def __init__(self): ...
6 | @property
7 | def Count(self) -> int: ...
8 | def GetConnections(self, node_index: int) -> List: ...
9 | def SolveConnectivity(self, nodes: Node2List, faces: List, include_convex_hull_edges: bool) -> None: ...
10 |
11 |
12 | class Edge:
13 | def __init__(self, nA: int, nB: int, nN: int): ...
14 | def CompareTo(self, other: Edge) -> int: ...
15 | @property
16 | def DebuggerDisplay(self) -> str: ...
17 |
18 |
19 | class EdgeList:
20 | @overload
21 | def __init__(self): ...
22 | @overload
23 | def __init__(self, F: List): ...
24 | @overload
25 | def __init__(self, F: List): ...
26 | @overload
27 | def AddEdge(self, E: Edge) -> None: ...
28 | @overload
29 | def AddEdge(self, A: int, B: int) -> None: ...
30 | def Clear(self) -> None: ...
31 | @overload
32 | def ContainsEdge(self, E: Edge) -> int: ...
33 | @overload
34 | def ContainsEdge(self, A: int, B: int) -> int: ...
35 | @property
36 | def Capacity(self) -> int: ...
37 | @property
38 | def Count(self) -> int: ...
39 | @property
40 | def Edge(self, index: int) -> Edge: ...
41 | @overload
42 | def RemoveEdge(self, E: Edge) -> bool: ...
43 | @overload
44 | def RemoveEdge(self, A: int, B: int) -> bool: ...
45 | @Capacity.setter
46 | def Capacity(self, Value: int) -> None: ...
47 | def TrimHighValenceEdges(self) -> int: ...
48 |
49 |
50 | class Face:
51 | @overload
52 | def __init__(self): ...
53 | @overload
54 | def __init__(self, other: Face): ...
55 | @overload
56 | def __init__(self, nA: int, nB: int, nC: int): ...
57 | def ContainsEdge(self, E0: int, E1: int) -> bool: ...
58 | def ContainsVertex(self, index: int) -> bool: ...
59 | def Duplicate(self) -> Face: ...
60 | @property
61 | def DebuggerDisplay(self) -> str: ...
62 | @property
63 | def IsValid(self) -> bool: ...
64 | @overload
65 | def Set(self, other: Face) -> None: ...
66 | @overload
67 | def Set(self, nA: int, nB: int, nC: int) -> None: ...
68 |
69 |
70 | class FaceEx(Face):
71 | @overload
72 | def __init__(self): ...
73 | @overload
74 | def __init__(self, other: Face): ...
75 | @overload
76 | def __init__(self, nA: int, nB: int, nC: int): ...
77 | @overload
78 | def ComputeBC(self, Nodes: Node2List) -> None: ...
79 | @overload
80 | def ComputeBC(self, D: Node2, E: Node2, F: Node2) -> None: ...
81 | @overload
82 | def ContainsInBoundingCircle(self, N: Node2) -> bool: ...
83 | @overload
84 | def ContainsInBoundingCircle(self, x: float, y: float) -> bool: ...
85 | @property
86 | def Front(self) -> float: ...
87 |
88 |
89 | class FaceExList:
90 | @overload
91 | def __init__(self): ...
92 | @overload
93 | def __init__(self, initial_capacity: int): ...
94 | @overload
95 | def AddFace(self, F: FaceEx) -> None: ...
96 | @overload
97 | def AddFace(self, A: int, B: int, C: int, Nodes: Node2List) -> None: ...
98 | def Clear(self) -> None: ...
99 | def CullFaces(self, x: float, y: float, F: List) -> int: ...
100 | @property
101 | def Capacity(self) -> int: ...
102 | def InsertFaces(self, nodes: Node2List) -> None: ...
103 | def MigrateRemainingFaces(self, static_list: List) -> None: ...
104 | def MigrateStaticFaces(self, static_list: List, wave_front: float) -> int: ...
105 | @Capacity.setter
106 | def Capacity(self, Value: int) -> None: ...
107 | def TrimNulls(self) -> int: ...
108 |
109 |
110 | class Solver:
111 | def Solve_Connectivity(nodes: Node2List, jitter_amount: float, include_convex_hull_edges: bool) -> Connectivity: ...
112 | def Solve_Faces(nodes: Node2List, jitter_amount: float) -> List: ...
113 | def Solve_Mesh(nodes: Node2List, jitter_amount: float, faces: List) -> Tuple[Mesh, List]: ...
114 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/Kernel/Geometry/SpatialTrees/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | class TreeDelegates:
11 | def Node2Coordinates(pt: Node2, x: float, y: float, z: float) -> Tuple[float, float, float]: ...
12 | def Node3Coordinates(pt: Node3, x: float, y: float, z: float) -> Tuple[float, float, float]: ...
13 | def Point2dCoordinates(pt: Point2d, x: float, y: float, z: float) -> Tuple[float, float, float]: ...
14 | def Point2fCoordinates(pt: Point2d, x: float, y: float, z: float) -> Tuple[float, float, float]: ...
15 | def Point3dCoordinates(pt: Point3d, x: float, y: float, z: float) -> Tuple[float, float, float]: ...
16 | def Point3fCoordinates(pt: Point3d, x: float, y: float, z: float) -> Tuple[float, float, float]: ...
17 | def PointCoordinates(pt: Point, x: float, y: float, z: float) -> Tuple[float, float, float]: ...
18 |
19 |
20 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/Kernel/Geometry/Voronoi/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class Cell2:
5 | @overload
6 | def __init__(self): ...
7 | @overload
8 | def __init__(self, pt: Node2, Radius: float): ...
9 | @overload
10 | def __init__(self, pt: Node2, Contour: Iterable[Node2]): ...
11 | def Edges(self) -> List: ...
12 | def Radius(self) -> float: ...
13 | @overload
14 | def Slice(self, other: Node2) -> bool: ...
15 | @overload
16 | def Slice(self, line: Line2) -> bool: ...
17 | def SliceConvexNGon(V: List, line: Line2, side: Side2, changed: bool) -> Tuple[List, bool]: ...
18 | def ToGraphicsPath(self) -> GraphicsPath: ...
19 | def ToPolyCurve(self, radius: float) -> PolyCurve: ...
20 | def ToPolyline(self) -> Polyline: ...
21 |
22 |
23 | class Cell3:
24 | @overload
25 | def __init__(self, other: Cell3): ...
26 | @overload
27 | def __init__(self, center: Point3d, box: Box): ...
28 | @property
29 | def AngleTolerance(self) -> float: ...
30 | @property
31 | def BoundaryCount(self) -> int: ...
32 | @property
33 | def Center(self) -> Point3d: ...
34 | @property
35 | def Facets(self) -> List: ...
36 | @property
37 | def Tolerance(self) -> float: ...
38 | def MidPlane(A: Point3d, B: Point3d) -> Plane: ...
39 | @Tolerance.setter
40 | def Tolerance(self, Value: float) -> None: ...
41 | @overload
42 | def Slice(self, pt: Point3d) -> None: ...
43 | @overload
44 | def Slice(self, pt: Iterable[Point3d]) -> None: ...
45 | @overload
46 | def Slice(self, pt: Set(Point3d)) -> None: ...
47 | @overload
48 | def Slice(self, section: Plane) -> None: ...
49 | def ToBrep(self) -> Brep: ...
50 |
51 |
52 | class Cell3Facet:
53 | @overload
54 | def __init__(self): ...
55 | @overload
56 | def __init__(self, pts: Iterable[Point3d]): ...
57 | @overload
58 | def __init__(self, other: Cell3Facet): ...
59 | def CleanUp(self, tolerance: float, minDistance: float) -> Tuple[float]: ...
60 | def DestroyCaches(self) -> None: ...
61 | @property
62 | def MidPoint(self) -> Point3d: ...
63 | @property
64 | def Original(self) -> bool: ...
65 | @property
66 | def Radius(self) -> float: ...
67 | @Original.setter
68 | def Original(self, Value: bool) -> None: ...
69 |
70 |
71 | class Solver:
72 | def Solve_BruteForce(nodes: Node2List, outline: Iterable[Node2]) -> List: ...
73 | def Solve_Connectivity(nodes: Node2List, diagram: Connectivity, outline: Iterable[Node2]) -> List: ...
74 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/Kernel/Parameters/Hints/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_ArcHint:
5 | def __init__(self): ...
6 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
7 | @property
8 | def HintID(self) -> Guid: ...
9 | @property
10 | def TypeName(self) -> str: ...
11 |
12 |
13 | class GH_BooleanHint_CS:
14 | def __init__(self): ...
15 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
16 | @property
17 | def HintID(self) -> Guid: ...
18 | @property
19 | def TypeName(self) -> str: ...
20 |
21 |
22 | class GH_BooleanHint_VB:
23 | def __init__(self): ...
24 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
25 | @property
26 | def HintID(self) -> Guid: ...
27 | @property
28 | def TypeName(self) -> str: ...
29 |
30 |
31 | class GH_BoxHint:
32 | def __init__(self): ...
33 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
34 | @property
35 | def HintID(self) -> Guid: ...
36 | @property
37 | def TypeName(self) -> str: ...
38 |
39 |
40 | class GH_BrepHint:
41 | def __init__(self): ...
42 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
43 | @property
44 | def HintID(self) -> Guid: ...
45 | @property
46 | def TypeName(self) -> str: ...
47 |
48 |
49 | class GH_CircleHint:
50 | def __init__(self): ...
51 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
52 | @property
53 | def HintID(self) -> Guid: ...
54 | @property
55 | def TypeName(self) -> str: ...
56 |
57 |
58 | class GH_ColorHint:
59 | def __init__(self): ...
60 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
61 | @property
62 | def HintID(self) -> Guid: ...
63 | @property
64 | def TypeName(self) -> str: ...
65 |
66 |
67 | class GH_ComplexHint:
68 | def __init__(self): ...
69 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
70 | @property
71 | def HintID(self) -> Guid: ...
72 | @property
73 | def TypeName(self) -> str: ...
74 |
75 |
76 | class GH_CurveHint:
77 | def __init__(self): ...
78 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
79 | @property
80 | def HintID(self) -> Guid: ...
81 | @property
82 | def TypeName(self) -> str: ...
83 |
84 |
85 | class GH_DateTimeHint:
86 | def __init__(self): ...
87 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
88 | @property
89 | def HintID(self) -> Guid: ...
90 | @property
91 | def TypeName(self) -> str: ...
92 |
93 |
94 | class GH_DoubleHint_CS:
95 | def __init__(self): ...
96 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
97 | @property
98 | def HintID(self) -> Guid: ...
99 | @property
100 | def TypeName(self) -> str: ...
101 |
102 |
103 | class GH_DoubleHint_VB:
104 | def __init__(self): ...
105 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
106 | @property
107 | def HintID(self) -> Guid: ...
108 | @property
109 | def TypeName(self) -> str: ...
110 |
111 |
112 | class GH_GeometryBaseHint:
113 | def __init__(self): ...
114 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
115 | @property
116 | def HintID(self) -> Guid: ...
117 | @property
118 | def TypeName(self) -> str: ...
119 |
120 |
121 | class GH_GuidHint:
122 | def __init__(self): ...
123 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
124 | @property
125 | def HintID(self) -> Guid: ...
126 | @property
127 | def TypeName(self) -> str: ...
128 |
129 |
130 | class GH_HintSeparator:
131 | def __init__(self): ...
132 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
133 | @property
134 | def HintID(self) -> Guid: ...
135 | @property
136 | def TypeName(self) -> str: ...
137 |
138 |
139 | class GH_IntegerHint_CS:
140 | def __init__(self): ...
141 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
142 | @property
143 | def HintID(self) -> Guid: ...
144 | @property
145 | def TypeName(self) -> str: ...
146 |
147 |
148 | class GH_IntegerHint_VB:
149 | def __init__(self): ...
150 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
151 | @property
152 | def HintID(self) -> Guid: ...
153 | @property
154 | def TypeName(self) -> str: ...
155 |
156 |
157 | class GH_IntervalHint:
158 | def __init__(self): ...
159 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
160 | @property
161 | def HintID(self) -> Guid: ...
162 | @property
163 | def TypeName(self) -> str: ...
164 |
165 |
166 | class GH_LineHint:
167 | def __init__(self): ...
168 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
169 | @property
170 | def HintID(self) -> Guid: ...
171 | @property
172 | def TypeName(self) -> str: ...
173 |
174 |
175 | class GH_MeshHint:
176 | def __init__(self): ...
177 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
178 | @property
179 | def HintID(self) -> Guid: ...
180 | @property
181 | def TypeName(self) -> str: ...
182 |
183 |
184 | class GH_NullHint:
185 | def __init__(self): ...
186 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
187 | @property
188 | def HintID(self) -> Guid: ...
189 | @property
190 | def TypeName(self) -> str: ...
191 |
192 |
193 | class GH_PlaneHint:
194 | def __init__(self): ...
195 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
196 | @property
197 | def HintID(self) -> Guid: ...
198 | @property
199 | def TypeName(self) -> str: ...
200 |
201 |
202 | class GH_Point3dHint:
203 | def __init__(self): ...
204 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
205 | @property
206 | def HintID(self) -> Guid: ...
207 | @property
208 | def TypeName(self) -> str: ...
209 |
210 |
211 | class GH_PolylineHint:
212 | def __init__(self): ...
213 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
214 | @property
215 | def HintID(self) -> Guid: ...
216 | @property
217 | def TypeName(self) -> str: ...
218 |
219 |
220 | class GH_Rectangle3dHint:
221 | def __init__(self): ...
222 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
223 | @property
224 | def HintID(self) -> Guid: ...
225 | @property
226 | def TypeName(self) -> str: ...
227 |
228 |
229 | class GH_StringHint_CS:
230 | def __init__(self): ...
231 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
232 | @property
233 | def HintID(self) -> Guid: ...
234 | @property
235 | def TypeName(self) -> str: ...
236 |
237 |
238 | class GH_StringHint_VB:
239 | def __init__(self): ...
240 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
241 | @property
242 | def HintID(self) -> Guid: ...
243 | @property
244 | def TypeName(self) -> str: ...
245 |
246 |
247 | class GH_SubDHint:
248 | def __init__(self): ...
249 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
250 | @property
251 | def HintID(self) -> Guid: ...
252 | @property
253 | def TypeName(self) -> str: ...
254 |
255 |
256 | class GH_SurfaceHint:
257 | def __init__(self): ...
258 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
259 | @property
260 | def HintID(self) -> Guid: ...
261 | @property
262 | def TypeName(self) -> str: ...
263 |
264 |
265 | class GH_TransformHint:
266 | def __init__(self): ...
267 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
268 | @property
269 | def HintID(self) -> Guid: ...
270 | @property
271 | def TypeName(self) -> str: ...
272 |
273 |
274 | class GH_TypeHintServer:
275 | def FindHintByID(hint_id: Guid) -> IGH_TypeHint: ...
276 | def FindHintByName(hint_name: str) -> IGH_TypeHint: ...
277 |
278 |
279 | class GH_UVIntervalHint:
280 | def __init__(self): ...
281 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
282 | @property
283 | def HintID(self) -> Guid: ...
284 | @property
285 | def TypeName(self) -> str: ...
286 |
287 |
288 | class GH_Vector3dHint:
289 | def __init__(self): ...
290 | def Cast(self, data: Object) -> Tuple[bool, Object]: ...
291 | @property
292 | def HintID(self) -> Guid: ...
293 | @property
294 | def TypeName(self) -> str: ...
295 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/Kernel/Sorting/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_NetworkSorter:
5 | def __init__(self): ...
6 | def CreateContext(self, objs: List) -> None: ...
7 | def CreateNodeList(self, objs: List) -> None: ...
8 | def Sort(self, bDamp: Single, bLimit: Single) -> None: ...
9 |
10 |
11 | class GH_NetworkSorterNode:
12 | def __init__(self, obj_target: IGH_DocumentObject): ...
13 | def AdjustTarget(self, bDamp: Single, bLimit: Single) -> None: ...
14 | def ConstructLinkForces(self) -> None: ...
15 | def ConstructNodeForces(self, objs: List) -> None: ...
16 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/Kernel/Special/SketchElements/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_SketchBox:
5 | def __init__(self): ...
6 |
7 |
8 | class GH_SketchCloud:
9 | def __init__(self): ...
10 |
11 |
12 | class GH_SketchElement:
13 | @property
14 | def BoundingBox(self) -> RectangleF: ...
15 | @property
16 | def Category(self) -> str: ...
17 | @property
18 | def Description(self) -> str: ...
19 | @property
20 | def GraphicsPath(self) -> GraphicsPath: ...
21 | @property
22 | def HasCategory(self) -> bool: ...
23 | @property
24 | def HasSubCategory(self) -> bool: ...
25 | @property
26 | def Icon_24x24(self) -> Image: ...
27 | @property
28 | def InstanceDescription(self) -> str: ...
29 | @property
30 | def InstanceGuid(self) -> Guid: ...
31 | @property
32 | def Keywords(self) -> Iterable[str]: ...
33 | @property
34 | def Name(self) -> str: ...
35 | @property
36 | def NickName(self) -> str: ...
37 | @property
38 | def SubCategory(self) -> str: ...
39 | @overload
40 | def IsPickPoint(self, pt: PointF) -> bool: ...
41 | @overload
42 | def IsPickPoint(self, box: RectangleF, bCrossingBox: GH_PickBox) -> bool: ...
43 | @overload
44 | def NewInstanceGuid(self) -> None: ...
45 | @overload
46 | def NewInstanceGuid(self, UUID: Guid) -> None: ...
47 | def Read(self, reader: GH_IReader) -> bool: ...
48 | @Category.setter
49 | def Category(self, Value: str) -> None: ...
50 | @Description.setter
51 | def Description(self, Value: str) -> None: ...
52 | @Name.setter
53 | def Name(self, Value: str) -> None: ...
54 | @NickName.setter
55 | def NickName(self, Value: str) -> None: ...
56 | @SubCategory.setter
57 | def SubCategory(self, Value: str) -> None: ...
58 | def Write(self, writer: GH_IWriter) -> bool: ...
59 |
60 |
61 | class GH_SketchEllipse:
62 | def __init__(self): ...
63 |
64 |
65 | class GH_SketchFreehandStroke:
66 | def __init__(self): ...
67 |
68 |
69 | class GH_SketchLine:
70 | def __init__(self): ...
71 |
72 |
73 | class IGH_SketchElement:
74 | @property
75 | def BoundingBox(self) -> RectangleF: ...
76 | @property
77 | def GraphicsPath(self) -> GraphicsPath: ...
78 | @property
79 | def Icon_24x24(self) -> Image: ...
80 | @overload
81 | def IsPickPoint(self, pt: PointF) -> bool: ...
82 | @overload
83 | def IsPickPoint(self, box: RectangleF, bCrossingBox: GH_PickBox) -> bool: ...
84 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/Kernel/Types/Transforms/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class Generic:
5 | @overload
6 | def __init__(self): ...
7 | @overload
8 | def __init__(self, transform: Transform): ...
9 | def Duplicate(self) -> ITransform: ...
10 | @property
11 | def Name(self) -> str: ...
12 | @property
13 | def Transform(self) -> Transform: ...
14 | def Read(self, reader: GH_IReader) -> bool: ...
15 | def Reverse(self) -> ITransform: ...
16 | @Transform.setter
17 | def Transform(self, Value: Transform) -> None: ...
18 | def ToMatrix(self) -> Transform: ...
19 | def ToString(self) -> str: ...
20 | def Write(self, writer: GH_IWriter) -> bool: ...
21 |
22 |
23 | class Identity:
24 | def __init__(self): ...
25 | def Duplicate(self) -> ITransform: ...
26 | @property
27 | def Name(self) -> str: ...
28 | def Read(self, reader: GH_IReader) -> bool: ...
29 | def Reverse(self) -> ITransform: ...
30 | def ToMatrix(self) -> Transform: ...
31 | def ToString(self) -> str: ...
32 | def Write(self, writer: GH_IWriter) -> bool: ...
33 |
34 |
35 | class ITransform:
36 | def Duplicate(self) -> ITransform: ...
37 | @property
38 | def Name(self) -> str: ...
39 | def Reverse(self) -> ITransform: ...
40 | def ToMatrix(self) -> Transform: ...
41 | def ToString(self) -> str: ...
42 |
43 |
44 | class Orientation:
45 | @overload
46 | def __init__(self): ...
47 | @overload
48 | def __init__(self, source: Plane, target: Plane): ...
49 | def Duplicate(self) -> ITransform: ...
50 | @property
51 | def Name(self) -> str: ...
52 | @property
53 | def SourceFrame(self) -> Plane: ...
54 | @property
55 | def TargetFrame(self) -> Plane: ...
56 | def Read(self, reader: GH_IReader) -> bool: ...
57 | def Reverse(self) -> ITransform: ...
58 | @SourceFrame.setter
59 | def SourceFrame(self, Value: Plane) -> None: ...
60 | @TargetFrame.setter
61 | def TargetFrame(self, Value: Plane) -> None: ...
62 | def ToMatrix(self) -> Transform: ...
63 | def ToString(self) -> str: ...
64 | def Write(self, writer: GH_IWriter) -> bool: ...
65 |
66 |
67 | class Projection:
68 | @overload
69 | def __init__(self): ...
70 | @overload
71 | def __init__(self, plane: Plane): ...
72 | def Duplicate(self) -> ITransform: ...
73 | @property
74 | def Name(self) -> str: ...
75 | @property
76 | def ProjectionPlane(self) -> Plane: ...
77 | def Read(self, reader: GH_IReader) -> bool: ...
78 | def Reverse(self) -> ITransform: ...
79 | @ProjectionPlane.setter
80 | def ProjectionPlane(self, Value: Plane) -> None: ...
81 | def ToMatrix(self) -> Transform: ...
82 | def ToString(self) -> str: ...
83 | def Write(self, writer: GH_IWriter) -> bool: ...
84 |
85 |
86 | class Rotation:
87 | @overload
88 | def __init__(self): ...
89 | @overload
90 | def __init__(self, center: Point3d, axis: Vector3d, angle: float): ...
91 | @overload
92 | def __init__(self, center: Point3d, dir0: Vector3d, dir1: Vector3d): ...
93 | def Duplicate(self) -> ITransform: ...
94 | @property
95 | def Name(self) -> str: ...
96 | @property
97 | def RotationAngle(self) -> float: ...
98 | @property
99 | def RotationAxis(self) -> Vector3d: ...
100 | @property
101 | def RotationCenter(self) -> Point3d: ...
102 | def Read(self, reader: GH_IReader) -> bool: ...
103 | def Reverse(self) -> ITransform: ...
104 | @RotationAngle.setter
105 | def RotationAngle(self, Value: float) -> None: ...
106 | @RotationAxis.setter
107 | def RotationAxis(self, Value: Vector3d) -> None: ...
108 | @RotationCenter.setter
109 | def RotationCenter(self, Value: Point3d) -> None: ...
110 | def ToMatrix(self) -> Transform: ...
111 | def ToString(self) -> str: ...
112 | def Write(self, writer: GH_IWriter) -> bool: ...
113 |
114 |
115 | class Scale:
116 | @overload
117 | def __init__(self): ...
118 | @overload
119 | def __init__(self, point: Point3d, scale: float): ...
120 | @overload
121 | def __init__(self, frame: Plane, scale: float): ...
122 | @overload
123 | def __init__(self, frame: Plane, xscale: float, yscale: float, zscale: float): ...
124 | def Duplicate(self) -> ITransform: ...
125 | @property
126 | def Name(self) -> str: ...
127 | @property
128 | def ScaleXFactor(self) -> float: ...
129 | @property
130 | def ScaleYFactor(self) -> float: ...
131 | @property
132 | def ScaleZFactor(self) -> float: ...
133 | @property
134 | def ScalingFrame(self) -> Plane: ...
135 | def Read(self, reader: GH_IReader) -> bool: ...
136 | def Reverse(self) -> ITransform: ...
137 | @ScaleXFactor.setter
138 | def ScaleXFactor(self, Value: float) -> None: ...
139 | @ScaleYFactor.setter
140 | def ScaleYFactor(self, Value: float) -> None: ...
141 | @ScaleZFactor.setter
142 | def ScaleZFactor(self, Value: float) -> None: ...
143 | @ScalingFrame.setter
144 | def ScalingFrame(self, Value: Plane) -> None: ...
145 | def ToMatrix(self) -> Transform: ...
146 | def ToString(self) -> str: ...
147 | def Write(self, writer: GH_IWriter) -> bool: ...
148 |
149 |
150 | class Translation:
151 | @overload
152 | def __init__(self): ...
153 | @overload
154 | def __init__(self, translation: Vector3d): ...
155 | def Duplicate(self) -> ITransform: ...
156 | @property
157 | def Name(self) -> str: ...
158 | @property
159 | def TranslationVector(self) -> Vector3d: ...
160 | def Read(self, reader: GH_IReader) -> bool: ...
161 | def Reverse(self) -> ITransform: ...
162 | @TranslationVector.setter
163 | def TranslationVector(self, Value: Vector3d) -> None: ...
164 | def ToMatrix(self) -> Transform: ...
165 | def ToString(self) -> str: ...
166 | def Write(self, writer: GH_IWriter) -> bool: ...
167 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/Kernel/Undo/Actions/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_AddObjectAction(GH_UndoAction):
5 | def __init__(self, obj: IGH_DocumentObject): ...
6 | @property
7 | def ExpiresSolution(self) -> bool: ...
8 |
9 |
10 | class GH_AddStateAction(GH_ArchivedUndoAction):
11 | def __init__(self, index: int, state: GH_State): ...
12 | def Read(self, reader: GH_IReader) -> bool: ...
13 | def Write(self, writer: GH_IWriter) -> bool: ...
14 |
15 |
16 | class GH_DataMatchingAction(GH_ObjectUndoAction):
17 | def __init__(self, obj: IGH_Component): ...
18 | @property
19 | def ExpiresSolution(self) -> bool: ...
20 |
21 |
22 | class GH_DataModificationAction(GH_ObjectUndoAction):
23 | def __init__(self, obj: IGH_Param): ...
24 | @property
25 | def ExpiresSolution(self) -> bool: ...
26 |
27 |
28 | class GH_GenericObjectAction(GH_ArchivedUndoAction):
29 | def __init__(self, obj: IGH_DocumentObject): ...
30 | @property
31 | def ExpiresSolution(self) -> bool: ...
32 |
33 |
34 | class GH_HiddenAction(GH_ObjectUndoAction):
35 | def __init__(self, obj: IGH_ActiveObject): ...
36 | @property
37 | def ExpiresDisplay(self) -> bool: ...
38 |
39 |
40 | class GH_IconDisplayAction(GH_ObjectUndoAction):
41 | def __init__(self, obj: IGH_DocumentObject): ...
42 |
43 |
44 | class GH_IconOverrideAction(GH_ObjectUndoAction):
45 | def __init__(self, obj: IGH_DocumentObject): ...
46 |
47 |
48 | class GH_LayoutAction(GH_ObjectUndoAction):
49 | def __init__(self, obj: IGH_DocumentObject): ...
50 |
51 |
52 | class GH_LockedAction(GH_ObjectUndoAction):
53 | def __init__(self, obj: IGH_ActiveObject): ...
54 | @property
55 | def ExpiresSolution(self) -> bool: ...
56 |
57 |
58 | class GH_NickNameAction(GH_ObjectUndoAction):
59 | def __init__(self, obj: IGH_DocumentObject): ...
60 |
61 |
62 |
63 |
64 | class GH_PivotAction(GH_ObjectUndoAction):
65 | def __init__(self, obj: IGH_DocumentObject): ...
66 |
67 |
68 | class GH_RemoveObjectAction(GH_ArchivedUndoAction):
69 | def __init__(self, obj: IGH_DocumentObject): ...
70 | @property
71 | def ExpiresSolution(self) -> bool: ...
72 |
73 |
74 | class GH_RemoveStateAction(GH_ArchivedUndoAction):
75 | def __init__(self, index: int, state: GH_State): ...
76 | def Read(self, reader: GH_IReader) -> bool: ...
77 | def Write(self, writer: GH_IWriter) -> bool: ...
78 |
79 |
80 | class GH_WireAction(GH_UndoAction):
81 | def __init__(self, param: IGH_Param): ...
82 | @property
83 | def ExpiresSolution(self) -> bool: ...
84 |
85 |
86 | class GH_WireDisplayAction(GH_ObjectUndoAction):
87 | def __init__(self, obj: IGH_Param): ...
88 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/Kernel/Undo/__init__.pyi:
--------------------------------------------------------------------------------
1 | __all__ = ['Actions']
2 | from typing import Tuple, Set, Iterable, List, overload
3 |
4 |
5 | class GH_ArchivedUndoAction(GH_UndoAction):
6 | def Read(self, reader: GH_IReader) -> bool: ...
7 | def Write(self, writer: GH_IWriter) -> bool: ...
8 |
9 |
10 | class GH_ObjectUndoAction(GH_UndoAction):
11 | pass
12 |
13 |
14 | class GH_UndoAction:
15 | @property
16 | def ExpiresDisplay(self) -> bool: ...
17 | @property
18 | def ExpiresSolution(self) -> bool: ...
19 | @property
20 | def State(self) -> GH_UndoState: ...
21 | def Read(self, reader: GH_IReader) -> bool: ...
22 | def Redo(self, doc: GH_Document) -> None: ...
23 | def Undo(self, doc: GH_Document) -> None: ...
24 | def Write(self, writer: GH_IWriter) -> bool: ...
25 |
26 |
27 | class GH_UndoException:
28 | @overload
29 | def __init__(self, message: str): ...
30 | @overload
31 | def __init__(self, message: str, args: Set(Object)): ...
32 |
33 |
34 | class GH_UndoRecord:
35 | @overload
36 | def __init__(self): ...
37 | @overload
38 | def __init__(self, name: str): ...
39 | @overload
40 | def __init__(self, name: str, action: IGH_UndoAction): ...
41 | @overload
42 | def __init__(self, name: str, actions: Set(IGH_UndoAction)): ...
43 | @overload
44 | def __init__(self, name: str, actions: Iterable[IGH_UndoAction]): ...
45 | def AddAction(self, action: IGH_UndoAction) -> None: ...
46 | @property
47 | def ActionCount(self) -> int: ...
48 | @property
49 | def Actions(self) -> List[IGH_UndoAction]: ...
50 | @property
51 | def ExpiresDisplay(self) -> bool: ...
52 | @property
53 | def ExpiresSolution(self) -> bool: ...
54 | @property
55 | def Guid(self) -> Guid: ...
56 | @property
57 | def Name(self) -> str: ...
58 | @property
59 | def State(self) -> GH_UndoState: ...
60 | @property
61 | def Time(self) -> DateTime: ...
62 | def Redo(self, doc: GH_Document) -> None: ...
63 | @Name.setter
64 | def Name(self, Value: str) -> None: ...
65 | def Undo(self, doc: GH_Document) -> None: ...
66 |
67 |
68 | class GH_UndoServer:
69 | def __init__(self, owner: GH_Document): ...
70 | def AppendToDebugLog(self, writer: GH_DebugDescriptionWriter) -> None: ...
71 | def Clear(self) -> None: ...
72 | def ClearRedo(self) -> None: ...
73 | def ClearUndo(self) -> None: ...
74 | @property
75 | def FirstRedoName(self) -> str: ...
76 | @property
77 | def FirstUndoName(self) -> str: ...
78 | @property
79 | def MaxRecords(self) -> int: ...
80 | @property
81 | def RedoCount(self) -> int: ...
82 | @property
83 | def RedoGuids(self) -> List: ...
84 | @property
85 | def RedoNames(self) -> List: ...
86 | @property
87 | def UndoCount(self) -> int: ...
88 | @property
89 | def UndoGuids(self) -> List: ...
90 | @property
91 | def UndoNames(self) -> List: ...
92 | def MergeRecords(self, count: int) -> bool: ...
93 | def PerformRedo(self) -> None: ...
94 | def PerformUndo(self) -> None: ...
95 | @overload
96 | def PushUndoRecord(self, record: GH_UndoRecord) -> None: ...
97 | @overload
98 | def PushUndoRecord(self, name: str, action: GH_UndoAction) -> Guid: ...
99 | def RemoveRecord(self, id: Guid) -> bool: ...
100 | @MaxRecords.setter
101 | def MaxRecords(self, Value: int) -> None: ...
102 |
103 |
104 | class GH_UndoState:
105 | undo = 0
106 | redo = 1
107 |
108 |
109 | class IGH_UndoAction:
110 | @property
111 | def ExpiresDisplay(self) -> bool: ...
112 | @property
113 | def ExpiresSolution(self) -> bool: ...
114 | @property
115 | def State(self) -> GH_UndoState: ...
116 | def Redo(self, doc: GH_Document) -> None: ...
117 | def Undo(self, doc: GH_Document) -> None: ...
118 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/Kernel/Utility/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GH_Interval_Wrapper:
5 | def __init__(self, interval: Interval, wrapperdelegate: GH_IntervalWrapperDelegate): ...
6 | @property
7 | def A(self) -> float: ...
8 | @property
9 | def B(self) -> float: ...
10 | @property
11 | def Increasing(self) -> str: ...
12 | @property
13 | def Length(self) -> str: ...
14 | def InternalInterval(self) -> Interval: ...
15 | @A.setter
16 | def A(self, set_value: float) -> None: ...
17 | @B.setter
18 | def B(self, set_value: float) -> None: ...
19 |
20 |
21 | class GH_Interval_Wrapper_TypeConverter:
22 | def __init__(self): ...
23 | @overload
24 | def CanConvertFrom(self, context: ITypeDescriptorContext, sourceType: Type) -> bool: ...
25 | @overload
26 | def CanConvertTo(self, context: ITypeDescriptorContext, destinationType: Type) -> bool: ...
27 | @overload
28 | def ConvertTo(self, context: ITypeDescriptorContext, culture: CultureInfo, value: Object, destinationType: Type) -> Object: ...
29 |
30 |
31 | class GH_IntervalWrapperDelegate:
32 | def __init__(self, TargetObject: Object, TargetMethod: IntPtr): ...
33 | def BeginInvoke(self, sender: GH_Interval_Wrapper, interval: Interval, DelegateCallback: AsyncCallback, DelegateAsyncState: Object) -> IAsyncResult: ...
34 | def EndInvoke(self, DelegateAsyncResult: IAsyncResult) -> None: ...
35 | def Invoke(self, sender: GH_Interval_Wrapper, interval: Interval) -> None: ...
36 |
37 |
38 | class GH_PlaneModifier:
39 | def Set_X(P: Plane, x_axis: Vector3d) -> Plane: ...
40 | def Set_Y(P: Plane, y_axis: Vector3d) -> Plane: ...
41 | def Set_Z(P: Plane, z_axis: Vector3d) -> Plane: ...
42 |
43 |
44 | class GH_Point3d_Wrapper:
45 | def __init__(self, pt: Point3d, wrapperdelegate: GH_Point3dWrapperDelegate): ...
46 | @property
47 | def X(self) -> float: ...
48 | @property
49 | def Y(self) -> float: ...
50 | @property
51 | def Z(self) -> float: ...
52 | def InternalPoint(self) -> Point3d: ...
53 | @X.setter
54 | def X(self, set_value: float) -> None: ...
55 | @Y.setter
56 | def Y(self, set_value: float) -> None: ...
57 | @Z.setter
58 | def Z(self, set_value: float) -> None: ...
59 |
60 |
61 | class GH_Point3d_Wrapper_TypeConverter:
62 | def __init__(self): ...
63 | @overload
64 | def CanConvertFrom(self, context: ITypeDescriptorContext, sourceType: Type) -> bool: ...
65 | @overload
66 | def CanConvertTo(self, context: ITypeDescriptorContext, destinationType: Type) -> bool: ...
67 | @overload
68 | def ConvertTo(self, context: ITypeDescriptorContext, culture: CultureInfo, value: Object, destinationType: Type) -> Object: ...
69 |
70 |
71 | class GH_Point3dWrapperDelegate:
72 | def __init__(self, TargetObject: Object, TargetMethod: IntPtr): ...
73 | def BeginInvoke(self, sender: GH_Point3d_Wrapper, point: Point3d, DelegateCallback: AsyncCallback, DelegateAsyncState: Object) -> IAsyncResult: ...
74 | def EndInvoke(self, DelegateAsyncResult: IAsyncResult) -> None: ...
75 | def Invoke(self, sender: GH_Point3d_Wrapper, point: Point3d) -> None: ...
76 |
77 |
78 | class GH_PointRefUV_Wrapper:
79 | def __init__(self, ref: GH_PointRefData, wrapperdelegate: GH_PointRefUVWrapperDelegate): ...
80 | @property
81 | def U(self) -> float: ...
82 | @property
83 | def V(self) -> float: ...
84 | def InternalRefence(self) -> GH_PointRefData: ...
85 | @U.setter
86 | def U(self, set_value: float) -> None: ...
87 | @V.setter
88 | def V(self, set_value: float) -> None: ...
89 |
90 |
91 | class GH_PointRefUV_Wrapper_TypeConverter:
92 | def __init__(self): ...
93 | @overload
94 | def CanConvertFrom(self, context: ITypeDescriptorContext, sourceType: Type) -> bool: ...
95 | @overload
96 | def CanConvertTo(self, context: ITypeDescriptorContext, destinationType: Type) -> bool: ...
97 | @overload
98 | def ConvertTo(self, context: ITypeDescriptorContext, culture: CultureInfo, value: Object, destinationType: Type) -> Object: ...
99 |
100 |
101 | class GH_PointRefUVWrapperDelegate:
102 | def __init__(self, TargetObject: Object, TargetMethod: IntPtr): ...
103 | def BeginInvoke(self, sender: GH_PointRefUV_Wrapper, ref: GH_PointRefData, DelegateCallback: AsyncCallback, DelegateAsyncState: Object) -> IAsyncResult: ...
104 | def EndInvoke(self, DelegateAsyncResult: IAsyncResult) -> None: ...
105 | def Invoke(self, sender: GH_PointRefUV_Wrapper, ref: GH_PointRefData) -> None: ...
106 |
107 |
108 | class GH_Vector3d_Wrapper:
109 | def __init__(self, vec: Vector3d, wrapperdelegate: GH_Vector3dWrapperDelegate): ...
110 | @property
111 | def Length(self) -> str: ...
112 | @property
113 | def Tiny(self) -> str: ...
114 | @property
115 | def X(self) -> float: ...
116 | @property
117 | def Y(self) -> float: ...
118 | @property
119 | def Z(self) -> float: ...
120 | def InternalVector(self) -> Vector3d: ...
121 | @X.setter
122 | def X(self, set_value: float) -> None: ...
123 | @Y.setter
124 | def Y(self, set_value: float) -> None: ...
125 | @Z.setter
126 | def Z(self, set_value: float) -> None: ...
127 |
128 |
129 | class GH_Vector3d_Wrapper_TypeConverter:
130 | def __init__(self): ...
131 | @overload
132 | def CanConvertFrom(self, context: ITypeDescriptorContext, sourceType: Type) -> bool: ...
133 | @overload
134 | def CanConvertTo(self, context: ITypeDescriptorContext, destinationType: Type) -> bool: ...
135 | @overload
136 | def ConvertTo(self, context: ITypeDescriptorContext, culture: CultureInfo, value: Object, destinationType: Type) -> Object: ...
137 |
138 |
139 | class GH_Vector3dWrapperDelegate:
140 | def __init__(self, TargetObject: Object, TargetMethod: IntPtr): ...
141 | def BeginInvoke(self, sender: GH_Vector3d_Wrapper, vector: Vector3d, DelegateCallback: AsyncCallback, DelegateAsyncState: Object) -> IAsyncResult: ...
142 | def EndInvoke(self, DelegateAsyncResult: IAsyncResult) -> None: ...
143 | def Invoke(self, sender: GH_Vector3d_Wrapper, vector: Vector3d) -> None: ...
144 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/Grasshopper-stubs/Plugin/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class Commands:
5 | @property
6 | def BakeDocument() -> GH_Document: ...
7 | @property
8 | def BakeObject() -> IGH_ActiveObject: ...
9 | def Run_Grasshopper() -> bool: ...
10 | def Run_GrasshopperBake() -> bool: ...
11 | def Run_GrasshopperDeveloperSettings() -> bool: ...
12 | def Run_GrasshopperExportHelp() -> bool: ...
13 | def Run_GrasshopperFolders() -> bool: ...
14 | def Run_GrasshopperGetSDKDocumentation() -> bool: ...
15 | @overload
16 | def Run_GrasshopperOpen() -> bool: ...
17 | @overload
18 | def Run_GrasshopperOpen(path: str) -> bool: ...
19 | def Run_GrasshopperReloadAssemblies() -> List: ...
20 | def Run_GrasshopperScripted() -> bool: ...
21 | def Run_GrasshopperUnloadPlugin() -> bool: ...
22 | @BakeDocument.setter
23 | def BakeDocument(Value: GH_Document) -> None: ...
24 | @BakeObject.setter
25 | def BakeObject(Value: IGH_ActiveObject) -> None: ...
26 |
27 |
28 | class GH_PluginUtil:
29 | def BringRhinoToTop() -> None: ...
30 | def BringWindowToTop(hWnd: IntPtr) -> bool: ...
31 | def FocusOnRhino() -> None: ...
32 | def LoadGrasshopper(message: str) -> Tuple[bool, str]: ...
33 | def SaveSettings() -> None: ...
34 | @overload
35 | def SendKeyCodeToRhino(key: int) -> None: ...
36 | @overload
37 | def SendKeyCodeToRhino(key: Char) -> None: ...
38 | @overload
39 | def SendKeyCodeToRhino(key: str) -> None: ...
40 | def SendMessage(hWnd: IntPtr, msg: int, wParam: int, lParam: IntPtr) -> IntPtr: ...
41 | def SetFocus(hWnd: IntPtr) -> None: ...
42 | def UnloadGrasshopper() -> bool: ...
43 |
44 |
45 | class GH_ResourceGate:
46 | @property
47 | def BlackIcon() -> Bitmap: ...
48 | @property
49 | def Error_12x12() -> Bitmap: ...
50 | @property
51 | def Error_16x16() -> Bitmap: ...
52 | @property
53 | def Error_24x24() -> Bitmap: ...
54 | @property
55 | def Error_40x40() -> Bitmap: ...
56 | @property
57 | def Info_12x12() -> Bitmap: ...
58 | @property
59 | def Info_16x16() -> Bitmap: ...
60 | @property
61 | def Info_24x24() -> Bitmap: ...
62 | @property
63 | def Info_40x40() -> Bitmap: ...
64 | @property
65 | def OK_12x12() -> Bitmap: ...
66 | @property
67 | def OK_16x16() -> Bitmap: ...
68 | @property
69 | def OK_24x24() -> Bitmap: ...
70 | @property
71 | def OK_40x40() -> Bitmap: ...
72 | @property
73 | def Warning_12x12() -> Bitmap: ...
74 | @property
75 | def Warning_16x16() -> Bitmap: ...
76 | @property
77 | def Warning_24x24() -> Bitmap: ...
78 | @property
79 | def Warning_40x40() -> Bitmap: ...
80 | @property
81 | def WhiteIcon() -> Bitmap: ...
82 |
83 |
84 | class GH_RhinoScriptInterface:
85 | def __init__(self): ...
86 | def AssignDataToParameter(self, parameterID: str, data: Object) -> bool: ...
87 | def BakeDataInObject(self, objectID: str) -> Object: ...
88 | def CloseAllDocuments(self) -> bool: ...
89 | def CloseDocument(self) -> bool: ...
90 | def DisableBanner(self) -> None: ...
91 | def DisableSolver(self) -> None: ...
92 | def EnableBanner(self) -> None: ...
93 | def EnableSolver(self) -> None: ...
94 | def HideEditor(self) -> None: ...
95 | def IsEditorLoaded(self) -> bool: ...
96 | def IsEditorVisible(self) -> bool: ...
97 | def IsSolverEnabled(self) -> bool: ...
98 | def LoadEditor(self) -> None: ...
99 | def OpenDocument(self, filename: str) -> bool: ...
100 | def RunAsCommand(self, ghDoc: GH_Document, command: Command, rhinoDoc: RhinoDoc, mode: RunMode) -> Result: ...
101 | def RunHeadless(self) -> None: ...
102 | def RunSolver(self, expireAllObjects: bool) -> None: ...
103 | def SaveDocument(self) -> bool: ...
104 | def SaveDocumentAs(self, filename: str) -> bool: ...
105 | def SetSliderRangeAndValue(self, sliderID: str, value: float, minimum: float, maximum: float) -> bool: ...
106 | def SetSliderValue(self, sliderID: str, value: float) -> bool: ...
107 | def ShowEditor(self) -> None: ...
108 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Robert McNeel & Associates
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include Grasshopper-stubs/*.pyi
2 |
3 |
--------------------------------------------------------------------------------
/stubs/Grasshopper/README.md:
--------------------------------------------------------------------------------
1 | # Grasshopper-stubs
2 | stubs package for Grasshopper
--------------------------------------------------------------------------------
/stubs/Grasshopper/setup.py:
--------------------------------------------------------------------------------
1 | import setuptools
2 | import os
3 |
4 | long_description = '''
5 | # Grasshopper-stubs
6 | Stubs for Grasshopper
7 | '''
8 |
9 |
10 | def find_stubs(package):
11 | stubs = []
12 | for root, dirs, files in os.walk(package):
13 | for f in files:
14 | stubs.append(os.path.relpath(os.path.join(root, f), package))
15 | return {package: stubs}
16 |
17 |
18 | setuptools.setup(
19 | name="Grasshopper-stubs",
20 | version="7.7.21140",
21 | package_data=find_stubs("Grasshopper-stubs"),
22 | packages=['Grasshopper-stubs'],
23 | author="Robert McNeel & Associates",
24 | author_email="steve@mcneel.com",
25 | description="Stubs for Grasshopper",
26 | long_description=long_description,
27 | long_description_content_type="text/markdown",
28 | url="https://github.com/mcneel/pythonstubs",
29 | classifiers=[
30 | "Development Status :: 5 - Production/Stable",
31 | "Intended Audience :: Developers",
32 | "License :: OSI Approved :: MIT License",
33 | "Programming Language :: Python"
34 | ],
35 | )
36 |
--------------------------------------------------------------------------------
/stubs/Rhino/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Robert McNeel & Associates
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/stubs/Rhino/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include Rhino-stubs/*.pyi
2 |
3 |
--------------------------------------------------------------------------------
/stubs/Rhino/README.md:
--------------------------------------------------------------------------------
1 | # Rhino-stubs
2 | stubs package for RhinoCommon
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/Commands/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class Command:
5 | def add_BeginCommand(value: EventHandler) -> None: ...
6 | def add_EndCommand(value: EventHandler) -> None: ...
7 | def add_UndoRedo(value: EventHandler) -> None: ...
8 | def DisplayHelp(commandId: Guid) -> None: ...
9 | @property
10 | def EnglishName(self) -> str: ...
11 | @property
12 | def Id(self) -> Guid: ...
13 | @property
14 | def LastCommandId() -> Guid: ...
15 | @property
16 | def LastCommandResult() -> Result: ...
17 | @property
18 | def LocalName(self) -> str: ...
19 | @property
20 | def PlugIn(self) -> PlugIn: ...
21 | @property
22 | def Settings(self) -> PersistentSettings: ...
23 | def GetCommandNames(english: bool, loaded: bool) -> Set(str): ...
24 | def GetCommandStack() -> Set(Guid): ...
25 | def GetMostRecentCommands() -> Set(MostRecentCommandDescription): ...
26 | def InCommand() -> bool: ...
27 | def InScriptRunnerCommand() -> bool: ...
28 | def IsCommand(name: str) -> bool: ...
29 | def IsValidCommandName(name: str) -> bool: ...
30 | def LookupCommandId(name: str, searchForEnglishName: bool) -> Guid: ...
31 | def LookupCommandName(commandId: Guid, englishName: bool) -> str: ...
32 | def remove_BeginCommand(value: EventHandler) -> None: ...
33 | def remove_EndCommand(value: EventHandler) -> None: ...
34 | def remove_UndoRedo(value: EventHandler) -> None: ...
35 | def RunProxyCommand(commandCallback: RunCommandDelegate, doc: RhinoDoc, data: Object) -> None: ...
36 |
37 |
38 | class CommandEventArgs:
39 | @property
40 | def CommandEnglishName(self) -> str: ...
41 | @property
42 | def CommandId(self) -> Guid: ...
43 | @property
44 | def CommandLocalName(self) -> str: ...
45 | @property
46 | def CommandPluginName(self) -> str: ...
47 | @property
48 | def CommandResult(self) -> Result: ...
49 | @property
50 | def Document(self) -> RhinoDoc: ...
51 | @property
52 | def DocumentRuntimeSerialNumber(self) -> UInt32: ...
53 |
54 |
55 | class CommandStyleAttribute:
56 | def __init__(self, styles: Style): ...
57 | @property
58 | def Styles(self) -> Style: ...
59 |
60 |
61 | class CustomUndoEventArgs:
62 | @property
63 | def ActionDescription(self) -> str: ...
64 | @property
65 | def CommandId(self) -> Guid: ...
66 | @property
67 | def CreatedByRedo(self) -> bool: ...
68 | @property
69 | def Document(self) -> RhinoDoc: ...
70 | @property
71 | def Tag(self) -> Object: ...
72 | @property
73 | def UndoSerialNumber(self) -> UInt32: ...
74 |
75 |
76 | class MostRecentCommandDescription:
77 | def __init__(self): ...
78 | @property
79 | def DisplayString(self) -> str: ...
80 | @property
81 | def Macro(self) -> str: ...
82 | @DisplayString.setter
83 | def DisplayString(self, value: str) -> None: ...
84 | @Macro.setter
85 | def Macro(self, value: str) -> None: ...
86 |
87 |
88 | class Result:
89 | Success = 0
90 | Cancel = 1
91 | Nothing = 2
92 | Failure = 3
93 | UnknownCommand = 4
94 | CancelModelessDialog = 5
95 | ExitRhino = 268435455
96 |
97 |
98 | class RunCommandDelegate:
99 | def __init__(self, object: Object, method: IntPtr): ...
100 | def BeginInvoke(self, doc: RhinoDoc, mode: RunMode, data: Object, callback: AsyncCallback, object: Object) -> IAsyncResult: ...
101 | def EndInvoke(self, result: IAsyncResult) -> Result: ...
102 | def Invoke(self, doc: RhinoDoc, mode: RunMode, data: Object) -> Result: ...
103 |
104 |
105 | class RunMode:
106 | Interactive = 0
107 | Scripted = 1
108 |
109 |
110 | class SelCommand(Command):
111 | @property
112 | def BeQuiet(self) -> bool: ...
113 | @property
114 | def TestGrips(self) -> bool: ...
115 | @property
116 | def TestLights(self) -> bool: ...
117 | @BeQuiet.setter
118 | def BeQuiet(self, value: bool) -> None: ...
119 | @TestGrips.setter
120 | def TestGrips(self, value: bool) -> None: ...
121 | @TestLights.setter
122 | def TestLights(self, value: bool) -> None: ...
123 |
124 |
125 | class Style:
126 | #None = 0
127 | Hidden = 1
128 | ScriptRunner = 2
129 | Transparent = 4
130 | DoNotRepeat = 8
131 | NotUndoable = 16
132 |
133 |
134 | class TransformCommand(Command):
135 | pass
136 |
137 |
138 | class UndoRedoEventArgs:
139 | @property
140 | def CommandId(self) -> Guid: ...
141 | @property
142 | def IsBeginRecording(self) -> bool: ...
143 | @property
144 | def IsBeginRedo(self) -> bool: ...
145 | @property
146 | def IsBeginUndo(self) -> bool: ...
147 | @property
148 | def IsEndRecording(self) -> bool: ...
149 | @property
150 | def IsEndRedo(self) -> bool: ...
151 | @property
152 | def IsEndUndo(self) -> bool: ...
153 | @property
154 | def IsPurgeRecord(self) -> bool: ...
155 | @property
156 | def UndoSerialNumber(self) -> UInt32: ...
157 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/DocObjects/Custom/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class ClassIdAttribute:
5 | def __init__(self, id: str): ...
6 | @property
7 | def Id(self) -> Guid: ...
8 |
9 |
10 | class CustomBrepObject(BrepObject):
11 | pass
12 |
13 |
14 | class CustomCurveObject(CurveObject):
15 | @overload
16 | def Dispose(self) -> None: ...
17 |
18 |
19 | class CustomGripObject(GripObject):
20 | def __init__(self): ...
21 | @overload
22 | def Dispose(self) -> None: ...
23 | @property
24 | def Index(self) -> int: ...
25 | @property
26 | def OriginalLocation(self) -> Point3d: ...
27 | @property
28 | def Weight(self) -> float: ...
29 | def NewLocation(self) -> None: ...
30 | @Index.setter
31 | def Index(self, value: int) -> None: ...
32 | @OriginalLocation.setter
33 | def OriginalLocation(self, value: Point3d) -> None: ...
34 | @Weight.setter
35 | def Weight(self, value: float) -> None: ...
36 |
37 |
38 | class CustomMeshObject(MeshObject):
39 | @overload
40 | def Dispose(self) -> None: ...
41 |
42 |
43 | class CustomObjectGrips:
44 | def Dispose(self) -> None: ...
45 | def Dragging() -> bool: ...
46 | @property
47 | def GripCount(self) -> int: ...
48 | @property
49 | def GripsMoved(self) -> bool: ...
50 | @property
51 | def NewLocation(self) -> bool: ...
52 | @property
53 | def OwnerObject(self) -> RhinoObject: ...
54 | def Grip(self, index: int) -> CustomGripObject: ...
55 | def RegisterGripsEnabler(enabler: TurnOnGripsEventHandler, customGripsType: Type) -> None: ...
56 | @NewLocation.setter
57 | def NewLocation(self, value: bool) -> None: ...
58 |
59 |
60 | class CustomPointObject(PointObject):
61 | @overload
62 | def Dispose(self) -> None: ...
63 |
64 |
65 | class GripsDrawEventArgs(DrawEventArgs):
66 | @overload
67 | def DrawControlPolygonLine(self, line: Line, startStatus: GripStatus, endStatus: GripStatus) -> None: ...
68 | @overload
69 | def DrawControlPolygonLine(self, line: Line, startStatus: int, endStatus: int) -> None: ...
70 | @overload
71 | def DrawControlPolygonLine(self, start: Point3d, end: Point3d, startStatus: int, endStatus: int) -> None: ...
72 | @property
73 | def ControlPolygonStyle(self) -> int: ...
74 | @property
75 | def DrawDynamicStuff(self) -> bool: ...
76 | @property
77 | def DrawStaticStuff(self) -> bool: ...
78 | @property
79 | def GripColor(self) -> Color: ...
80 | @property
81 | def GripStatusCount(self) -> int: ...
82 | @property
83 | def LockedGripColor(self) -> Color: ...
84 | @property
85 | def SelectedGripColor(self) -> Color: ...
86 | def GripStatus(self, index: int) -> GripStatus: ...
87 | def RestoreViewportSettings(self) -> None: ...
88 | @ControlPolygonStyle.setter
89 | def ControlPolygonStyle(self, value: int) -> None: ...
90 | @GripColor.setter
91 | def GripColor(self, value: Color) -> None: ...
92 | @LockedGripColor.setter
93 | def LockedGripColor(self, value: Color) -> None: ...
94 | @SelectedGripColor.setter
95 | def SelectedGripColor(self, value: Color) -> None: ...
96 |
97 |
98 | class GripStatus:
99 | @property
100 | def Culled(self) -> bool: ...
101 | @property
102 | def Visible(self) -> bool: ...
103 | @Culled.setter
104 | def Culled(self, value: bool) -> None: ...
105 |
106 |
107 | class TurnOnGripsEventHandler:
108 | def __init__(self, object: Object, method: IntPtr): ...
109 | def BeginInvoke(self, rhObj: RhinoObject, callback: AsyncCallback, object: Object) -> IAsyncResult: ...
110 | def EndInvoke(self, result: IAsyncResult) -> None: ...
111 | def Invoke(self, rhObj: RhinoObject) -> None: ...
112 |
113 |
114 | class UnknownUserData(UserData):
115 | def __init__(self, pointerNativeUserData: IntPtr): ...
116 |
117 |
118 | class UserData:
119 | def Copy(source: CommonObject, destination: CommonObject) -> None: ...
120 | def Dispose(self) -> None: ...
121 | @property
122 | def Description(self) -> str: ...
123 | @property
124 | def ShouldWrite(self) -> bool: ...
125 | @property
126 | def Transform(self) -> Transform: ...
127 | def MoveUserDataFrom(objectWithUserData: CommonObject) -> Guid: ...
128 | def MoveUserDataTo(objectToGetUserData: CommonObject, id: Guid, append: bool) -> None: ...
129 |
130 |
131 | class UserDataList:
132 | def Add(self, userdata: UserData) -> bool: ...
133 | def Contains(self, userdataId: Guid) -> bool: ...
134 | def Find(self, userdataType: Type) -> UserData: ...
135 | @property
136 | def Count(self) -> int: ...
137 | @property
138 | def Item(self, index: int) -> UserData: ...
139 | def GetEnumerator(self) -> IEnumerator: ...
140 | def Purge(self) -> None: ...
141 | def Remove(self, userdata: UserData) -> bool: ...
142 |
143 |
144 | class UserDataListEnumerator:
145 | def __init__(self, udl: UserDataList): ...
146 | def Dispose(self) -> None: ...
147 | @property
148 | def Current(self) -> UserData: ...
149 | def MoveNext(self) -> bool: ...
150 | def Reset(self) -> None: ...
151 |
152 |
153 | class UserDictionary(UserData):
154 | def __init__(self): ...
155 | @property
156 | def Description(self) -> str: ...
157 | @property
158 | def Dictionary(self) -> ArchivableDictionary: ...
159 | @property
160 | def ShouldWrite(self) -> bool: ...
161 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/DocObjects/SnapShots/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class SnapShotsClient:
5 | def __init__(self): ...
6 | def AnimateDocument(self, doc: RhinoDoc, dPos: float, archive_start: BinaryArchiveReader, archive_stop: BinaryArchiveReader) -> bool: ...
7 | def AnimateObject(self, doc: RhinoDoc, doc_object: RhinoObject, transform: Transform, dPos: float, archive_start: BinaryArchiveReader, archive_stop: BinaryArchiveReader) -> Tuple[bool, Transform]: ...
8 | def AnimationStart(self, doc: RhinoDoc, iFrames: int) -> None: ...
9 | def AnimationStop(self, doc: RhinoDoc) -> bool: ...
10 | def ApplicationCategory() -> str: ...
11 | def Category(self) -> str: ...
12 | def ClientId(self) -> Guid: ...
13 | def Dispose(self) -> None: ...
14 | def DocumentCategory() -> str: ...
15 | def ExtendBoundingBoxForDocumentAnimation(self, doc: RhinoDoc, archive_start: BinaryArchiveReader, archive_stop: BinaryArchiveReader, bbox: BoundingBox) -> Tuple[BoundingBox]: ...
16 | def ExtendBoundingBoxForObjectAnimation(self, doc: RhinoDoc, doc_object: RhinoObject, transform: Transform, archive_start: BinaryArchiveReader, archive_stop: BinaryArchiveReader, bbox: BoundingBox) -> Tuple[Transform, BoundingBox]: ...
17 | @property
18 | def CppPointer(self) -> IntPtr: ...
19 | @property
20 | def SerialNumber(self) -> int: ...
21 | @overload
22 | def IsCurrentModelStateInAnySnapshot(self, doc: RhinoDoc, archive: BinaryArchiveReader, archive_array: SimpleArrayBinaryArchiveReader, text_log: TextLog) -> bool: ...
23 | @overload
24 | def IsCurrentModelStateInAnySnapshot(self, doc: RhinoDoc, doc_object: RhinoObject, archive: BinaryArchiveReader, archive_array: SimpleArrayBinaryArchiveReader, text_log: TextLog) -> bool: ...
25 | def LayersCategory() -> str: ...
26 | def LightsCategory() -> str: ...
27 | def Name(self) -> str: ...
28 | def ObjectsCategory() -> str: ...
29 | def ObjectTransformNotification(self, doc: RhinoDoc, doc_object: RhinoObject, transform: Transform, archive: BinaryArchiveReader) -> Tuple[bool, Transform]: ...
30 | def PlugInId(self) -> Guid: ...
31 | def PrepareForDocumentAnimation(self, doc: RhinoDoc, archive_start: BinaryArchiveReader, archive_stop: BinaryArchiveReader) -> bool: ...
32 | def PrepareForObjectAnimation(self, doc: RhinoDoc, doc_object: RhinoObject, transform: Transform, archive_start: BinaryArchiveReader, archive_stop: BinaryArchiveReader) -> Tuple[bool, Transform]: ...
33 | def RegisterSnapShotClient(client: SnapShotsClient) -> bool: ...
34 | def RenderingCategory() -> str: ...
35 | def RestoreDocument(self, doc: RhinoDoc, archive: BinaryArchiveReader) -> bool: ...
36 | def RestoreObject(self, doc: RhinoDoc, doc_object: RhinoObject, transform: Transform, archive: BinaryArchiveReader) -> Tuple[bool, Transform]: ...
37 | def SaveDocument(self, doc: RhinoDoc, archive: BinaryArchiveWriter) -> bool: ...
38 | def SaveObject(self, doc: RhinoDoc, doc_object: RhinoObject, transform: Transform, archive: BinaryArchiveWriter) -> Tuple[bool, Transform]: ...
39 | @SerialNumber.setter
40 | def SerialNumber(self, value: int) -> None: ...
41 | def SnapshotRestored(self, doc: RhinoDoc) -> None: ...
42 | def SupportsAnimation(self) -> bool: ...
43 | def SupportsDocument(self) -> bool: ...
44 | def SupportsObject(self, doc_object: RhinoObject) -> bool: ...
45 | def SupportsObjects(self) -> bool: ...
46 | def ViewsCategory() -> str: ...
47 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/Geometry/MeshRefinements/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class CreaseEdges:
5 | NakedFixed = 0
6 | NakedSmooth = 1
7 | CornerFixedOtherCreased = 2
8 | Auto = 3
9 |
10 |
11 | class LoopFormula:
12 | Loop = 0
13 | Warren = 1
14 | WarrenWeimer = 2
15 |
16 |
17 | class RefinementSettings:
18 | def __init__(self): ...
19 | @property
20 | def ContinueRequest(self) -> CancellationToken: ...
21 | @property
22 | def HasPull(self) -> bool: ...
23 | @property
24 | def Level(self) -> int: ...
25 | @property
26 | def NakedEdgeMode(self) -> CreaseEdges: ...
27 | @ContinueRequest.setter
28 | def ContinueRequest(self, value: CancellationToken) -> None: ...
29 | @Level.setter
30 | def Level(self, value: int) -> None: ...
31 | @NakedEdgeMode.setter
32 | def NakedEdgeMode(self, value: CreaseEdges) -> None: ...
33 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/Geometry/Morphs/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class BendSpaceMorph(SpaceMorph):
5 | @overload
6 | def __init__(self, start: Point3d, end: Point3d, point: Point3d, straight: bool, symmetric: bool): ...
7 | @overload
8 | def __init__(self, start: Point3d, end: Point3d, point: Point3d, angle: float, straight: bool, symmetric: bool): ...
9 | def Dispose(self) -> None: ...
10 | @property
11 | def IsValid(self) -> bool: ...
12 | def MorphPoint(self, point: Point3d) -> Point3d: ...
13 |
14 |
15 | class FlowSpaceMorph(SpaceMorph):
16 | @overload
17 | def __init__(self, curve0: Curve, curve1: Curve, preventStretching: bool): ...
18 | @overload
19 | def __init__(self, curve0: Curve, curve1: Curve, reverseCurve0: bool, reverseCurve1: bool, preventStretching: bool): ...
20 | def Dispose(self) -> None: ...
21 | @property
22 | def IsValid(self) -> bool: ...
23 | def MorphPoint(self, point: Point3d) -> Point3d: ...
24 |
25 |
26 | class MaelstromSpaceMorph(SpaceMorph):
27 | def __init__(self, plane: Plane, radius0: float, radius1: float, angle: float): ...
28 | def Dispose(self) -> None: ...
29 | @property
30 | def IsValid(self) -> bool: ...
31 | def MorphPoint(self, point: Point3d) -> Point3d: ...
32 |
33 |
34 | class SplopSpaceMorph(SpaceMorph):
35 | @overload
36 | def __init__(self, plane: Plane, surface: Surface, surfaceParam: Point2d): ...
37 | @overload
38 | def __init__(self, plane: Plane, surface: Surface, surfaceParam: Point2d, scale: float): ...
39 | @overload
40 | def __init__(self, plane: Plane, surface: Surface, surfaceParam: Point2d, scale: float, angle: float): ...
41 | def Dispose(self) -> None: ...
42 | @property
43 | def IsValid(self) -> bool: ...
44 | def MorphPoint(self, point: Point3d) -> Point3d: ...
45 |
46 |
47 | class SporphSpaceMorph(SpaceMorph):
48 | @overload
49 | def __init__(self, surface0: Surface, surface1: Surface): ...
50 | @overload
51 | def __init__(self, surface0: Surface, surface1: Surface, surface0Param: Point2d, surface1Param: Point2d): ...
52 | def Dispose(self) -> None: ...
53 | @property
54 | def IsValid(self) -> bool: ...
55 | def MorphPoint(self, point: Point3d) -> Point3d: ...
56 |
57 |
58 | class StretchSpaceMorph(SpaceMorph):
59 | @overload
60 | def __init__(self, start: Point3d, end: Point3d, point: Point3d): ...
61 | @overload
62 | def __init__(self, start: Point3d, end: Point3d, length: float): ...
63 | def Dispose(self) -> None: ...
64 | @property
65 | def IsValid(self) -> bool: ...
66 | def MorphPoint(self, point: Point3d) -> Point3d: ...
67 |
68 |
69 | class TaperSpaceMorph(SpaceMorph):
70 | def __init__(self, start: Point3d, end: Point3d, startRadius: float, endRadius: float, bFlat: bool, infiniteTaper: bool): ...
71 | def Dispose(self) -> None: ...
72 | @property
73 | def IsValid(self) -> bool: ...
74 | def MorphPoint(self, point: Point3d) -> Point3d: ...
75 |
76 |
77 | class TwistSpaceMorph(SpaceMorph):
78 | def __init__(self): ...
79 | def Dispose(self) -> None: ...
80 | @property
81 | def InfiniteTwist(self) -> bool: ...
82 | @property
83 | def TwistAngleRadians(self) -> float: ...
84 | @property
85 | def TwistAxis(self) -> Line: ...
86 | def MorphPoint(self, point: Point3d) -> Point3d: ...
87 | @InfiniteTwist.setter
88 | def InfiniteTwist(self, value: bool) -> None: ...
89 | @TwistAngleRadians.setter
90 | def TwistAngleRadians(self, value: float) -> None: ...
91 | @TwistAxis.setter
92 | def TwistAxis(self, value: Line) -> None: ...
93 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/NodeInCode/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class ComponentFunctionInfo:
5 | def Evaluate(self, args: IEnumerable, keepTree: bool) -> Tuple[Set(Object), Set(str)]: ...
6 | @property
7 | def ComponentGuid(self) -> Guid: ...
8 | @property
9 | def Delegate(self) -> Delegate: ...
10 | @property
11 | def DelegateNoWarnings(self) -> Delegate: ...
12 | @property
13 | def DelegateTree(self) -> Delegate: ...
14 | @property
15 | def DelegateTreeNoWarnings(self) -> Delegate: ...
16 | @property
17 | def Description(self) -> str: ...
18 | @property
19 | def FullName(self) -> str: ...
20 | @property
21 | def FullScriptingName(self) -> str: ...
22 | @property
23 | def InputDescriptions(self) -> IReadOnlyList: ...
24 | @property
25 | def InputNames(self) -> IReadOnlyList: ...
26 | @property
27 | def InputsOptional(self) -> IReadOnlyList: ...
28 | @property
29 | def InputTypeNames(self) -> IReadOnlyList: ...
30 | @property
31 | def IsDefault(self) -> bool: ...
32 | @property
33 | def Name(self) -> str: ...
34 | @property
35 | def Namespace(self) -> str: ...
36 | @property
37 | def OutputDescriptions(self) -> IReadOnlyList: ...
38 | @property
39 | def OutputNames(self) -> IReadOnlyList: ...
40 | @property
41 | def OutputTypeNames(self) -> IReadOnlyList: ...
42 | def Invoke(self, args: Set(Object)) -> Set(Object): ...
43 | def InvokeKeepTree(self, args: Set(Object)) -> Set(Object): ...
44 | def InvokeKeepTreeSilenceWarnings(self, args: Set(Object)) -> Set(Object): ...
45 | def InvokeSilenceWarnings(self, args: Set(Object)) -> Set(Object): ...
46 | def ToString(self) -> str: ...
47 |
48 |
49 | class Components:
50 | def FindComponent(fullName: str) -> ComponentFunctionInfo: ...
51 | @property
52 | def NodeInCodeFunctions() -> NodeInCodeTable: ...
53 |
54 |
55 | class NodeInCodeTable:
56 | def __init__(self, items: Iterable[ComponentFunctionInfo]): ...
57 | def Add(self, item: ComponentFunctionInfo) -> None: ...
58 | @property
59 | def Count(self) -> int: ...
60 | def GetDynamicMemberNames(self) -> Iterable[str]: ...
61 | def TryGetIndex(self, binder: GetIndexBinder, indexes: Set(Object)) -> Tuple[bool, Object]: ...
62 | def TryGetMember(self, binder: GetMemberBinder) -> Tuple[bool, Object]: ...
63 | def TryInvokeMember(self, binder: InvokeMemberBinder, args: Set(Object)) -> Tuple[bool, Object]: ...
64 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/Render/ChangeQueue/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class BakingFunctions:
5 | #None = 0
6 | Decals = 1
7 | ProceduralTextures = 2
8 | CustomObjectMappings = 4
9 | WcsBasedMappings = 8
10 | MultipleMappingChannels = 16
11 | NoRepeatTextures = 32
12 | All = 4294967295
13 |
14 |
15 | class ChangeQueue:
16 | def AreViewsEqual(self, aView: ViewInfo, bView: ViewInfo) -> bool: ...
17 | def ConvertCameraBasedLightToWorld(changequeue: ChangeQueue, light: Light, vp: ViewInfo) -> None: ...
18 | def CrcFromGuid(guid: Guid) -> UInt32: ...
19 | @overload
20 | def CreateWorld(self) -> None: ...
21 | @overload
22 | def CreateWorld(self, bFlushWhenReady: bool) -> None: ...
23 | def Dispose(self) -> None: ...
24 | def EnvironmentForid(self, crc: UInt32) -> RenderEnvironment: ...
25 | def EnvironmentIdForUsage(self, usage: Usage) -> UInt32: ...
26 | def Flush(self) -> None: ...
27 | @property
28 | def DisplayPipelineAttributes(self) -> DisplayPipelineAttributes: ...
29 | @property
30 | def IsPreview(self) -> bool: ...
31 | @property
32 | def ViewId(self) -> Guid: ...
33 | def GetQueueGroundPlane(self) -> GroundPlane: ...
34 | def GetQueueRenderSettings(self) -> RenderSettings: ...
35 | def GetQueueSceneBoundingBox(self) -> BoundingBox: ...
36 | def GetQueueSkylight(self) -> Skylight: ...
37 | def GetQueueSun(self) -> Light: ...
38 | def GetQueueView(self) -> ViewInfo: ...
39 | def MaterialFromId(self, crc: UInt32) -> RenderMaterial: ...
40 | def OneShot(self) -> None: ...
41 | def TextureForId(self, crc: UInt32) -> RenderTexture: ...
42 |
43 |
44 | class ClippingPlane:
45 | @property
46 | def Attributes(self) -> ObjectAttributes: ...
47 | @property
48 | def Id(self) -> Guid: ...
49 | @property
50 | def IsEnabled(self) -> bool: ...
51 | @property
52 | def Plane(self) -> Plane: ...
53 | @property
54 | def ViewIds(self) -> List: ...
55 |
56 |
57 | class DisplayRenderSettings:
58 | @property
59 | def CullBackFaces(self) -> bool: ...
60 | @property
61 | def ForceFlatShading(self) -> bool: ...
62 | @property
63 | def SceneLightingOn(self) -> bool: ...
64 |
65 |
66 | class DynamicObjectTransform:
67 | @property
68 | def MeshInstanceId(self) -> UInt32: ...
69 | @property
70 | def Transform(self) -> Transform: ...
71 | def ToString(self) -> str: ...
72 |
73 |
74 | class Environment:
75 | pass
76 |
77 |
78 | class Event:
79 | Added = 0
80 | Deleted = 1
81 | Undeleted = 2
82 | Modified = 3
83 | Sorted = 4
84 |
85 |
86 | class FrameBufferFillMode:
87 | #None = 0
88 | DefaultColor = 1
89 | SolidColor = 2
90 | Gradient2Color = 3
91 | Gradient4Color = 4
92 | Bitmap = 5
93 | Renderer = 6
94 | Transparent = 7
95 | Force32Bit = 4294967295
96 |
97 |
98 | class GroundPlane:
99 | @property
100 | def Altitude(self) -> float: ...
101 | @property
102 | def Crc(self) -> UInt32: ...
103 | @property
104 | def Enabled(self) -> bool: ...
105 | @property
106 | def IsShadowOnly(self) -> bool: ...
107 | @property
108 | def MaterialId(self) -> UInt32: ...
109 | @property
110 | def TextureOffset(self) -> Vector2d: ...
111 | @property
112 | def TextureRotation(self) -> float: ...
113 | @property
114 | def TextureScale(self) -> Vector2d: ...
115 |
116 |
117 | class Light:
118 | @property
119 | def ChangeType(self) -> Event: ...
120 | @property
121 | def Data(self) -> Light: ...
122 | @property
123 | def Id(self) -> Guid: ...
124 | @property
125 | def IdCrc(self) -> UInt32: ...
126 |
127 |
128 | class MappingChannel:
129 | @property
130 | def Local(self) -> Transform: ...
131 | @property
132 | def Mapping(self) -> TextureMapping: ...
133 |
134 |
135 | class MappingChannelCollection:
136 | @property
137 | def Channels(self) -> Iterable[MappingChannel]: ...
138 | @property
139 | def Count(self) -> int: ...
140 | @property
141 | def Item(self, i: int) -> MappingChannel: ...
142 |
143 |
144 | class Material:
145 | @property
146 | def Id(self) -> UInt32: ...
147 | @property
148 | def MeshIndex(self) -> int: ...
149 | @property
150 | def MeshInstanceId(self) -> UInt32: ...
151 |
152 |
153 | class Mesh:
154 | @property
155 | def Attributes(self) -> ObjectAttributes: ...
156 | @property
157 | def Mapping(self) -> MappingChannelCollection: ...
158 | @property
159 | def Object(self) -> RhinoObject: ...
160 | @property
161 | def SingleMapping(self) -> MappingChannel: ...
162 | def GetMeshes(self) -> Set(Mesh): ...
163 | def Id(self) -> Guid: ...
164 |
165 |
166 | class MeshInstance:
167 | @property
168 | def CastShadows(self) -> bool: ...
169 | @property
170 | def Decals(self) -> Decals: ...
171 | @property
172 | def GroupId(self) -> UInt32: ...
173 | @property
174 | def InstanceId(self) -> UInt32: ...
175 | @property
176 | def MaterialId(self) -> UInt32: ...
177 | @property
178 | def MeshId(self) -> Guid: ...
179 | @property
180 | def MeshIndex(self) -> int: ...
181 | @property
182 | def OcsTransform(self) -> Transform: ...
183 | @property
184 | def ParentId(self) -> Guid: ...
185 | @property
186 | def ReceiveShadows(self) -> bool: ...
187 | @property
188 | def RenderMaterial(self) -> RenderMaterial: ...
189 | @property
190 | def RootId(self) -> Guid: ...
191 | @property
192 | def Transform(self) -> Transform: ...
193 |
194 |
195 | class Skylight:
196 | @property
197 | def Enabled(self) -> bool: ...
198 | @property
199 | def ShadowIntensity(self) -> float: ...
200 | @property
201 | def UsesCustomEnvironment(self) -> bool: ...
202 | def ToString(self) -> str: ...
203 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/Render/ChildSlotNames/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class PhysicallyBased:
5 | def FromTextureType(textureType: TextureType) -> str: ...
6 | @property
7 | def Alpha() -> str: ...
8 | @property
9 | def AmbientOcclusion() -> str: ...
10 | @property
11 | def Anisotropic() -> str: ...
12 | @property
13 | def AnisotropicRotation() -> str: ...
14 | @property
15 | def BaseColor() -> str: ...
16 | @property
17 | def Bump() -> str: ...
18 | @property
19 | def Clearcoat() -> str: ...
20 | @property
21 | def ClearcoatBump() -> str: ...
22 | @property
23 | def ClearcoatRoughness() -> str: ...
24 | @property
25 | def Displacement() -> str: ...
26 | @property
27 | def Emission() -> str: ...
28 | @property
29 | def Metallic() -> str: ...
30 | @property
31 | def Opacity() -> str: ...
32 | @property
33 | def OpacityIor() -> str: ...
34 | @property
35 | def OpacityRoughness() -> str: ...
36 | @property
37 | def Roughness() -> str: ...
38 | @property
39 | def Sheen() -> str: ...
40 | @property
41 | def SheenTint() -> str: ...
42 | @property
43 | def Specular() -> str: ...
44 | @property
45 | def SpecularTint() -> str: ...
46 | @property
47 | def Subsurface() -> str: ...
48 | @property
49 | def SubsurfaceScatteringColor() -> str: ...
50 | @property
51 | def SubsurfaceScatteringRadius() -> str: ...
52 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/Render/DataSources/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class AssignBys:
5 | Unset = 0
6 | Layer = 1
7 | Parent = 2
8 | Object = 3
9 | Varies = 4
10 | PlugIn = 5
11 |
12 |
13 | class ContentFactories:
14 | def __init__(self, pRdkContentFactories: IntPtr): ...
15 | def Dispose(self) -> None: ...
16 | def FindFactory(self, uuid: Guid) -> ContentFactory: ...
17 | def FirstFactory(self) -> ContentFactory: ...
18 | @property
19 | def CppPointer(self) -> IntPtr: ...
20 | def NextFactory(self) -> ContentFactory: ...
21 |
22 |
23 | class ContentFactory:
24 | def __init__(self, pRdkContentFactory: IntPtr): ...
25 | def ContentTypeId(self) -> Guid: ...
26 | def Dispose(self) -> None: ...
27 | @property
28 | def CppPointer(self) -> IntPtr: ...
29 | def Kind(self) -> RenderContentKind: ...
30 | def NewContent(self) -> RenderContent: ...
31 |
32 |
33 | class MetaData:
34 | def __init__(self, pMetaData: IntPtr): ...
35 | def ContentInstanceId(self) -> Guid: ...
36 | def Dispose(self) -> None: ...
37 | def Geometry(self) -> str: ...
38 | @property
39 | def CppPointer(self) -> IntPtr: ...
40 |
41 |
42 | class Modes:
43 | Unset = 0
44 | Grid = 1
45 | List = 2
46 | Tree = 3
47 |
48 |
49 | class RdkEdit:
50 | def __init__(self, pRdkEdit: IntPtr): ...
51 | def Dispose(self) -> None: ...
52 | def Execute(self, collection: RenderContentCollection) -> bool: ...
53 | @property
54 | def CppPointer(self) -> IntPtr: ...
55 |
56 |
57 | class RdkSelectionNavigator:
58 | def __init__(self, pRhinoSettings: IntPtr): ...
59 | def Add(self, selectedContentArray: RenderContentCollection) -> None: ...
60 | def CanGoBackwards(self) -> bool: ...
61 | def CanGoForwards(self) -> bool: ...
62 | def Clear(self) -> None: ...
63 | def Dispose(self) -> None: ...
64 | @property
65 | def CppPointer(self) -> IntPtr: ...
66 | def GoBackwards(self, selectedContentArray: RenderContentCollection) -> Tuple[bool, RenderContentCollection]: ...
67 | def GoForwards(self, selectedContentArray: RenderContentCollection) -> Tuple[bool, RenderContentCollection]: ...
68 |
69 |
70 | class RhinoSettings:
71 | def __init__(self, pRhinoSettings: IntPtr): ...
72 | def ActiveView(self) -> RhinoView: ...
73 | def Dispose(self) -> None: ...
74 | @property
75 | def CppPointer(self) -> IntPtr: ...
76 | @property
77 | def CustomImageSizeIsPreset(self) -> bool: ...
78 | def GetCustomRenderSizes(self) -> List: ...
79 | def GetRenderSettings(self) -> RenderSettings: ...
80 | def GroundPlaneOnInViewDisplayMode(self, view: RhinoView) -> bool: ...
81 | def RenderingView(self) -> ViewInfo: ...
82 | @CustomImageSizeIsPreset.setter
83 | def CustomImageSizeIsPreset(self, value: bool) -> None: ...
84 | def SetGroundPlaneOnInViewDisplayMode(self, view: RhinoView, bOn: bool) -> None: ...
85 | def SetRenderSettings(self, renderSettings: RenderSettings) -> None: ...
86 | def ViewSupportsShading(self, view: RhinoView) -> bool: ...
87 |
88 |
89 | class Shapes:
90 | Square = 0
91 | Wide = 1
92 |
93 |
94 | class Sizes:
95 | Unset = 0
96 | Tiny = 1
97 | Small = 2
98 | Medium = 3
99 | Large = 4
100 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/Render/ParameterNames/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class PhysicallyBased:
5 | @property
6 | def Alpha() -> str: ...
7 | @property
8 | def AmbientOcclusion() -> str: ...
9 | @property
10 | def Anisotropic() -> str: ...
11 | @property
12 | def AnisotropicRotation() -> str: ...
13 | @property
14 | def BaseColor() -> str: ...
15 | @property
16 | def BRDF() -> str: ...
17 | @property
18 | def Bump() -> str: ...
19 | @property
20 | def Clearcoat() -> str: ...
21 | @property
22 | def ClearcoatBump() -> str: ...
23 | @property
24 | def ClearcoatRoughness() -> str: ...
25 | @property
26 | def Displacement() -> str: ...
27 | @property
28 | def Emission() -> str: ...
29 | @property
30 | def Metallic() -> str: ...
31 | @property
32 | def Opacity() -> str: ...
33 | @property
34 | def OpacityIor() -> str: ...
35 | @property
36 | def OpacityRoughness() -> str: ...
37 | @property
38 | def Roughness() -> str: ...
39 | @property
40 | def Sheen() -> str: ...
41 | @property
42 | def SheenTint() -> str: ...
43 | @property
44 | def Specular() -> str: ...
45 | @property
46 | def SpecularTint() -> str: ...
47 | @property
48 | def Subsurface() -> str: ...
49 | @property
50 | def SubsurfaceScatteringColor() -> str: ...
51 | @property
52 | def SubsurfaceScatteringRadius() -> str: ...
53 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/Render/PostEffects/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class CustomPostEffectAttribute:
5 | def __init__(self, postEffectType: PostEffectType, name: str, styles: PostEffectStyles, executeWhileRenderingOption: PostEffectExecuteWhileRenderingOptions, canDisplayHelp: bool, executeWhileRenderingDelay: int): ...
6 | @property
7 | def CanDisplayHelp(self) -> bool: ...
8 | @property
9 | def ExecuteWhileRenderingDelay(self) -> int: ...
10 | @property
11 | def ExecuteWhileRenderingOption(self) -> PostEffectExecuteWhileRenderingOptions: ...
12 | @property
13 | def Name(self) -> str: ...
14 | @property
15 | def PostEffectType(self) -> PostEffectType: ...
16 | @property
17 | def Styles(self) -> PostEffectStyles: ...
18 | @CanDisplayHelp.setter
19 | def CanDisplayHelp(self, value: bool) -> None: ...
20 | @ExecuteWhileRenderingDelay.setter
21 | def ExecuteWhileRenderingDelay(self, value: int) -> None: ...
22 | @ExecuteWhileRenderingOption.setter
23 | def ExecuteWhileRenderingOption(self, value: PostEffectExecuteWhileRenderingOptions) -> None: ...
24 | @Name.setter
25 | def Name(self, value: str) -> None: ...
26 | @PostEffectType.setter
27 | def PostEffectType(self, value: PostEffectType) -> None: ...
28 | @Styles.setter
29 | def Styles(self, value: PostEffectStyles) -> None: ...
30 |
31 |
32 | class IPostEffects:
33 | def GetPostEffects(self, type: PostEffectType) -> Set(PostEffect): ...
34 | def PostEffectFromId(self, uuid: Guid) -> PostEffect: ...
35 |
36 |
37 | class PostEffect:
38 | def __init__(self): ...
39 | def AddUISections(self, ui: PostEffectUI) -> None: ...
40 | def BeginChange(self, changeContext: ChangeContexts) -> None: ...
41 | def CanExecute(self, pipeline: PostEffectPipeline) -> bool: ...
42 | def Changed(self) -> None: ...
43 | def DisplayHelp(self) -> bool: ...
44 | @overload
45 | def Dispose(self) -> None: ...
46 | @overload
47 | def Dispose(self, bDisposing: bool) -> None: ...
48 | def EndChange(self) -> bool: ...
49 | def Execute(self, pipeline: PostEffectPipeline, rect: Rectangle) -> bool: ...
50 | @property
51 | def CanDisplayHelp(self) -> bool: ...
52 | @property
53 | def ExecuteWhileRenderingOption(self) -> PostEffectExecuteWhileRenderingOptions: ...
54 | @property
55 | def Id(self) -> Guid: ...
56 | @property
57 | def IsSelected(self) -> bool: ...
58 | @property
59 | def LocalName(self) -> str: ...
60 | @property
61 | def On(self) -> bool: ...
62 | @property
63 | def PostEffectType(self) -> PostEffectType: ...
64 | @property
65 | def RequiredChannels(self) -> Set(Guid): ...
66 | @property
67 | def SerialNumber(self) -> int: ...
68 | @property
69 | def Shown(self) -> bool: ...
70 | @property
71 | def Styles(self) -> PostEffectStyles: ...
72 | def GetHashCode(self) -> int: ...
73 | def GetParam(self, param: str, v: Object) -> Tuple[bool, Object]: ...
74 | def ReadFromDocumentDefaults(self, doc: RhinoDoc) -> bool: ...
75 | def ReadState(self, state: PostEffectState) -> bool: ...
76 | @overload
77 | def RegisterPostEffect(plugin: PlugIn) -> Set(Type): ...
78 | @overload
79 | def RegisterPostEffect(assembly: Assembly, pluginId: Guid) -> Set(Type): ...
80 | def ResetToFactoryDefaults(self) -> None: ...
81 | @On.setter
82 | def On(self, value: bool) -> None: ...
83 | @SerialNumber.setter
84 | def SerialNumber(self, value: int) -> None: ...
85 | @Shown.setter
86 | def Shown(self, value: bool) -> None: ...
87 | def SetParam(self, param: str, v: Object) -> bool: ...
88 | def WriteState(self, state: PostEffectState) -> Tuple[bool, PostEffectState]: ...
89 | def WriteToDocumentDefaults(self, doc: RhinoDoc) -> bool: ...
90 |
91 |
92 | class PostEffectChannel:
93 | def Clone(self) -> PostEffectChannel: ...
94 | def Commit(self) -> None: ...
95 | def CPU(self) -> Channel: ...
96 | def Dispose(self) -> None: ...
97 | @property
98 | def Id(self) -> Guid: ...
99 | @property
100 | def PixelSize(self) -> int: ...
101 | def GPU(self) -> ChannelGPU: ...
102 |
103 |
104 | class PostEffectExecuteContexts:
105 | ProductionRendering = 0
106 | RealtimeRendering = 1
107 | ViewportDisplay = 2
108 | ThumbnailCreation = 3
109 | ConvertingToHDR = 4
110 |
111 |
112 | class PostEffectExecuteWhileRenderingOptions:
113 | #None = 0
114 | Always = 1
115 | UseDelay = 2
116 |
117 |
118 | class PostEffectHistograms:
119 | #None = 0
120 | BeforeEarlyEffects = 1
121 | BeforeToneMapping = 2
122 | AfterEarlyEffects = 2
123 | AfterToneMapping = 4
124 | BeforeLateEffects = 4
125 | ToneMappingDisplay = 6
126 | AfterLateEffects = 8
127 | All = 15
128 |
129 |
130 | class PostEffectJob:
131 | def __init__(self): ...
132 | def Clone(self) -> PostEffectJob: ...
133 | @overload
134 | def Dispose(self) -> None: ...
135 | @overload
136 | def Dispose(self, bDisposing: bool) -> None: ...
137 | def Execute(self, rect: Rectangle, access: PostEffectJobChannels) -> bool: ...
138 |
139 |
140 | class PostEffectJobChannels:
141 | def Dispose(self) -> None: ...
142 | def GetChannel(self, channelId: Guid) -> PostEffectChannel: ...
143 |
144 |
145 | class PostEffectPipeline:
146 | def Dimensions(self) -> Size: ...
147 | def Dispose(self) -> None: ...
148 | def Execute(self, p: Rectangle, renderingInProgress: bool, usageContexts: PostEffectExecuteContexts, histogramsToUpdate: PostEffectHistograms) -> bool: ...
149 | def ExecutionOrder(self) -> Set(Guid): ...
150 | @property
151 | def GPUAllowed(self) -> bool: ...
152 | @property
153 | def IsRendering(self) -> bool: ...
154 | @property
155 | def RenderingId(self) -> Guid: ...
156 | def GetChannelForRead(self, id: Guid) -> PostEffectChannel: ...
157 | def GetChannelForWrite(self, id: Guid) -> PostEffectChannel: ...
158 | def GetEndTimeInMilliseconds(self) -> UInt64: ...
159 | def GetMaxLuminance(self) -> Single: ...
160 | def GetStartTimeInMilliseconds(self) -> UInt64: ...
161 | def SetStartTimeInMilliseconds(self, ms: UInt64) -> None: ...
162 | def ThreadEngine(self) -> PostEffectThreadEngine: ...
163 |
164 |
165 | class PostEffectState:
166 | def Dispose(self) -> None: ...
167 | def SetValue(self, name: str, vValue: T) -> bool: ...
168 | def TryGetValue(self, name: str) -> Tuple[bool, T]: ...
169 |
170 |
171 | class PostEffectStyles:
172 | ExecuteForProductionRendering = 1
173 | ExecuteForRealtimeRendering = 2
174 | ExecuteForViewportDisplay = 4
175 | Fixed = 256
176 | DefaultShown = 512
177 | DefaultOn = 1024
178 |
179 |
180 | class PostEffectThreadEngine:
181 | def Dispose(self) -> None: ...
182 | def RunPostEffect(self, job: PostEffectJob, pipeline: PostEffectPipeline, plugin: PostEffect, rect: Rectangle, channels: Set(Guid)) -> bool: ...
183 |
184 |
185 | class PostEffectType:
186 | Early = 0
187 | ToneMapping = 1
188 | Late = 2
189 |
190 |
191 | class PostEffectUI:
192 | def AddSection(self, section: ICollapsibleSection) -> None: ...
193 | def Dispose(self) -> None: ...
194 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/Render/UI/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class WorldMapDayNight:
5 | def __init__(self): ...
6 | def Dispose(self) -> None: ...
7 | def HasMapForCurrentSettings(self) -> bool: ...
8 | def LocationToMap(self, latlong: Point2d) -> Point: ...
9 | def MakeMapBitmap(self) -> None: ...
10 | def Map(self) -> Image: ...
11 | def MapToLocation(self, mapPoint: Point) -> Point2d: ...
12 | def SetDayNightDisplay(self, bOn: bool) -> None: ...
13 | def SetEnabled(self, bEnabled: bool) -> None: ...
14 | def SetTimeInfo(self, dt: DateTime, timezone: float, daylightSavingMinutes: int, bDaylightSavingsOn: bool) -> None: ...
15 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/Runtime/InProcess/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class RhinoCore:
5 | @overload
6 | def __init__(self): ...
7 | @overload
8 | def __init__(self, args: Set(str)): ...
9 | @overload
10 | def __init__(self, args: Set(str), windowStyle: WindowStyle): ...
11 | @overload
12 | def __init__(self, args: Set(str), windowStyle: WindowStyle, hostWnd: IntPtr): ...
13 | def Dispose(self) -> None: ...
14 | def DoEvents(self) -> bool: ...
15 | def DoIdle(self) -> bool: ...
16 | @overload
17 | def InvokeInHostContext(self, action: Action) -> None: ...
18 | @overload
19 | def InvokeInHostContext(self, func: Func) -> T: ...
20 | def RaiseIdle(self) -> None: ...
21 | def Run(self) -> int: ...
22 |
23 |
24 | class WindowStyle:
25 | Normal = 0
26 | Hidden = 1
27 | Minimized = 2
28 | Maximized = 3
29 | NoWindow = -1
30 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/Runtime/Notifications/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class ButtonType:
5 | CancelOrClose = 0
6 | Confirm = 1
7 | Alternate = 2
8 |
9 |
10 | class IAssemblyRestrictedObject:
11 | def Editable(self) -> bool: ...
12 |
13 |
14 | class Notification:
15 | @overload
16 | def __init__(self): ...
17 | @overload
18 | def __init__(self, allowedAssemblies: Iterable[Assembly]): ...
19 | def add_PropertyChanged(self, value: PropertyChangedEventHandler) -> None: ...
20 | def Editable(self) -> bool: ...
21 | @overload
22 | def ExecuteAssemblyProtectedCode(action: Action) -> None: ...
23 | @overload
24 | def ExecuteAssemblyProtectedCode(func: Func) -> TResult: ...
25 | @property
26 | def AllowedAssemblies(self) -> ICollection: ...
27 | @property
28 | def AlternateButtonTitle(self) -> str: ...
29 | @property
30 | def ButtonClicked(self) -> Action: ...
31 | @property
32 | def CancelButtonTitle(self) -> str: ...
33 | @property
34 | def ConfirmButtonTitle(self) -> str: ...
35 | @property
36 | def DateUpdated(self) -> DateTime: ...
37 | @property
38 | def Description(self) -> str: ...
39 | @property
40 | def Item(self, key: str) -> str: ...
41 | @property
42 | def Message(self) -> str: ...
43 | @property
44 | def MetadataCopy(self) -> IDictionary: ...
45 | @property
46 | def SeverityLevel(self) -> Severity: ...
47 | @property
48 | def ShowEventId(self) -> Nullable: ...
49 | @property
50 | def Title(self) -> str: ...
51 | def HideModal(self) -> None: ...
52 | def remove_PropertyChanged(self, value: PropertyChangedEventHandler) -> None: ...
53 | def RemoveMetadata(self, key: str) -> bool: ...
54 | @AlternateButtonTitle.setter
55 | def AlternateButtonTitle(self, value: str) -> None: ...
56 | @ButtonClicked.setter
57 | def ButtonClicked(self, value: Action) -> None: ...
58 | @CancelButtonTitle.setter
59 | def CancelButtonTitle(self, value: str) -> None: ...
60 | @ConfirmButtonTitle.setter
61 | def ConfirmButtonTitle(self, value: str) -> None: ...
62 | @Description.setter
63 | def Description(self, value: str) -> None: ...
64 | @Item.setter
65 | def Item(self, key: str, value: str) -> None: ...
66 | @Message.setter
67 | def Message(self, value: str) -> None: ...
68 | @SeverityLevel.setter
69 | def SeverityLevel(self, value: Severity) -> None: ...
70 | @Title.setter
71 | def Title(self, value: str) -> None: ...
72 | def ShowModal(self) -> None: ...
73 | def ToString(self) -> str: ...
74 |
75 |
76 | class NotificationButtonClickedArgs:
77 | def __init__(self, notification: Notification, buttonClicked: ButtonType): ...
78 | @property
79 | def ButtonClicked(self) -> ButtonType: ...
80 | @property
81 | def Notification(self) -> Notification: ...
82 |
83 |
84 | class NotificationCenter:
85 | pass
86 |
87 |
88 | class Severity:
89 | Debug = 0
90 | Info = 1
91 | Warning = 2
92 | Serious = 3
93 | Critical = 4
94 |
95 |
96 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/Runtime/RhinoAccounts/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class IOAuth2Token:
5 | @property
6 | def Exp(self) -> Nullable: ...
7 | @property
8 | def IsExpired(self) -> bool: ...
9 | @property
10 | def RawToken(self) -> str: ...
11 | @property
12 | def Scope(self) -> IReadOnlyCollection: ...
13 |
14 |
15 | class IOpenIDConnectToken:
16 | @property
17 | def AdminGroups(self) -> IReadOnlyDictionary: ...
18 | @property
19 | def AllGroups(self) -> IReadOnlyDictionary: ...
20 | @property
21 | def AtHash(self) -> str: ...
22 | @property
23 | def Aud(self) -> str: ...
24 | @property
25 | def AuthTime(self) -> Nullable: ...
26 | @property
27 | def Emails(self) -> IReadOnlyCollection: ...
28 | @property
29 | def EmailVerified(self) -> Nullable: ...
30 | @property
31 | def Exp(self) -> Nullable: ...
32 | @property
33 | def Iat(self) -> Nullable: ...
34 | @property
35 | def IsExpired(self) -> bool: ...
36 | @property
37 | def Iss(self) -> str: ...
38 | @property
39 | def IsUpdated(self) -> bool: ...
40 | @property
41 | def Locale(self) -> str: ...
42 | @property
43 | def MemberGroups(self) -> IReadOnlyDictionary: ...
44 | @property
45 | def Name(self) -> str: ...
46 | @property
47 | def Nonce(self) -> str: ...
48 | @property
49 | def OwnerGroups(self) -> IReadOnlyDictionary: ...
50 | @property
51 | def Phone(self) -> str: ...
52 | @property
53 | def Picture(self) -> str: ...
54 | @property
55 | def RawToken(self) -> str: ...
56 | @property
57 | def Sub(self) -> str: ...
58 | @property
59 | def UpdatedAt(self) -> Nullable: ...
60 |
61 |
62 | class IRhinoAccountsManager:
63 | def ExecuteProtectedCode(self, protectedCode: Action) -> None: ...
64 | def ExecuteProtectedCodeAsync(self, protectedCode: Func) -> Task: ...
65 | @overload
66 | def GetAuthTokensAsync(self, clientId: str, clientSecret: str, secretKey: SecretKey, cancellationToken: CancellationToken) -> Task: ...
67 | @overload
68 | def GetAuthTokensAsync(self, clientId: str, clientSecret: str, scope: Iterable[str], prompt: str, maxAge: Nullable, showUI: bool, progress: IProgress, secretKey: SecretKey, cancellationToken: CancellationToken) -> Task: ...
69 | def RevokeAuthTokenAsync(self, oauth2Token: IOAuth2Token, secretKey: SecretKey, cancellationToken: CancellationToken) -> Task: ...
70 | @overload
71 | def TryGetAuthTokens(self, clientId: str, secretKey: SecretKey) -> Tuple: ...
72 | @overload
73 | def TryGetAuthTokens(self, clientId: str, scope: Iterable[str], secretKey: SecretKey) -> Tuple: ...
74 | def UpdateOpenIDConnectTokenAsync(self, currentToken: IOpenIDConnectToken, oauth2Token: IOAuth2Token, secretKey: SecretKey, cancellationToken: CancellationToken) -> Task: ...
75 |
76 |
77 | class ProgressState:
78 | AwaitingLogin = 0
79 | RetrievingTokens = 1
80 | AwaitingRedirect = 2
81 | Other = 3
82 |
83 |
84 | class RhinoAccoountsProgressInfo:
85 | def __init__(self, state: ProgressState, metadata: Dictionary, customDescription: str): ...
86 | @property
87 | def Description(self) -> str: ...
88 | @property
89 | def Metadata(self) -> Dictionary: ...
90 | @property
91 | def State(self) -> ProgressState: ...
92 |
93 |
94 | class RhinoAccountsAuthTokenMismatchException(RhinoAccountsException):
95 | @overload
96 | def __init__(self, innerException: Exception): ...
97 | @overload
98 | def __init__(self, message: str, innerException: Exception): ...
99 | @overload
100 | def __init__(self, currentUsername: str, newUsername: str, innerException: Exception): ...
101 |
102 |
103 | class RhinoAccountsCannotListenException(RhinoAccountsException):
104 | @overload
105 | def __init__(self, innerException: Exception): ...
106 | @overload
107 | def __init__(self, message: str, innerException: Exception): ...
108 |
109 |
110 | class RhinoAccountsException:
111 | @overload
112 | def __init__(self, innerException: Exception): ...
113 | @overload
114 | def __init__(self, message: str, innerException: Exception): ...
115 |
116 |
117 | class RhinoAccountsGroup:
118 | def __init__(self, id: str, name: str): ...
119 | @property
120 | def Id(self) -> str: ...
121 | @property
122 | def Name(self) -> str: ...
123 |
124 |
125 | class RhinoAccountsInvalidResponseException(RhinoAccountsException):
126 | @overload
127 | def __init__(self, innerException: Exception): ...
128 | @overload
129 | def __init__(self, message: str, innerException: Exception): ...
130 |
131 |
132 | class RhinoAccountsInvalidStateException(RhinoAccountsException):
133 | @overload
134 | def __init__(self, innerException: Exception): ...
135 | @overload
136 | def __init__(self, message: str, innerException: Exception): ...
137 |
138 |
139 | class RhinoAccountsInvalidTokenException(RhinoAccountsException):
140 | @overload
141 | def __init__(self, innerException: Exception): ...
142 | @overload
143 | def __init__(self, message: str, innerException: Exception): ...
144 |
145 |
146 | class RhinoAccountsManager:
147 | def ExecuteProtectedCode(protectedCode: Action) -> None: ...
148 | def ExecuteProtectedCodeAsync(protectedCode: Func) -> Task: ...
149 | @overload
150 | def GetAuthTokensAsync(clientId: str, clientSecret: str, secretKey: SecretKey, cancellationToken: CancellationToken) -> Task: ...
151 | @overload
152 | def GetAuthTokensAsync(clientId: str, clientSecret: str, scope: Iterable[str], prompt: str, maxAge: Nullable, showUI: bool, progress: IProgress, secretKey: SecretKey, cancellationToken: CancellationToken) -> Task: ...
153 | def RevokeAuthTokenAsync(oauth2Token: IOAuth2Token, secretKey: SecretKey, cancellationToken: CancellationToken) -> Task: ...
154 | @overload
155 | def TryGetAuthTokens(clientId: str, secretKey: SecretKey) -> Tuple: ...
156 | @overload
157 | def TryGetAuthTokens(clientId: str, scope: Iterable[str], secretKey: SecretKey) -> Tuple: ...
158 | def UpdateOpenIDConnectTokenAsync(currentToken: IOpenIDConnectToken, oauth2Token: IOAuth2Token, secretKey: SecretKey, cancellationToken: CancellationToken) -> Task: ...
159 |
160 |
161 | class RhinoAccountsOperationInProgressException(RhinoAccountsException):
162 | @overload
163 | def __init__(self, message: str, innerException: Exception): ...
164 | @overload
165 | def __init__(self, assembly: Assembly, innerException: Exception): ...
166 |
167 |
168 | class RhinoAccountsProxyException(RhinoAccountsException):
169 | @overload
170 | def __init__(self, innerException: Exception): ...
171 | @overload
172 | def __init__(self, message: str, innerException: Exception): ...
173 |
174 |
175 | class RhinoAccountsServerException(RhinoAccountsException):
176 | @overload
177 | def __init__(self, innerException: Exception): ...
178 | @overload
179 | def __init__(self, message: str, innerException: Exception): ...
180 |
181 |
182 | class RhinoAccountsServerNotReachableException(RhinoAccountsException):
183 | @overload
184 | def __init__(self, innerException: Exception): ...
185 | @overload
186 | def __init__(self, message: str, innerException: Exception): ...
187 |
188 |
189 | class SecretKey:
190 | def __init__(self): ...
191 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/UI/Controls/DataSource/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class EventArgs:
5 | @property
6 | def DataType(self) -> Guid: ...
7 |
8 |
9 | class EventInfoArgs:
10 | @property
11 | def DataType(self) -> Guid: ...
12 | @property
13 | def EventInfoPtr(self) -> IntPtr: ...
14 |
15 |
16 | class ProviderIds:
17 | def __init__(self): ...
18 | @property
19 | def ContentChildSlot() -> Guid: ...
20 | @property
21 | def ContentDatabase() -> Guid: ...
22 | @property
23 | def ContentDisplayCollection() -> Guid: ...
24 | @property
25 | def ContentEditorSettings() -> Guid: ...
26 | @property
27 | def ContentLookup() -> Guid: ...
28 | @property
29 | def ContentParam() -> Guid: ...
30 | @property
31 | def ContentPreviewRendered() -> Guid: ...
32 | @property
33 | def ContentSelection() -> Guid: ...
34 | @property
35 | def ContentSelectionForSetParams() -> Guid: ...
36 | @property
37 | def ContentUIs() -> Guid: ...
38 | @property
39 | def ContentUpdatePreviewMarkersEventInfo() -> Guid: ...
40 | @property
41 | def CurrentEnvironment() -> Guid: ...
42 | @property
43 | def Decals() -> Guid: ...
44 | @property
45 | def Dithering() -> Guid: ...
46 | @property
47 | def GroundPlane() -> Guid: ...
48 | @property
49 | def ImageFileInfo() -> Guid: ...
50 | @property
51 | def LinearWorkflow() -> Guid: ...
52 | @property
53 | def NamedItem() -> Guid: ...
54 | @property
55 | def NewContentControlAssignBy() -> Guid: ...
56 | @property
57 | def NullGuid() -> Guid: ...
58 | @property
59 | def PreviewSettings() -> Guid: ...
60 | @property
61 | def RdkEdit() -> Guid: ...
62 | @property
63 | def RdkRendering() -> Guid: ...
64 | @property
65 | def RdkRenderingGamma() -> Guid: ...
66 | @property
67 | def RdkRenderingPostEffectBloom() -> Guid: ...
68 | @property
69 | def RdkRenderingPostEffectDOF() -> Guid: ...
70 | @property
71 | def RdkRenderingPostEffectFog() -> Guid: ...
72 | @property
73 | def RdkRenderingPostEffectGlare() -> Guid: ...
74 | @property
75 | def RdkRenderingPostEffectGlow() -> Guid: ...
76 | @property
77 | def RdkRenderingPostEffects() -> Guid: ...
78 | @property
79 | def RdkRenderingProgress() -> Guid: ...
80 | @property
81 | def RdkRenderingToneMapping() -> Guid: ...
82 | @property
83 | def RenderChannels() -> Guid: ...
84 | @property
85 | def RhinoSettings() -> Guid: ...
86 | @property
87 | def SelectionNavigator() -> Guid: ...
88 | @property
89 | def Skylight() -> Guid: ...
90 | @property
91 | def Sun() -> Guid: ...
92 | @property
93 | def Undo() -> Guid: ...
94 | @property
95 | def UndoRecord() -> Guid: ...
96 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/UI/Controls/ThumbnailUI/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
--------------------------------------------------------------------------------
/stubs/Rhino/Rhino-stubs/UI/Gumball/__init__.pyi:
--------------------------------------------------------------------------------
1 | from typing import Tuple, Set, Iterable, List, overload
2 |
3 |
4 | class GumballAppearanceSettings:
5 | def __init__(self): ...
6 | @property
7 | def ArcThickness(self) -> int: ...
8 | @property
9 | def ArrowHeadLength(self) -> int: ...
10 | @property
11 | def ArrowHeadWidth(self) -> int: ...
12 | @property
13 | def AxisThickness(self) -> int: ...
14 | @property
15 | def ColorMenuButton(self) -> Color: ...
16 | @property
17 | def ColorX(self) -> Color: ...
18 | @property
19 | def ColorY(self) -> Color: ...
20 | @property
21 | def ColorZ(self) -> Color: ...
22 | @property
23 | def FreeTranslate(self) -> int: ...
24 | @property
25 | def MenuDistance(self) -> int: ...
26 | @property
27 | def MenuEnabled(self) -> bool: ...
28 | @property
29 | def MenuSize(self) -> int: ...
30 | @property
31 | def PlanarTranslationGripCorner(self) -> int: ...
32 | @property
33 | def PlanarTranslationGripSize(self) -> int: ...
34 | @property
35 | def Radius(self) -> int: ...
36 | @property
37 | def RelocateEnabled(self) -> bool: ...
38 | @property
39 | def RotateXEnabled(self) -> bool: ...
40 | @property
41 | def RotateYEnabled(self) -> bool: ...
42 | @property
43 | def RotateZEnabled(self) -> bool: ...
44 | @property
45 | def ScaleGripSize(self) -> int: ...
46 | @property
47 | def ScaleXEnabled(self) -> bool: ...
48 | @property
49 | def ScaleYEnabled(self) -> bool: ...
50 | @property
51 | def ScaleZEnabled(self) -> bool: ...
52 | @property
53 | def TranslateXEnabled(self) -> bool: ...
54 | @property
55 | def TranslateXYEnabled(self) -> bool: ...
56 | @property
57 | def TranslateYEnabled(self) -> bool: ...
58 | @property
59 | def TranslateYZEnabled(self) -> bool: ...
60 | @property
61 | def TranslateZEnabled(self) -> bool: ...
62 | @property
63 | def TranslateZXEnabled(self) -> bool: ...
64 | @ArcThickness.setter
65 | def ArcThickness(self, value: int) -> None: ...
66 | @ArrowHeadLength.setter
67 | def ArrowHeadLength(self, value: int) -> None: ...
68 | @ArrowHeadWidth.setter
69 | def ArrowHeadWidth(self, value: int) -> None: ...
70 | @AxisThickness.setter
71 | def AxisThickness(self, value: int) -> None: ...
72 | @ColorMenuButton.setter
73 | def ColorMenuButton(self, value: Color) -> None: ...
74 | @ColorX.setter
75 | def ColorX(self, value: Color) -> None: ...
76 | @ColorY.setter
77 | def ColorY(self, value: Color) -> None: ...
78 | @ColorZ.setter
79 | def ColorZ(self, value: Color) -> None: ...
80 | @FreeTranslate.setter
81 | def FreeTranslate(self, value: int) -> None: ...
82 | @MenuDistance.setter
83 | def MenuDistance(self, value: int) -> None: ...
84 | @MenuEnabled.setter
85 | def MenuEnabled(self, value: bool) -> None: ...
86 | @MenuSize.setter
87 | def MenuSize(self, value: int) -> None: ...
88 | @PlanarTranslationGripCorner.setter
89 | def PlanarTranslationGripCorner(self, value: int) -> None: ...
90 | @PlanarTranslationGripSize.setter
91 | def PlanarTranslationGripSize(self, value: int) -> None: ...
92 | @Radius.setter
93 | def Radius(self, value: int) -> None: ...
94 | @RelocateEnabled.setter
95 | def RelocateEnabled(self, value: bool) -> None: ...
96 | @RotateXEnabled.setter
97 | def RotateXEnabled(self, value: bool) -> None: ...
98 | @RotateYEnabled.setter
99 | def RotateYEnabled(self, value: bool) -> None: ...
100 | @RotateZEnabled.setter
101 | def RotateZEnabled(self, value: bool) -> None: ...
102 | @ScaleGripSize.setter
103 | def ScaleGripSize(self, value: int) -> None: ...
104 | @ScaleXEnabled.setter
105 | def ScaleXEnabled(self, value: bool) -> None: ...
106 | @ScaleYEnabled.setter
107 | def ScaleYEnabled(self, value: bool) -> None: ...
108 | @ScaleZEnabled.setter
109 | def ScaleZEnabled(self, value: bool) -> None: ...
110 | @TranslateXEnabled.setter
111 | def TranslateXEnabled(self, value: bool) -> None: ...
112 | @TranslateXYEnabled.setter
113 | def TranslateXYEnabled(self, value: bool) -> None: ...
114 | @TranslateYEnabled.setter
115 | def TranslateYEnabled(self, value: bool) -> None: ...
116 | @TranslateYZEnabled.setter
117 | def TranslateYZEnabled(self, value: bool) -> None: ...
118 | @TranslateZEnabled.setter
119 | def TranslateZEnabled(self, value: bool) -> None: ...
120 | @TranslateZXEnabled.setter
121 | def TranslateZXEnabled(self, value: bool) -> None: ...
122 |
123 |
124 | class GumballDisplayConduit:
125 | def __init__(self): ...
126 | def CheckShiftAndControlKeys(self) -> None: ...
127 | def Dispose(self) -> None: ...
128 | @property
129 | def BaseGumball(self) -> GumballObject: ...
130 | @property
131 | def Enabled(self) -> bool: ...
132 | @property
133 | def Gumball(self) -> GumballObject: ...
134 | @property
135 | def GumballTransform(self) -> Transform: ...
136 | @property
137 | def InRelocate(self) -> bool: ...
138 | @property
139 | def PickResult(self) -> GumballPickResult: ...
140 | @property
141 | def PreTransform(self) -> Transform: ...
142 | @property
143 | def TotalTransform(self) -> Transform: ...
144 | def PickGumball(self, pickContext: PickContext, getPoint: GetPoint) -> bool: ...
145 | @Enabled.setter
146 | def Enabled(self, value: bool) -> None: ...
147 | @PreTransform.setter
148 | def PreTransform(self, value: Transform) -> None: ...
149 | @overload
150 | def SetBaseGumball(self, gumball: GumballObject) -> None: ...
151 | @overload
152 | def SetBaseGumball(self, gumball: GumballObject, appearanceSettings: GumballAppearanceSettings) -> None: ...
153 | def UpdateGumball(self, point: Point3d, worldLine: Line) -> bool: ...
154 |
155 |
156 | class GumballFrame:
157 | @property
158 | def Plane(self) -> Plane: ...
159 | @property
160 | def ScaleGripDistance(self) -> Vector3d: ...
161 | @property
162 | def ScaleMode(self) -> GumballScaleMode: ...
163 | @Plane.setter
164 | def Plane(self, value: Plane) -> None: ...
165 | @ScaleGripDistance.setter
166 | def ScaleGripDistance(self, value: Vector3d) -> None: ...
167 | @ScaleMode.setter
168 | def ScaleMode(self, value: GumballScaleMode) -> None: ...
169 |
170 |
171 | class GumballMode:
172 | #None = 0
173 | Menu = 1
174 | TranslateFree = 2
175 | TranslateX = 3
176 | TranslateY = 4
177 | TranslateZ = 5
178 | TranslateXY = 6
179 | TranslateYZ = 7
180 | TranslateZX = 8
181 | ScaleX = 9
182 | ScaleY = 10
183 | ScaleZ = 11
184 | ScaleXY = 12
185 | ScaleYZ = 13
186 | ScaleZX = 14
187 | RotateX = 15
188 | RotateY = 16
189 | RotateZ = 17
190 | ExtrudeX = 18
191 | ExtrudeY = 19
192 | ExtrudeZ = 20
193 |
194 |
195 | class GumballObject:
196 | def __init__(self): ...
197 | def Dispose(self) -> None: ...
198 | @property
199 | def Frame(self) -> GumballFrame: ...
200 | @Frame.setter
201 | def Frame(self, value: GumballFrame) -> None: ...
202 | def SetFromArc(self, arc: Arc) -> bool: ...
203 | @overload
204 | def SetFromBoundingBox(self, boundingBox: BoundingBox) -> bool: ...
205 | @overload
206 | def SetFromBoundingBox(self, frame: Plane, frameBoundingBox: BoundingBox) -> bool: ...
207 | def SetFromCircle(self, circle: Circle) -> bool: ...
208 | def SetFromCurve(self, curve: Curve) -> bool: ...
209 | def SetFromEllipse(self, ellipse: Ellipse) -> bool: ...
210 | def SetFromExtrusion(self, extrusion: Extrusion) -> bool: ...
211 | def SetFromHatch(self, hatch: Hatch) -> bool: ...
212 | def SetFromLight(self, light: Light) -> bool: ...
213 | def SetFromLine(self, line: Line) -> bool: ...
214 | def SetFromPlane(self, plane: Plane) -> bool: ...
215 |
216 |
217 | class GumballPickResult:
218 | @property
219 | def Mode(self) -> GumballMode: ...
220 | def SetToDefault(self) -> None: ...
221 |
222 |
223 | class GumballScaleMode:
224 | Independent = 0
225 | XY = 1
226 | YZ = 2
227 | ZX = 3
228 | XYZ = 4
229 |
--------------------------------------------------------------------------------
/stubs/Rhino/requirements.txt:
--------------------------------------------------------------------------------
1 | --index-url https://pypi.python.org/simple/
2 |
3 | GH_IO-stubs==7.7.21140
4 | GH_Util-stubs==7.7.21140
5 | Grasshopper==7.7.21140
6 |
--------------------------------------------------------------------------------
/stubs/Rhino/setup.py:
--------------------------------------------------------------------------------
1 | import setuptools
2 | import os
3 |
4 | long_description = '''
5 | # Rhino-stubs
6 | Stubs for RhinoCommon
7 | '''
8 |
9 |
10 | def find_stubs(package):
11 | stubs = []
12 | for root, dirs, files in os.walk(package):
13 | for f in files:
14 | stubs.append(os.path.relpath(os.path.join(root, f), package))
15 | return {package: stubs}
16 |
17 |
18 | setuptools.setup(
19 | name="Rhino-stubs",
20 | version="7.7.21140",
21 | package_data=find_stubs("Rhino-stubs"),
22 | packages=['Rhino-stubs'],
23 | author="Robert McNeel & Associates",
24 | author_email="steve@mcneel.com",
25 | description="Stubs for RhinoCommon",
26 | long_description=long_description,
27 | long_description_content_type="text/markdown",
28 | url="https://github.com/mcneel/pythonstubs",
29 | install_requires=['Grasshopper-stubs', 'GH_Util-stubs', 'GH_IO-stubs'],
30 | classifiers=[
31 | "Development Status :: 5 - Production/Stable",
32 | "Intended Audience :: Developers",
33 | "License :: OSI Approved :: MIT License",
34 | "Programming Language :: Python"
35 | ],
36 | )
37 |
--------------------------------------------------------------------------------