Updated Python stubs

This commit is contained in:
Matthias Koefferlein 2024-03-09 17:59:57 +01:00
parent ef7116c4c2
commit 5226d69706
3 changed files with 812 additions and 420 deletions

File diff suppressed because it is too large Load Diff

View File

@ -838,6 +838,13 @@ class Annotation(BasicAnnotation):
This constant has been introduced in version 0.25
"""
RulerModeAutoMetricEdge: ClassVar[int]
r"""
@brief Specifies edge-sensitive auto-metric ruler mode for the \register_template method
In auto-metric mode, a ruler can be placed with a single click and p1/p2 will be determined from the edge it is placed on.
This constant has been introduced in version 0.29
"""
RulerModeNormal: ClassVar[int]
r"""
@brief Specifies normal ruler mode for the \register_template method
@ -4249,7 +4256,7 @@ class LayerProperties:
This method has been introduced in version 0.22.
"""
@overload
def lower_hier_level_mode(self, arg0: bool) -> int:
def lower_hier_level_mode(self, real: bool) -> int:
r"""
@brief Gets the mode for the lower hierarchy level.
@param real If true, the computed value is returned, otherwise the local node value
@ -4994,6 +5001,10 @@ class LayoutViewBase:
r"""
@brief Compares two enums
"""
def __hash__(self) -> int:
r"""
@brief Gets the hash value from the enum
"""
@overload
def __init__(self, i: int) -> None:
r"""
@ -5004,6 +5015,10 @@ class LayoutViewBase:
r"""
@brief Creates an enum from a string value
"""
def __int__(self) -> int:
r"""
@brief Gets the integer value from the enum
"""
@overload
def __lt__(self, other: LayoutViewBase.SelectionMode) -> bool:
r"""
@ -5032,6 +5047,10 @@ class LayoutViewBase:
r"""
@brief Gets the symbolic string from an enum
"""
def hash(self) -> int:
r"""
@brief Gets the hash value from the enum
"""
def inspect(self) -> str:
r"""
@brief Converts an enum to a visual string
@ -6364,6 +6383,13 @@ class LayoutViewBase:
This method returns true, if self is a const reference.
In that case, only const methods may be called on self.
"""
def is_dirty(self) -> bool:
r"""
@brief Gets a flag indicating whether one of the layouts displayed needs saving
A layout is 'dirty' if it is modified and needs saving. This method returns true if this is the case for at least one of the layouts shown in the view.
This method has been introduced in version 0.29.
"""
def is_editable(self) -> bool:
r"""
@brief Returns true if the view is in editable mode
@ -6681,7 +6707,7 @@ class LayoutViewBase:
See \set_title and \title for a description about how titles are handled.
"""
def resize(self, arg0: int, arg1: int) -> None:
def resize(self, w: int, h: int) -> None:
r"""
@brief Resizes the layout view to the given dimension
@ -7062,7 +7088,7 @@ class LayoutViewBase:
It is very important to stop the redraw thread before applying changes to the layout or the cell views and the LayoutView configuration. This is usually done automatically. For rare cases, where this is not the case, this method is provided.
"""
def switch_mode(self, arg0: str) -> None:
def switch_mode(self, mode: str) -> None:
r"""
@brief Switches the mode.
@ -7204,12 +7230,16 @@ class Macro:
@overload
def __eq__(self, other: object) -> bool:
r"""
@brief Compares two enums
@brief Compares an enum with an integer value
"""
@overload
def __eq__(self, other: object) -> bool:
r"""
@brief Compares an enum with an integer value
@brief Compares two enums
"""
def __hash__(self) -> int:
r"""
@brief Gets the hash value from the enum
"""
@overload
def __init__(self, i: int) -> None:
@ -7221,6 +7251,10 @@ class Macro:
r"""
@brief Creates an enum from a string value
"""
def __int__(self) -> int:
r"""
@brief Gets the integer value from the enum
"""
@overload
def __lt__(self, other: Macro.Format) -> bool:
r"""
@ -7249,6 +7283,10 @@ class Macro:
r"""
@brief Gets the symbolic string from an enum
"""
def hash(self) -> int:
r"""
@brief Gets the hash value from the enum
"""
def inspect(self) -> str:
r"""
@brief Converts an enum to a visual string
@ -7308,6 +7346,10 @@ class Macro:
r"""
@brief Compares two enums
"""
def __hash__(self) -> int:
r"""
@brief Gets the hash value from the enum
"""
@overload
def __init__(self, i: int) -> None:
r"""
@ -7318,6 +7360,10 @@ class Macro:
r"""
@brief Creates an enum from a string value
"""
def __int__(self) -> int:
r"""
@brief Gets the integer value from the enum
"""
@overload
def __lt__(self, other: Macro.Interpreter) -> bool:
r"""
@ -7331,12 +7377,12 @@ class Macro:
@overload
def __ne__(self, other: object) -> bool:
r"""
@brief Compares two enums for inequality
@brief Compares an enum with an integer for inequality
"""
@overload
def __ne__(self, other: object) -> bool:
r"""
@brief Compares an enum with an integer for inequality
@brief Compares two enums for inequality
"""
def __repr__(self) -> str:
r"""
@ -7346,6 +7392,10 @@ class Macro:
r"""
@brief Gets the symbolic string from an enum
"""
def hash(self) -> int:
r"""
@brief Gets the hash value from the enum
"""
def inspect(self) -> str:
r"""
@brief Converts an enum to a visual string

View File

@ -308,7 +308,7 @@ class ArgType:
r"""
@brief Creates a copy of self
"""
def __eq__(self, arg0: object) -> bool:
def __eq__(self, other: object) -> bool:
r"""
@brief Equality of two types
"""
@ -316,7 +316,7 @@ class ArgType:
r"""
@brief Creates a new object of this class
"""
def __ne__(self, arg0: object) -> bool:
def __ne__(self, other: object) -> bool:
r"""
@brief Inequality of two types
"""
@ -1423,6 +1423,20 @@ class Method:
r"""
@brief Creates a new object of this class
"""
def __repr__(self) -> str:
r"""
@brief Describes the method
This attribute returns a string description of the method and its signature.
This method has been introduced in version 0.29.
"""
def __str__(self) -> str:
r"""
@brief Describes the method
This attribute returns a string description of the method and its signature.
This method has been introduced in version 0.29.
"""
def _create(self) -> None:
r"""
@brief Ensures the C++ object is created
@ -1460,7 +1474,7 @@ class Method:
Usually it's not required to call this method. It has been introduced in version 0.24.
"""
def accepts_num_args(self, arg0: int) -> bool:
def accepts_num_args(self, n: int) -> bool:
r"""
@brief True, if this method is compatible with the given number of arguments
@ -1569,6 +1583,13 @@ class Method:
r"""
@brief The return type of this method
"""
def to_s(self) -> str:
r"""
@brief Describes the method
This attribute returns a string description of the method and its signature.
This method has been introduced in version 0.29.
"""
class MethodOverload:
r"""