Python stubs regenerated

This commit is contained in:
Matthias Koefferlein 2025-08-05 23:28:17 +02:00
parent df86135fbf
commit b60210e076
3 changed files with 2214 additions and 403 deletions

File diff suppressed because it is too large Load Diff

View File

@ -8958,6 +8958,31 @@ class Macro:
This method has been introduced in version 0.27.5.
"""
@classmethod
def current(cls) -> Macro:
r"""
@brief Gets the macro currently executed
This method can be used inside scripts running in that macro to identify the currently running macro. It returns nil outside the 'run' context. The Macro object can be used to pass information in and out of the script using macro attributes (see \set_attribute and related methods).
@code
macro = RBA::Macro::new
macro.interpreter = RBA::Macro::Ruby
macro.text = <<"END"
macro = RBA::Macro::current
x = macro.get_attribute("x")
macro.set_attribute("y", x + 1)
END
macro.set_attribute("x", 17)
macro.run
macro.get_attribute("y") # -> 18
@/code
This method has been introduced in version 0.30.3.
"""
...
@classmethod
def macro_by_path(cls, path: str) -> Macro:
r"""
@brief Finds the macro by installation path
@ -9095,6 +9120,15 @@ class Macro:
Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.
"""
...
def delete_attribute(self, name: str) -> None:
r"""
@brief Deletes the attribute with the given name
See \set_attribute for a description of Macro attributes.
This method has been introduced in version 0.30.3.
"""
...
def destroy(self) -> None:
r"""
@brief Explicitly destroys the object
@ -9109,6 +9143,25 @@ class Macro:
The latter may happen, if the object is owned by a C++ object which got destroyed itself.
"""
...
def get_attribute(self, name: str) -> Any:
r"""
@brief Gets the value of the attribute with the given name
See \set_attribute for a description of Macro attributes.
If no attribute is present with the given name, nil is returned.
This method has been introduced in version 0.30.3.
"""
...
def has_attribute(self, name: str) -> bool:
r"""
@brief Gets a value indicating whether the Macro has an attribute with the given name
See \set_attribute for a description of Macro attributes.
This method has been introduced in version 0.30.3.
"""
...
def interpreter_name(self) -> str:
r"""
@brief Gets the macro interpreter name
@ -9152,6 +9205,16 @@ class Macro:
This method has been introduced in version 0.27.5.
"""
...
def set_attribute(self, name: str, value: Any) -> None:
r"""
@brief Gets the attribute with the given name
Attributes are generic key/value pairs that can be added to the Macro object.
This allows passing information in and out of the macro run (see \current).
This method has been introduced in version 0.30.3.
"""
...
def sync_properties_with_text(self) -> None:
r"""
@brief Synchronizes the macro properties with the text
@ -10194,6 +10257,15 @@ class ObjectInstPath:
@brief Assigns another object to self
"""
...
def cell(self) -> db.Cell:
r"""
@brief Gets the cell object that the selection applies to.
This is a convenience method that returns a \Cell objeact instead of a cell index (see \cell_index).
This method has been introduced in version 0.30.3.
"""
...
def cell_index(self) -> int:
r"""
@brief Gets the cell index of the cell that the selection applies to.

View File

@ -1270,17 +1270,17 @@ class RdbReference:
@overload
def database(self) -> ReportDatabase:
r"""
@brief Gets the database object that category is associated with
@brief Gets the database object that category is associated with (non-const version)
This method has been introduced in version 0.23.
This method has been introduced in version 0.29.
"""
...
@overload
def database(self) -> ReportDatabase:
r"""
@brief Gets the database object that category is associated with (non-const version)
@brief Gets the database object that category is associated with
This method has been introduced in version 0.29.
This method has been introduced in version 0.23.
"""
...
def destroy(self) -> None: